1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/scenarios/test/scenario_validate_deny_runasrootuser.yaml

20 lines
551 B
YAML
Raw Normal View History

# file path relative to project root
input:
policy: samples/best_practices/deny_runasrootuser.yaml
2019-10-14 12:36:19 -07:00
resource: test/scenarios/resources/deny_runasrootuser.yaml
expected:
validation:
policyresponse:
policy: validate-deny-runasrootuser
resource:
kind: Pod
apiVersion: v1
namespace: ''
name: check-root-user
rules:
- name: deny-runasrootuser
type: Validation
message: "Validation rule 'deny-runasrootuser' anyPattern[1] succesfully validated"
success: true