testsuite icon indicating copy to clipboard operation
testsuite copied to clipboard

[BUG] Negative tests for kubescape

Open wvwatson opened this issue 4 years ago • 1 comments

Describe the bug We need three more negative tests for kubescape

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior The following specs should pass by using negative tests to check if kubescape fails

  1. 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

  2. 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

  3. 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

wvwatson avatar Dec 03 '21 21:12 wvwatson

@wavell @taylor is this issue still relevant for cnti?

lixuna avatar Mar 04 '24 22:03 lixuna