Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Tests, Enhancement
Description
seccomp_profile_workloads_list
inseccomp_tests.py
for testing seccomp profiles.API_SECCOMP_LIST
and implementedget_seccomp_workloads_list
method inbackend_api.py
.statics.py
.SeccompProfileList
class inseccomp.py
to handle seccomp profiles list testing, including methods for applying profiles and workloads, verification, and logging.configurations/k8s_workloads/seccomp
directory.system_test_mapping.json
to include the new test caseseccomp_profile_workloads_list
.Changes walkthrough 📝
7 files
seccomp_tests.py
Add seccomp profile workloads list test method
configurations/system/tests_cases/seccomp_tests.py
seccomp_profile_workloads_list
for testingseccomp profiles.
seccomp.py
Add SeccompProfileList class for seccomp workloads list testing
tests_scripts/helm/seccomp.py
SeccompProfileList
class for testing seccomp profiles list.alpine-seccomp-pod-missing.yaml
Add deployment for pod with missing seccomp profile
configurations/k8s_workloads/seccomp/alpine-seccomp-pod-missing.yaml
alpine-seccomp-pod-optimized.yaml
Add deployment for pod with optimized seccomp profile
configurations/k8s_workloads/seccomp/alpine-seccomp-pod-optimized.yaml
profile.
alpine-seccomp-pod-overly-permissive.yaml
Add deployment for pod with overly permissive seccomp profile
configurations/k8s_workloads/seccomp/alpine-seccomp-pod-overly-permissive.yaml
seccomp profile.
seccomp-alpine-optimized.yaml
Add seccomp profile for optimized alpine pod
configurations/k8s_workloads/seccomp/seccomp-alpine-optimized.yaml
seccomp-alpine-overly-permissive.yaml
Add seccomp profile for overly permissive alpine pod
configurations/k8s_workloads/seccomp/seccomp-alpine-overly-permissive.yaml
pod.
2 files
backend_api.py
Add API endpoint and method for seccomp workloads list
infrastructure/backend_api.py
API_SECCOMP_LIST
.get_seccomp_workloads_list
method to fetch seccompworkloads list.
statics.py
Define constants for seccomp workloads statuses
systest_utils/statics.py
1 files
system_test_mapping.json
Update test mapping with seccomp profile workloads list
system_test_mapping.json
seccomp_profile_workloads_list
to the testmapping.