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

[BUG] CNF tests secrets_used and no_local_volume_configuration are reporting N/A resources. #2201

Open
sysarch-repo opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@sysarch-repo
Copy link

Describe the bug
CNF test secrets_used is reporting service account resources.

To Reproduce
Steps to reproduce the behavior:

  1. Install CNF testsuite 1.3.3
  2. Create AUT that utilizes service account
  3. Run secrets_used test

🎬 Testing: [secrets_used]
No Secret Volumes or Container secretKeyRefs found for resource: {kind: "ServiceAccount", name: "dnstest-dnssig-cnti-sa", namespace: "dns-system"}
Secrets not used. To address this issue please see the USAGE.md documentation
⏭️ ✨SKIPPED: [secrets_used] Secrets not used 🧫

Expected behavior
Service accounts are excluded from the test?

@sysarch-repo sysarch-repo added the bug Something isn't working label Jan 8, 2025
@svteb
Copy link
Collaborator

svteb commented Jan 10, 2025

Nice catch, will look into it.

@sysarch-repo
Copy link
Author

@svteb, thanks! Note, the test no_local_volume_configuration is also checking N/A resources (services and service accounts)
🎬 Testing: [no_local_volume_configuration]
Rescued: On resource prod-dnstest-dnssig-cnti-metrics of kind Service, local storage configuration volumes not found
Rescued: On resource prod-dnstest-dnssig-cnti of kind Service, local storage configuration volumes not found
Rescued: On resource prod-dnstest-dnssig-cnti-sa of kind ServiceAccount, local storage configuration volumes not found

I will modify the title accordingly.

@sysarch-repo sysarch-repo changed the title CNF test secrets_used is reporting service account resources. CNF tests secrets_used and no_local_volume_configuration are reporting N/A resources. Jan 12, 2025
@sysarch-repo sysarch-repo changed the title CNF tests secrets_used and no_local_volume_configuration are reporting N/A resources. [BUG] CNF tests secrets_used and no_local_volume_configuration are reporting N/A resources. Jan 13, 2025
@martin-mat martin-mat moved this to To do in CNF Test Suite Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

2 participants