2019-07-01 12:16:12 -07:00
|
|
|
# file path relative to project root
|
|
|
|
input:
|
2019-10-14 12:36:19 -07:00
|
|
|
policy: test/scenarios/cli/policy_deployment.yaml
|
|
|
|
resource: test/scenarios/cli/nginx.yaml
|
2019-07-01 12:16:12 -07:00
|
|
|
expected:
|
|
|
|
passes: true
|
|
|
|
mutation:
|
|
|
|
patched_resource: test/output/nginx.yaml
|
|
|
|
rules:
|
|
|
|
- name: add-label
|
|
|
|
type: Mutation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule add-label: Patches successfully applied."
|
2019-07-01 12:16:12 -07:00
|
|
|
validation:
|
|
|
|
rules:
|
|
|
|
- name: check-image
|
|
|
|
type : Validation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule check-image: Validation successfully."
|
2019-07-01 12:16:12 -07:00
|
|
|
---
|
|
|
|
input:
|
2019-10-14 12:36:19 -07:00
|
|
|
policy: test/scenarios/cli/policy_deployment.yaml
|
|
|
|
resource: test/scenarios/cli/ghost.yaml
|
2019-07-01 12:16:12 -07:00
|
|
|
expected:
|
|
|
|
passes: true
|
|
|
|
mutation:
|
|
|
|
patched_resource: test/output/ghost.yaml
|
|
|
|
rules:
|
|
|
|
- name: add-label
|
|
|
|
type: Mutation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule add-label: Patches successfully applied."
|
2019-07-01 12:16:12 -07:00
|
|
|
validation:
|
|
|
|
rules:
|
|
|
|
- name: check-image
|
|
|
|
type : Validation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule check-image: Validation successfully."
|