1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/test/scenarios/other/scenario_validate_selinux_context.yaml
Jim Bugwadia 6afd2e6f3a
ignore non-policy files in CLI and improve validation messages (#1362)
* improve validation message

* improve error behaviors

* fix tests

* fix tests
2020-12-07 11:26:04 -08:00

19 lines
No EOL
643 B
YAML

# file path relative to project root
input:
policy: test/policy/validate/policy_validate_selinux_context.yaml
resource: test/resources/resource_validate_selinux_context.yaml
expected:
validation:
policyresponse:
policy: validate-selinux-options
resource:
kind: Pod
apiVersion: v1
namespace: default
name: busybox-selinux
rules:
- name: validate-selinux-options
type: Validation
message: "validation error: SELinux level is required. Rule validate-selinux-options failed at path /spec/containers/0/securityContext/seLinuxOptions/"
success: false