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

[PR #902/5693b52e backport][stable-4] Remove old lookup unit tests #905

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jun 28, 2022

This is a backport of PR #902 as merged into main (5693b52).

SUMMARY

Remove the unit tests for the aws_ssm and aws_secret lookup plugins.

These unit tests weren't testing individual functions, they were testing the 'whole' module, and as such are brittle and break if the underlying implementation is updated (such as a refactor). Since we now have supported integration tests, remove the unit tests.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/lookup/aws_ssm.py
plugins/lookup/aws_secret.py

ADDITIONAL INFORMATION

Remove old lookup unit tests

SUMMARY
Remove the unit tests for the aws_ssm and aws_secret lookup plugins.
These unit tests weren't testing individual functions, they were testing the 'whole' module, and as such are brittle and break if the underlying implementation is updated (such as a refactor).  Since we now have supported integration tests, remove the unit tests.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/lookup/aws_ssm.py
plugins/lookup/aws_secret.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
(cherry picked from commit 5693b52)
@patchback patchback bot mentioned this pull request Jun 28, 2022
@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Jun 28, 2022
@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request new_contributor Help guide this first time contributor new_plugin New plugin tests tests labels Jun 28, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 4m 30s
✔️ build-ansible-collection SUCCESS in 5m 00s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 10m 34s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 9m 49s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 9m 30s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 29s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 39s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 9c117c6 into stable-4 Jun 28, 2022
@softwarefactory-project-zuul softwarefactory-project-zuul bot deleted the patchback/backports/stable-4/5693b52e5a8ce8a0893ce6e6f83f0d3275b69490/pr-902 branch June 28, 2022 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request mergeit Merge the PR (SoftwareFactory) new_contributor Help guide this first time contributor new_plugin New plugin tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants