-
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/5320 add integration test escape secrets in policy #5987
Enhancement/5320 add integration test escape secrets in policy #5987
Conversation
This pull request does not have a backport label. Could you fix it @kaanyalti? 🙏
|
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
changelog/fragments/1731292950-added-integration-tests-for-escaping-secrets-in-policy.yaml
Outdated
Show resolved
Hide resolved
8435e50
to
bcaad75
Compare
c332c26
to
cb9abce
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.
Looks good, covers the test requirements.
* enhancement(5320): added integration test and package policy template * enhancement(5320): updated struct * enhancement(5320): added test case where we get install package and get diagnostics * enhancement(5320): updated tests removed template file * enhancement(5320): updated tests, fixed error in parsing pre-config * enhancement(5320): added changelog * enhancement(5320): ran mage addLicenseHeaders * ehancement(5320): update import order * enhancement(5320): added force flag to package installation * enhancement(5320): remove duplicate force flag * enhancement(5320): remove changelog * enhancement(5320): updated test case, corrected assertion (cherry picked from commit e6f7de4)
#6029) * enhancement(5320): added integration test and package policy template * enhancement(5320): updated struct * enhancement(5320): added test case where we get install package and get diagnostics * enhancement(5320): updated tests removed template file * enhancement(5320): updated tests, fixed error in parsing pre-config * enhancement(5320): added changelog * enhancement(5320): ran mage addLicenseHeaders * ehancement(5320): update import order * enhancement(5320): added force flag to package installation * enhancement(5320): remove duplicate force flag * enhancement(5320): remove changelog * enhancement(5320): updated test case, corrected assertion (cherry picked from commit e6f7de4) Co-authored-by: Kaan Yalti <kaan.yalti@elastic.co> Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
…ic#5987) * enhancement(5320): added integration test and package policy template * enhancement(5320): updated struct * enhancement(5320): added test case where we get install package and get diagnostics * enhancement(5320): updated tests removed template file * enhancement(5320): updated tests, fixed error in parsing pre-config * enhancement(5320): added changelog * enhancement(5320): ran mage addLicenseHeaders * ehancement(5320): update import order * enhancement(5320): added force flag to package installation * enhancement(5320): remove duplicate force flag * enhancement(5320): remove changelog * enhancement(5320): updated test case, corrected assertion
What does this PR do?
Adds integration test for testing escaping secrets in the agent config. This test case replicates the steps outlined in the following issue.
Why is it important?
We currently don't have integration tests covering this use case
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files./changelog/fragments
using the changelog toolHow to test this PR locally
Run
GOTEST_FLAGS='-test.run ^TestEscapingSecretsInPolicy$' mage integration:test
for the platforms and packages that you wantRelated issues