Skip to content

refactor(test): remove mocks#457

Merged
simar7 merged 9 commits intoaquasecurity:mainfrom
afdesk:refactor/test/remove-mocks
Apr 29, 2025
Merged

refactor(test): remove mocks#457
simar7 merged 9 commits intoaquasecurity:mainfrom
afdesk:refactor/test/remove-mocks

Conversation

@afdesk
Copy link
Copy Markdown
Contributor

@afdesk afdesk commented Apr 7, 2025

The mocks were introduced here #395. But now Trivy-kubernetes uses github.com/testcontainers/testcontainers-go/modules/k3s for tests, so mocks aren't needed and we can remove them.

The mocked testcases are moved to TestListArtifacts .

Also this PR changes based images for test: now we use alpine instead of nginx.

@afdesk afdesk marked this pull request as ready for review April 16, 2025 12:42
@afdesk afdesk requested a review from simar7 as a code owner April 16, 2025 12:42
@afdesk
Copy link
Copy Markdown
Contributor Author

afdesk commented Apr 16, 2025

@simar7 could you take a look when you have time? thanks

afdesk added 2 commits April 29, 2025 11:31
…or/test/remove-mocks

# Conflicts:
#	pkg/trivyk8s/trivyk8s_test.go
@afdesk
Copy link
Copy Markdown
Contributor Author

afdesk commented Apr 29, 2025

@simar7
this PR is rebased and ready for your review again.
it's not urgent at all, PTAL when you have free time
thanks

@simar7 simar7 merged commit a92bbc9 into aquasecurity:main Apr 29, 2025
4 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.

2 participants