- Notifications
You must be signed in to change notification settings - Fork 129
Use service variants in system tests #424
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
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
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.
Nice! LGTM, but could we run the CI job with all the integrations, or at least with mysql? In elastic/integrations#1145 I added the variants defined in Beats but I didn't test them 😬
| v2443: | ||
| SERVICE_VERSION: 2.4.43 | ||
| v2423: | ||
| SERVICE_VERSION: 2.4.23 |
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.
Have we considered to add something to skip variants? This may be needed in the future.
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.
We have the "skip" option for the entire test config not for particular variant. Maybe a follow up issue?
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.
👍
| } | ||
| | ||
| for _, cfgFile := range cfgFiles { | ||
| for _, variantName := range anyVariants(variantsFile) { |
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.
There should be some way to run with a single variant.
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 added CLI option for this:
elastic-package test system --variant foo
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.
Great! Thanks.
I can copy the mysql package to the test packages here, so we can test it. I will create a separate PR. |
Oh, forget it, I mixed things when I saw the apache tests passing 🙂 |
| /test |
Fixes: #94
This PR introduces support for service variants for system tests. So far they are supported only in the
servicecommand.