-
Notifications
You must be signed in to change notification settings - Fork 154
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
Fix regex to locate elastic-agent .zip packages in package tests #3908
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
This pull request does not have a backport label. Could you fix it @pchila? 🙏
NOTE: |
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.
Copy paste is to blame for this one I think.
True. Whole dev-tools is a copy paste of the one used in beats |
buildkite test this |
|
What does this PR do?
This PR fixes the regular expression used to find elastic-agent .zip packages and test them.
Why is it important?
We want to run tests on freshly generated packages
Checklist
[ ] I have commented my code, particularly in hard-to-understand areas[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added tests that prove my fix is effective or that my feature works[ ] I have added an entry in./changelog/fragments
using the changelog tool[ ] I have added an integration test or an E2E testAuthor's Checklist
How to test this PR locally
To test the PR we can add a blatantly wrong assertion like
assert.True(t, false)
in thecheckZip
function inpackage_test.go
and then run
Without this fix, the packages tests pass anyways because we are not matching any file.
With the fix we should see a beautiful test failure like this:
Related issues
Use cases
Screenshots
Logs
Questions to ask yourself