-
Notifications
You must be signed in to change notification settings - Fork 44
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
aws test splitter - add lookup plugins #1359
aws test splitter - add lookup plugins #1359
Conversation
Build failed.
|
Build succeeded.
|
@goneri this aims to add targets for lookup, it was missing from your PR and needed to test the PR ansible-collections/amazon.aws#591 |
Build succeeded.
|
"""List the lookup plugins impacted by the change""" | ||
for d in self.changed_files(): | ||
if str(d).startswith("plugins/lookup/"): | ||
yield PosixPath(d) |
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.
Thank you for doing this.
@@ -53,6 +54,7 @@ def test_what_changed_files(): | |||
"ansible_collections.a.b.plugins.module_utils.core", | |||
) | |||
] | |||
assert list(whc.lookup()) == [PosixPath("plugins/lookup/aws_test.py")] |
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.
Ideally, we should also check that the right target is enabled.
@@ -258,6 +267,9 @@ def build_result_struct(self, batches): | |||
for c in collections: | |||
c.add_target_to_plan(f"module_utils_{path.stem}") | |||
c.cover_module_utils(pymod) | |||
for path in whc.lookup(): | |||
for c in collections: | |||
c.add_target_to_plan(f"lookup_{path.stem}") |
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.
Ideally, this should also be covered. Actually the whole block should be tested.
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.
Thank you @abikouo
Build succeeded (gate pipeline).
|
aws_secret: Handle pagination for bypath=true Depends-On: ansible/ansible-zuul-jobs#1359 Depends-On: ansible/ansible-zuul-jobs#1362 Depends-On: ansible/ansible-zuul-jobs#1364 SUMMARY Currently aws_secret returns only 10 secrets, added manual pagination for getting all the secrets as per the task. Fixes #472. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret Reviewed-by: Alina Buzachis <None> Reviewed-by: Joseph Torcasso <None>
aws_secret: Handle pagination for bypath=true Depends-On: ansible/ansible-zuul-jobs#1359 Depends-On: ansible/ansible-zuul-jobs#1362 Depends-On: ansible/ansible-zuul-jobs#1364 SUMMARY Currently aws_secret returns only 10 secrets, added manual pagination for getting all the secrets as per the task. Fixes #472. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret Reviewed-by: Alina Buzachis <None> Reviewed-by: Joseph Torcasso <None> (cherry picked from commit 9f0a616)
[PR #591/9f0a616e backport][stable-3] aws_secret: Handle pagination for bypath=true This is a backport of PR #591 as merged into main (9f0a616). Depends-On: ansible/ansible-zuul-jobs#1359 Depends-On: ansible/ansible-zuul-jobs#1362 Depends-On: ansible/ansible-zuul-jobs#1364 SUMMARY Currently aws_secret returns only 10 secrets, added manual pagination for getting all the secrets as per the task. Fixes #472. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret
No description provided.