Skip to content
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

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

abikouo
Copy link
Collaborator

@abikouo abikouo commented Feb 22, 2022

No description provided.

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@abikouo
Copy link
Collaborator Author

abikouo commented Feb 22, 2022

@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
later we should to that for others plugins (filter...)

@softwarefactory-project-zuul
Copy link
Contributor

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)
Copy link
Collaborator

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")]
Copy link
Collaborator

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}")
Copy link
Collaborator

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.

Copy link
Collaborator

@goneri goneri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @abikouo

@goneri goneri added the mergeit Merge the PR (SoftwareFActory) label Feb 22, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 83d11bd into ansible:master Feb 22, 2022
softwarefactory-project-zuul bot pushed a commit to ansible-collections/amazon.aws that referenced this pull request Mar 1, 2022
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>
patchback bot pushed a commit to ansible-collections/amazon.aws that referenced this pull request Mar 1, 2022
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)
softwarefactory-project-zuul bot pushed a commit to ansible-collections/amazon.aws that referenced this pull request Mar 2, 2022
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge the PR (SoftwareFActory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants