apm-server
apm-server copied to clipboard
test: cleanup systemtest init
Motivation/summary
we don't need to upload apmpackage so we can cleanup the init code. Avoid cleaning es during init, it should be cleaned in specific tests to support the -count flag.
Checklist
- [ ] Update CHANGELOG.asciidoc
- [ ] Documentation has been updated
For functional changes, consider:
- Is it observable through the addition of either logging or metrics?
- Is its use being published in telemetry to enable product improvement?
- Have system tests been added to avoid regression?
How to test these changes
Related issues
This pull request does not have a backport label. Could you fix it @kruskall? 🙏 To fixup this pull request, you need to add the backport labels for the needed branches, such as:
-
backport-7.17
is the label to automatically backport to the 7.17 branch. -
backport-8./d
is the label to automatically backport to the8./d
branch./d
is the digit.
NOTE: backport-skip
has been added to this pull request.
run docs-build
which -count flag are you referring to?
the builtin -count flag for go test
@axw do we still need to install the APM package for systemtests ? Do you think this makes sense now that we have the apm data plugin ?
@axw do we still need to install the APM package for systemtests ? Do you think this makes sense now that we have the apm data plugin ?
I don't think we need it any more. The tests pass... :) We're still using Fleet in ESS, and we have smoke tests there, so I think we're covered.
Avoid cleaning es during init, it should be cleaned in specific tests to support the -count flag.
I don't follow this. If the individual tests still clean up ES, how will -count
work?
Avoid cleaning es during init, it should be cleaned in specific tests to support the -count flag.
I don't follow this. If the individual tests still clean up ES, how will -count work?
Individual tests cleaning up ES is the correct behaviour. If we rely on TestMain then it will be cleaned once when the first test run and every other iteration specified in -count
won't clean ES.
Individual tests cleaning up ES is the correct behaviour. If we rely on TestMain then it will be cleaned once when the first test run and every other iteration specified in -count won't clean ES.
Gotcha. Makes sense.