-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…roxy-url integration test and disable tests (#3147) * enhance mock fleet-server and add --proxy-url integration test (#2834) * enhance test fleet-server Now a almost fully functional mock fleet-server can be instantiated with a single call to fleetservertest.NewServerWithHandlers. The only missing handlers are the upload handlers. testing/integration/proxy_url_test.go works as example on how to use the new features of the test fleet-server * add proxytest.Proxy: A naive proxy to be used on tests which allows to configure URL rewrites and check all the calls made to it. check the tests on testing/integration/proxy_url_test.go to see how to use proxytest.Proxy. * add integration tests for the fleet-server proxy The tests cover defining a proxy through --proxy-url and in the policy and the correct priority is respected * fix the Go version used on the Github workflows now it reads the version from the .go-version and not from the go.mod anymore. * increase the memory allocated to the elastic-agent vagrant box * allow -SNAPHOT versions to be passed to define.NewFixture * add more helper methods to testing.Fixture and Install accepts more flags * add version.Agent, a exported constant with the agent version (cherry picked from commit 732d7c0) * Disable proxy tests while flakiness is addressed. (#3164) All of the proxy tests are currently flaky and fail regularly, see #3154 Disabling them while we investigate a fix to unblock CI. (cherry picked from commit 08d24b9) --------- Co-authored-by: Anderson Queiroz <[email protected]> Co-authored-by: Craig MacKenzie <[email protected]>
- Loading branch information
1 parent
72c317d
commit 05c5479
Showing
21 changed files
with
2,763 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.