-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement/5832 deb rpm docker tests #6212
Enhancement/5832 deb rpm docker tests #6212
Conversation
This pull request does not have a backport label. Could you fix it @kaanyalti? 🙏
|
|
2d97ecf
to
bb1571e
Compare
Maybe mark this PR as Draft for now while you keep testing it? I really wouldn't want to accidentally commit a change where the Buildkite pipelines are all getting commented out. 😉 |
I don't think we currently have an easy mechanism of doing this. Perhaps something we can consider in the future. |
buildkite test this |
a87a4f0
to
8ccbc38
Compare
This pull request is now in conflicts. Could you fix it? 🙏
|
b8d030d
to
491761c
Compare
This pull request is now in conflicts. Could you fix it? 🙏
|
the problem with integration test is that case "$1" in
purge)
rm -rf /var/lib/elastic-agent /var/log/elastic-agent /etc/elastic-agent
;;
# 0 is for rpm uninstall
upgrade|remove|failed-upgrade|abort-install|abort-upgrade|disappear|0) what we need to do is move behavior also described in PR #4334 |
8f74d86
to
694f0e8
Compare
Based on our discussion implement manual removal of agent files during RPM clean up in the test fixture |
aec6441
to
fc6ed16
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i like that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice work 🙂 Thanks for addressing my comment ❤️
* enhancement(5832): added integration tests * enhancement(5832): updated fixture install, updated assertions * enhancement(5832): added kubernetes test * enhancement(5832): ran mage update * enhancement(5832): execute rpm test in default group * Revert "enhancement(5832): execute rpm test in default group" This reverts commit fa93a8e. * enhancement(5832): debugging ci issues * enahancement(5832): added logs to see if any other agent is running, commented out other integration tests * enhancement(5832): added cleanup steps to rpm tests * enhancement(5832): trying 777 permission * enhancement(5832): removed diagnostics, added rpm cleanup step that purges all agent files * enhancement(5832): running all tests * enhancement(5832): uncommented integration test pipeline * enhancement(5832): reverting unnecessary changes * enhancement(5832): uncommenting integration tests * enhancement(5832): reverted integration_tests.sh changes * enhancement(5832): reverted fixture_install.go changes * enhancement(5832): remove print * enhancement(5832): logging output if cleanup fails * enhancement(5832): updated k8s test, refactored upgrade test into test step (cherry picked from commit 3f608bf)
What does this PR do?
Adds tests validating elastic-agent upgrade command does not and should not work for deb, rpm and docker.
Why is it important?
We currently don't have any tests validating that the upgrade command does not work
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added an entry in./changelog/fragments
using the changelog toolHow to test this PR locally
The image type can be
basic
,wolfi
or any other listed in the test itselfRelated issues