# This check ensures the contents of stderr are exactly as shown.
($stderr):|-
Error from server:error when creating "policy-1.yaml": admission webhook "validate-policy.kyverno.svc" denied the request: spec.rules[0].podSecurity.exclude[0].values: Forbidden: values is required
# This check ensures the contents of stderr are exactly as shown.
($stderr):|-
Error from server:error when creating "policy-2.yaml": admission webhook "validate-policy.kyverno.svc" denied the request: spec.rules[0].podSecurity.exclude[0].restrictedField: Forbidden: restrictedField is required