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

Remove old lookup unit tests #902

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Jun 27, 2022

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

@tremble tremble requested a review from alinabuzachis June 27, 2022 09:12
@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request needs_triage tests tests labels Jun 27, 2022
@tremble tremble force-pushed the units/remove/lookup branch from 6d7b7da to 94541c8 Compare June 27, 2022 09:15
@tremble tremble added backport-4 PR should be backported to the stable-4 branch and removed feature This issue/PR relates to a feature request tests tests community_review needs_triage labels Jun 27, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 05s
✔️ build-ansible-collection SUCCESS in 4m 53s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 9m 07s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 10m 13s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 9m 24s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 08s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 35s

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Jun 28, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 4m 28s
✔️ build-ansible-collection SUCCESS in 5m 08s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 9m 13s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 10m 06s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 9m 32s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 7m 01s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 7m 21s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 5693b52 into ansible-collections:main Jun 28, 2022
@patchback
Copy link

patchback bot commented Jun 28, 2022

Backport to stable-4: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4/5693b52e5a8ce8a0893ce6e6f83f0d3275b69490/pr-902

Backported as #905

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jun 28, 2022
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)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jun 28, 2022
[PR #902/5693b52e backport][stable-4] Remove old lookup unit tests

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

Reviewed-by: Mark Chappell <None>
@tremble tremble deleted the units/remove/lookup branch September 9, 2022 08:51
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
aws_acm: fix yamllint errors in docs section

SUMMARY
Closes: ansible-collections#902
ISSUE TYPE


Docs Pull Request

COMPONENT NAME
aws_acm
ADDITIONAL INFORMATION



  1:1       warning  missing document start "---"  (document-start)
  2:81      error    line too long (88 > 80 characters)  (line-length)
  5:81      error    line too long (89 > 80 characters)  (line-length)
  9:81      error    line too long (86 > 80 characters)  (line-length)
  11:81     error    line too long (100 > 80 characters)  (line-length)
  32:81     error    line too long (87 > 80 characters)  (line-length)
  36:81     error    line too long (98 > 80 characters)  (line-length)
  41:81     error    line too long (98 > 80 characters)  (line-length)
  43:81     error    line too long (105 > 80 characters)  (line-length)
  49:81     error    line too long (84 > 80 characters)  (line-length)
  56:81     error    line too long (102 > 80 characters)  (line-length)
  61:81     error    line too long (87 > 80 characters)  (line-length)
  69:81     error    line too long (91 > 80 characters)  (line-length)
  79:81     error    line too long (92 > 80 characters)  (line-length)
  88:81     error    line too long (85 > 80 characters)  (line-length)
  105:81    error    line too long (83 > 80 characters)  (line-length)
  123:1     error    wrong indentation: expected 2 but found 0  (indentation)
  124:17    error    no new line character at the end of file  (new-line-at-end-of-file)

Reviewed-by: Mark Woolley <[email protected]>
Reviewed-by: Mark Chappell <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
aws_acm: fix yamllint errors in docs section

SUMMARY
Closes: ansible-collections#902
ISSUE TYPE


Docs Pull Request

COMPONENT NAME
aws_acm
ADDITIONAL INFORMATION



  1:1       warning  missing document start "---"  (document-start)
  2:81      error    line too long (88 > 80 characters)  (line-length)
  5:81      error    line too long (89 > 80 characters)  (line-length)
  9:81      error    line too long (86 > 80 characters)  (line-length)
  11:81     error    line too long (100 > 80 characters)  (line-length)
  32:81     error    line too long (87 > 80 characters)  (line-length)
  36:81     error    line too long (98 > 80 characters)  (line-length)
  41:81     error    line too long (98 > 80 characters)  (line-length)
  43:81     error    line too long (105 > 80 characters)  (line-length)
  49:81     error    line too long (84 > 80 characters)  (line-length)
  56:81     error    line too long (102 > 80 characters)  (line-length)
  61:81     error    line too long (87 > 80 characters)  (line-length)
  69:81     error    line too long (91 > 80 characters)  (line-length)
  79:81     error    line too long (92 > 80 characters)  (line-length)
  88:81     error    line too long (85 > 80 characters)  (line-length)
  105:81    error    line too long (83 > 80 characters)  (line-length)
  123:1     error    wrong indentation: expected 2 but found 0  (indentation)
  124:17    error    no new line character at the end of file  (new-line-at-end-of-file)

Reviewed-by: Mark Woolley <[email protected]>
Reviewed-by: Mark Chappell <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
aws_acm: fix yamllint errors in docs section

SUMMARY
Closes: ansible-collections#902
ISSUE TYPE


Docs Pull Request

COMPONENT NAME
aws_acm
ADDITIONAL INFORMATION



  1:1       warning  missing document start "---"  (document-start)
  2:81      error    line too long (88 > 80 characters)  (line-length)
  5:81      error    line too long (89 > 80 characters)  (line-length)
  9:81      error    line too long (86 > 80 characters)  (line-length)
  11:81     error    line too long (100 > 80 characters)  (line-length)
  32:81     error    line too long (87 > 80 characters)  (line-length)
  36:81     error    line too long (98 > 80 characters)  (line-length)
  41:81     error    line too long (98 > 80 characters)  (line-length)
  43:81     error    line too long (105 > 80 characters)  (line-length)
  49:81     error    line too long (84 > 80 characters)  (line-length)
  56:81     error    line too long (102 > 80 characters)  (line-length)
  61:81     error    line too long (87 > 80 characters)  (line-length)
  69:81     error    line too long (91 > 80 characters)  (line-length)
  79:81     error    line too long (92 > 80 characters)  (line-length)
  88:81     error    line too long (85 > 80 characters)  (line-length)
  105:81    error    line too long (83 > 80 characters)  (line-length)
  123:1     error    wrong indentation: expected 2 but found 0  (indentation)
  124:17    error    no new line character at the end of file  (new-line-at-end-of-file)

Reviewed-by: Mark Woolley <[email protected]>
Reviewed-by: Mark Chappell <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4 PR should be backported to the stable-4 branch community_review mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants