1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
This commit is contained in:
shivkumar dudhani 2019-10-14 12:48:24 -07:00
parent 21d174a2bf
commit 17895e9718
2 changed files with 0 additions and 40 deletions

View file

@ -1,20 +0,0 @@
# file path relative to project root
input:
policy: test/scenarios/policy_validate_loadblancer.yaml
resource: test/scenarios/resource_lb1.yaml
loadresources:
- examples/query/resource_ns_test.yaml
expected:
query:
policyresponse:
policy: query1
resource:
kind: Service
apiVersion: v1
namespace: test
name: lb1
rules:
- name: Max one service of type LoadBalancer in namespace test
type: Query
success: true
message: "Query rule Max one service of type LoadBalancer in namespace test success. (recieved) 1 == (expected) <=1"

View file

@ -1,20 +0,0 @@
# file path relative to project root
input:
policy: test/scenarios/policy_validate_no_loadblancer.yaml
resource: test/scenarios/resource_lb1.yaml
loadresources:
- test/scenarios/resource_ns_test.yaml
expected:
query:
policyresponse:
policy: query1
resource:
kind: Service
apiVersion: v1
namespace: test
name: lb1
rules:
- name: No service of type LoadBalancer in namespace test
type: Query
success: false
message: "Query rule No service of type LoadBalancer in namespace test failed, (recieved) 1!=(expected) 0"