You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[8.18] (backport #8396) [tests] split up serverless and resource leaks integration tests (#8456)
* [tests] split up serverless and resource leaks integration tests (#8396)
* fix: expose PreinstalledPackages
* fix: make groups.go importable
* feat: introduce new leak package for integration tests
* feat: introduce new serverless package for integration tests
* feat: incorporate serverless and extended runtime leak tests in mage
* fix: normalise powershell (windows) and bash (unix) integration tests invocation flow
* fix: use -test prefixed args for test-wise argument in buildkite-integration-tests.ps1
* fix: add comment about test timeout 2h0m0s
* fix: correct wording
* doc: add integration:TestServerless and update integration:TestForResourceLeaks in test-framework-dev-guide.md
* fix: return directly the test exit code for ps1 scripts
* fix: rename file that host TestMain to main_test.go
* fix: correct build tags for serverless integration tests package
* fix: leverage log.Fatalf in serverless/main_test.go
* feat: expand the BK log group on failure
* tmp: introduce artificial test failure to test buildkite logging group expansion
* Revert "tmp: introduce artificial test failure to test buildkite logging group expansion"
This reverts commit ee6bd63.
* fix: typo
* fix: remove redundant BK log group expansion
(cherry picked from commit 92e139c)
# Conflicts:
# .buildkite/scripts/buildkite-integration-tests.sh
# .buildkite/scripts/integration-tests.ps1
# testing/integration/auditd_monitoring_test.go
# testing/integration/fleetserver_test.go
# testing/integration/network_traffic_monitoring_test.go
# testing/integration/osquery_monitoring_test.go
* fix: resolve conflicts
* fix: remove irrelevant files
* fix: remove -integration.fips flag
* fix: point to the correct path for "fleet-server.json" in TestInstallFleetServerBootstrap
---------
Co-authored-by: Panos Koutsovasilis <[email protected]>
.buildkite/scripts/steps/integration_tests.sh serverless integration:single TestLogIngestionFleetManaged #right now, run a single test in serverless mode as a sort of smoke test, instead of re-running the entire suite
The test framework includes a smoke test suite to check elastic-agent in a serverless environment. The suite can be run via the `integration:TestServerless` mage target.
135
+
133
136
##### Run Extended Runtime Leak Test
134
137
The test framework includes a "long running" test to check for resource leaks and stability.
135
138
The runtime of the test can be set via the `LONG_TEST_RUNTIME` environment variable.
136
-
The test itself can be run via the `integration:TestLongRunningAgentForLeaks` mage target.
139
+
The test itself can be run via the `integration:TestForResourceLeaks` mage target.
137
140
138
141
##### Limitations
139
142
Due to the way the parameters are passed to `devtools.GoTest` the value of the environment variable
0 commit comments