name: test-simple
policies:
  - policy.yaml
resources:
  - resources.yaml
variables: values.yaml
results:
  - policy: disallow-latest-tag
    rule: require-image-tag
    resource: test-require-image-tag-pass
    kind: Pod
    status: pass
  - policy: disallow-latest-tag
    rule: require-image-tag
    resource: test-require-image-tag-fail
    kind: Pod
    status: fail
  - policy: disallow-latest-tag
    rule: validate-image-tag
    resource: test-validate-image-tag-ignore
    kind: Pod
    status: skip
  - policy: disallow-latest-tag
    rule: validate-image-tag
    resource: test-validate-image-tag-fail
    kind: Pod
    status: fail
  - policy: disallow-latest-tag
    rule: validate-image-tag
    resource: test-validate-image-tag-pass
    kind: Pod
    status: pass
  - policy: duration-test
    rule: greater-than
    resource: test-lifetime-fail
    kind: Pod
    status: fail
  - policy: duration-test
    rule: less-than
    resource: test-lifetime-fail
    kind: Pod
    status: pass
  - policy: duration-test
    rule: greater-equal-than
    resource: test-lifetime-fail
    kind: Pod
    status: fail
  - policy: duration-test
    rule: less-equal-than
    resource: test-lifetime-fail
    kind: Pod
    status: pass

  - policy: restrict-pod-counts
    rule: restrict-pod-count
    resource: myapp-pod
    kind: Pod
    status: fail
  - policy: restrict-pod-counts
    rule: restrict-pod-count
    resource: test-require-image-tag-pass
    kind: Pod
    status: fail
  - policy: restrict-pod-counts
    rule: restrict-pod-count
    resource: test-require-image-tag-fail
    kind: Pod
    status: fail
  - policy: restrict-pod-counts
    rule: restrict-pod-count
    resource: test-validate-image-tag-ignore
    kind: Pod
    status: fail
  - policy: restrict-pod-counts
    rule: restrict-pod-count
    resource: test-validate-image-tag-fail
    kind: Pod
    status: fail    
  - policy: restrict-pod-counts
    rule: restrict-pod-count
    resource: test-validate-image-tag-pass
    kind: Pod
    status: fail