[BUG] Negative tests for kubescape
Describe the bug We need three more negative tests for kubescape
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior The following specs should pass by using negative tests to check if kubescape fails
-
Security 'insecure_capabilities' should fail on a cnf that has containers with insecure capabilities Failure/Error: (/PASSED: Containers with insecure capabilities were not found/ =~ response_s).should be_nil
Expected: 2202 to be nil
spec/workload/security_spec.cr:116
-
Security 'dangerous_capabilities' should fail on a cnf that has containers with dangerous capabilities Failure/Error: (/PASSED: Containers with dangerous capabilities were not found/ =~ response_s).should be_nil
Expected: 2202 to be nil
spec/workload/security_spec.cr:142
-
Security 'application_credentials' should fail on a cnf that allows applications credentials in configuration files Failure/Error: (/FAILED: Found applications credentials in configuration files/ =~ response_s).should_not be_nil
Expected: nil not to be nil
spec/workload/security_spec.cr:168
@wavell @taylor is this issue still relevant for cnti?