-
Notifications
You must be signed in to change notification settings - Fork 1
/
semanticDiff-different-topologies-scheme.yaml
106 lines (90 loc) · 2.56 KB
/
semanticDiff-different-topologies-scheme.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
namespaceList: ../../example_podlist/ns_list.json
podList: ../../example_podlist/pods_list.json
networkConfigList:
- name: no_policy
# no namespaceList and podList, hence use the global resources above
networkPolicyList: []
expectedWarnings: 0
- name: policy
# should be equivalent to 'no_policy' above
namespaceList: ../../example_podlist/ns_list.json
networkPolicyList:
- policy_a.yaml
expectedWarnings: 3
- name: config_a
namespaceList: ../../../different_topologies/ns_list_a.json
podList: ../../../different_topologies/pods_list_a.json
networkPolicyList:
- policy_a.yaml
expectedWarnings: 0
- name: config_b
namespaceList: ../../../different_topologies/ns_list_b.json
podList: ../../../different_topologies/pods_list_b.json
networkPolicyList:
- policy_b.yaml
expectedWarnings: 0
- name: old1
networkPolicyList:
- old1.yaml
expectedWarnings: 6
- name: np1
networkPolicyList:
- ../withIpBlock/withIpBlock-networkpolicy1.yaml
expectedWarnings: 0
- name: np2
networkPolicyList:
- ../withIpBlock/withIpBlock-networkpolicy2.yaml
expectedWarnings: 0
- name: config_a_with_ipBlock
namespaceList: ../../../different_topologies/ns_list_a.json
podList: ../../../different_topologies/pods_list_a.json
networkPolicyList:
- policy_a.yaml
- policy_a_ipBlock.yaml
expectedWarnings: 0
- name: config_b_with_ipBlock
namespaceList: ../../../different_topologies/ns_list_b.json
podList: ../../../different_topologies/pods_list_b.json
networkPolicyList:
- policy_b.yaml
- policy_b_ipBlock.yaml
expectedWarnings: 0
queries:
- name: semantic_diff_identical
semanticDiff:
- no_policy
- policy
expected: 0
- name: semantic_diff_a_to_b
semanticDiff:
- config_a
- config_b
expected: 10
- name: semantic_diff_a_to_b_txt_no_fw_rules
semanticDiff:
- config_a
- config_b
outputConfiguration:
outputFormat: txt_no_fw_rules
expectedOutput: ../../expected_output/semantic_diff_a_to_b_different_topologies.txt
expected: 10
- name: semantic_diff_b_to_a
semanticDiff:
- config_b
- config_a
expected: 10
- name: semantic_diff_disjoint_old1_config_a
semanticDiff:
- old1
- config_a
expected: 4
- name: semantic_diff_np1_np2
semanticDiff:
- np1
- np2
expected: 2
- name: semantic_diff_a_to_b_with_ipBlock
semanticDiff:
- config_a_with_ipBlock
- config_b_with_ipBlock
expected: 10