2019-07-01 12:16:12 -07:00
|
|
|
# file path relative to project root
|
|
|
|
input:
|
|
|
|
policy: examples/generate/policy_basic.yaml
|
|
|
|
resource: examples/generate/namespace.yaml
|
|
|
|
load_resources:
|
|
|
|
- examples/generate/configMap_default.yaml
|
|
|
|
expected:
|
|
|
|
passes: true
|
|
|
|
generation:
|
|
|
|
resources:
|
|
|
|
- test/output/cm_default_config.yaml
|
|
|
|
- test/output/sc_mongo_cred.yaml
|
|
|
|
rules:
|
|
|
|
- name: "Basic config generator for all namespaces"
|
|
|
|
type: Generation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule Basic config generator for all namespaces: Generation successfully."
|
2019-07-01 12:16:12 -07:00
|
|
|
- name: "Basic clone config generator for all namespaces"
|
|
|
|
type: Generation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule Basic clone config generator for all namespaces: Generation successfully."
|
2019-07-01 12:16:12 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
input:
|
|
|
|
policy: examples/generate/policy_generate.yaml
|
|
|
|
resource: examples/generate/namespace.yaml
|
|
|
|
load_resources:
|
|
|
|
- examples/generate/configMap.yaml
|
|
|
|
expected:
|
|
|
|
passes: true
|
|
|
|
generation:
|
|
|
|
resources:
|
|
|
|
- test/output/cm_copied_cm.yaml
|
|
|
|
- test/output/cm_zk-kafka-address.yaml
|
|
|
|
rules:
|
|
|
|
- name: "copy-comfigmap"
|
|
|
|
type: Generation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule copy-comfigmap: Generation successfully."
|
2019-07-01 12:16:12 -07:00
|
|
|
- name: "zk-kafka-address"
|
|
|
|
type: Generation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule zk-kafka-address: Generation successfully."
|
2019-07-01 12:16:12 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
input:
|
|
|
|
policy: examples/generate/policy_networkPolicy.yaml
|
|
|
|
resource: examples/generate/namespace.yaml
|
|
|
|
expected:
|
|
|
|
passes: true
|
|
|
|
generation:
|
|
|
|
resources:
|
|
|
|
- test/output/np_deny-all-traffic.yaml
|
|
|
|
rules:
|
|
|
|
- name: deny-all-traffic
|
|
|
|
type: Generation
|
|
|
|
messages:
|
2020-01-24 12:05:53 -08:00
|
|
|
- "Rule deny-all-traffic: Generation successfully."
|