mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
remove duplicate test
This commit is contained in:
parent
de9ebd899b
commit
58054ef5b6
2 changed files with 0 additions and 22 deletions
|
@ -22,10 +22,6 @@ func Test_validate_healthChecks(t *testing.T) {
|
||||||
testScenario(t, "/test/scenarios/other/scenario_validate_healthChecks.yaml")
|
testScenario(t, "/test/scenarios/other/scenario_validate_healthChecks.yaml")
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_validate_nonRootUsers(t *testing.T) {
|
|
||||||
testScenario(t, "/test/scenarios/samples/best_practices/scenario_validate_nonRootUser.yaml")
|
|
||||||
}
|
|
||||||
|
|
||||||
func Test_generate_networkPolicy(t *testing.T) {
|
func Test_generate_networkPolicy(t *testing.T) {
|
||||||
testScenario(t, "/test/scenarios/samples/best_practices/scenario_generate_networkPolicy.yaml")
|
testScenario(t, "/test/scenarios/samples/best_practices/scenario_generate_networkPolicy.yaml")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
# file path relative to project root
|
|
||||||
input:
|
|
||||||
policy: samples/best_practices/deny_runasrootuser.yaml
|
|
||||||
resource: test/resources/resource_validate_nonRootUser.yaml
|
|
||||||
expected:
|
|
||||||
validation:
|
|
||||||
policyresponse:
|
|
||||||
policy: validate-deny-runasrootuser
|
|
||||||
resource:
|
|
||||||
kind: Pod
|
|
||||||
apiVersion: v1
|
|
||||||
namespace: ''
|
|
||||||
name: sec-ctx-unprivileged
|
|
||||||
rules:
|
|
||||||
- name: deny-runasrootuser
|
|
||||||
type: Validation
|
|
||||||
message: Validation rule 'deny-runasrootuser' failed to validate patterns defined in anyPattern. Root user is not allowed. Set runAsNonRoot to true.; anyPattern[0] failed at path /spec/securityContext/; anyPattern[1] failed at path /spec/containers/0/securityContext/
|
|
||||||
success: false
|
|
Loading…
Add table
Reference in a new issue