
# 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:
        name: 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/"
          status: fail