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

fix(tests): update imagetrust tests to use mock service #1929

Merged

Conversation

Andreea-Lupu
Copy link
Contributor

  • use secretsManagerMock and secretsManagerCacheMock to avoid failing because of "already exists" error when running multiple times image_trust_test on the same localstack instance

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

andaaron
andaaron previously approved these changes Oct 16, 2023
@Andreea-Lupu Andreea-Lupu force-pushed the fix_secret_already_exists_err branch 2 times, most recently from 65f8da2 to 6c6662b Compare October 17, 2023 22:26
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #1929 (0189605) into main (7f6534a) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1929      +/-   ##
==========================================
+ Coverage   91.84%   91.85%   +0.01%     
==========================================
  Files         155      155              
  Lines       26667    26678      +11     
==========================================
+ Hits        24492    24506      +14     
+ Misses       1609     1607       -2     
+ Partials      566      565       -1     
Files Coverage Δ
pkg/extensions/imagetrust/cosign.go 94.11% <100.00%> (ø)
pkg/extensions/imagetrust/image_trust.go 91.08% <100.00%> (+0.47%) ⬆️
pkg/extensions/imagetrust/notation.go 97.60% <100.00%> (+0.01%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Andreea-Lupu Andreea-Lupu force-pushed the fix_secret_already_exists_err branch from 6c6662b to 404ee23 Compare October 18, 2023 06:23
- use secretsManagerMock and secretsManagerCacheMock to avoid failing
because of "already exists" error when running multiple times
image_trust_test on the same localstack instance

Signed-off-by: Andreea-Lupu <[email protected]>
@Andreea-Lupu Andreea-Lupu force-pushed the fix_secret_already_exists_err branch from 404ee23 to 0189605 Compare October 18, 2023 08:21
@andaaron andaaron merged commit a44ca57 into project-zot:main Oct 18, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants