Complete unit test for models-pdp
[policy/models.git] / models-pdp / src / test / resources / testdata / PdpGroupsForFiltering.json
1 {
2     "groups": [
3         {
4             "name": "PdpGroup0",
5             "version": "1.2.3",
6             "description": "group description",
7             "pdpGroupState": "PASSIVE",
8             "properties": {
9                 "groupProperty0": "Value of Group Property 0"
10             },
11             "pdpSubgroups": [
12                 {
13                     "pdpType": "APEX",
14                     "supportedPolicyTypes": [
15                         {
16                             "name": "policy.type.0",
17                             "version": "1.2.3"
18                         },
19                         {
20                             "name": "policy.type.1",
21                             "version": "4.5.6"
22                         },
23                         {
24                             "name": "policy.type.2",
25                             "version": "7.8.9"
26                         }
27                     ],
28                     "policies": [
29                         {
30                             "name": "Policy0",
31                             "version": "4.5.6"
32                         },
33                         {
34                             "name": "Policy1",
35                             "version": "4.5.6"
36                         }
37                     ],
38                     "currentInstanceCount": 123,
39                     "desiredInstanceCount": 456,
40                     "properties": {
41                         "subgroupProperty0": "Value of sub Group Property 0"
42                     },
43                     "pdpInstances": [
44                         {
45                             "instanceId": "apex-0",
46                             "pdpState": "ACTIVE",
47                             "healthy": "NOT_HEALTHY",
48                             "message": "message from PDP"
49                         },
50                         {
51                             "instanceId": "apex-1",
52                             "pdpState": "PASSIVE",
53                             "healthy": "NOT_HEALTHY",
54                             "message": "message from PDP"
55                         },
56                         {
57                             "instanceId": "apex-2",
58                             "pdpState": "SAFE",
59                             "healthy": "NOT_HEALTHY",
60                             "message": "message from PDP"
61                         },
62                         {
63                             "instanceId": "apex-3",
64                             "pdpState": "TEST",
65                             "healthy": "NOT_HEALTHY",
66                             "message": "message from PDP"
67                         }
68                     ]
69                 }
70             ]
71         },
72         {
73             "name": "PdpGroup0",
74             "version": "1.2.4",
75             "description": "group description",
76             "pdpGroupState": "ACTIVE",
77             "properties": {
78                 "groupProperty0": "Value of Group Property 0"
79             },
80             "pdpSubgroups": [
81                 {
82                     "pdpType": "APEX",
83                     "supportedPolicyTypes": [
84                         {
85                             "name": "policy.type.0",
86                             "version": "1.2.3"
87                         },
88                         {
89                             "name": "policy.type.1",
90                             "version": "4.5.6"
91                         },
92                         {
93                             "name": "policy.type.3",
94                             "version": "0.1.2"
95                         }
96                     ],
97                     "policies": [
98                         {
99                             "name": "Policy2",
100                             "version": "4.5.6"
101                         }
102                     ],
103                     "currentInstanceCount": 123,
104                     "desiredInstanceCount": 456,
105                     "properties": {
106                         "subgroupProperty0": "Value of sub Group Property 0"
107                     },
108                     "pdpInstances": [
109                         {
110                             "instanceId": "apex-0",
111                             "pdpState": "ACTIVE",
112                             "healthy": "NOT_HEALTHY",
113                             "message": "message from PDP"
114                         }
115                     ]
116                 }
117             ]
118         },
119         {
120             "name": "PdpGroup0",
121             "version": "1.2.1",
122             "description": "group description",
123             "pdpGroupState": "SAFE",
124             "properties": {
125                 "groupProperty0": "Value of Group Property 0"
126             },
127             "pdpSubgroups": [
128                 {
129                     "pdpType": "APEX",
130                     "supportedPolicyTypes": [
131                         {
132                             "name": "policy.type.1",
133                             "version": "4.5.6"
134                         },
135                         {
136                             "name": "policy.type.3",
137                             "version": "0.1.2"
138                         }
139                     ],
140                     "policies": [
141                         {
142                             "name": "Policy2",
143                             "version": "4.5.6"
144                         },
145                         {
146                             "name": "Policy3",
147                             "version": "1.2.3"
148                         }
149                     ],
150                     "currentInstanceCount": 123,
151                     "desiredInstanceCount": 456,
152                     "properties": {
153                         "subgroupProperty0": "Value of sub Group Property 0"
154                     },
155                     "pdpInstances": [
156                         {
157                             "instanceId": "apex-0",
158                             "pdpState": "SAFE",
159                             "healthy": "NOT_HEALTHY",
160                             "message": "message from PDP"
161                         }
162                     ]
163                 },
164                 {
165                     "pdpType": "DROOLS",
166                     "supportedPolicyTypes": [
167                         {
168                             "name": "policy.type.0",
169                             "version": "1.2.3"
170                         }
171                     ],
172                     "policies": [
173                         {
174                             "name": "Policy0",
175                             "version": "4.5.6"
176                         }
177                     ],
178                     "currentInstanceCount": 123,
179                     "desiredInstanceCount": 456,
180                     "properties": {
181                         "subgroupProperty0": "Value of sub Group Property 0"
182                     },
183                     "pdpInstances": [
184                         {
185                             "instanceId": "apex-0",
186                             "pdpState": "SAFE",
187                             "healthy": "NOT_HEALTHY",
188                             "message": "message from PDP"
189                         }
190                     ]
191                 }
192             ]
193         },
194         {
195             "name": "PdpGroup1",
196             "version": "1.2.1",
197             "description": "group description",
198             "pdpGroupState": "PASSIVE",
199             "properties": {
200                 "groupProperty0": "Value of Group Property 0"
201             },
202             "pdpSubgroups": [
203                 {
204                     "pdpType": "APEX",
205                     "supportedPolicyTypes": [
206                         {
207                             "name": "policy.type.1",
208                             "version": "4.5.6"
209                         },
210                         {
211                             "name": "policy.type.2",
212                             "version": "7.8.9"
213                         }
214                     ],
215                     "policies": [
216                         {
217                             "name": "Policy0",
218                             "version": "4.5.6"
219                         }
220                     ],
221                     "currentInstanceCount": 123,
222                     "desiredInstanceCount": 456,
223                     "properties": {
224                         "subgroupProperty0": "Value of sub Group Property 0"
225                     },
226                     "pdpInstances": [
227                         {
228                             "instanceId": "apex-0",
229                             "pdpState": "PASSIVE",
230                             "healthy": "NOT_HEALTHY",
231                             "message": "message from PDP"
232                         }
233                     ]
234                 }
235             ]
236         },
237         {
238             "name": "PdpGroup1",
239             "version": "1.2.3",
240             "description": "group description",
241             "pdpGroupState": "TEST",
242             "properties": {
243                 "groupProperty0": "Value of Group Property 0"
244             },
245             "pdpSubgroups": [
246                 {
247                     "pdpType": "APEX",
248                     "supportedPolicyTypes": [
249                         {
250                             "name": "policy.type.0",
251                             "version": "1.2.3"
252                         }
253                     ],
254                     "policies": [
255                         {
256                             "name": "Policy0",
257                             "version": "4.5.6"
258                         }
259                     ],
260                     "currentInstanceCount": 123,
261                     "desiredInstanceCount": 456,
262                     "properties": {
263                         "subgroupProperty0": "Value of sub Group Property 0"
264                     },
265                     "pdpInstances": [
266                         {
267                             "instanceId": "apex-0",
268                             "pdpState": "TEST",
269                             "healthy": "NOT_HEALTHY",
270                             "message": "message from PDP"
271                         }
272                     ]
273                 },
274                 {
275                     "pdpType": "DROOLS",
276                     "supportedPolicyTypes": [
277                         {
278                             "name": "policy.type.0",
279                             "version": "1.2.3"
280                         }
281                     ],
282                     "policies": [
283                         {
284                             "name": "Policy0",
285                             "version": "4.5.6"
286                         }
287                     ],
288                     "currentInstanceCount": 123,
289                     "desiredInstanceCount": 456,
290                     "properties": {
291                         "subgroupProperty0": "Value of sub Group Property 0"
292                     },
293                     "pdpInstances": [
294                         {
295                             "instanceId": "apex-0",
296                             "pdpState": "PASSIVE",
297                             "healthy": "NOT_HEALTHY",
298                             "message": "message from PDP"
299                         }
300                     ]
301                 },
302                 {
303                     "pdpType": "XACML",
304                     "supportedPolicyTypes": [
305                         {
306                             "name": "policy.type.0",
307                             "version": "1.2.3"
308                         }
309                     ],
310                     "policies": [
311                         {
312                             "name": "Policy0",
313                             "version": "4.5.6"
314                         }
315                     ],
316                     "currentInstanceCount": 123,
317                     "desiredInstanceCount": 456,
318                     "properties": {
319                         "subgroupProperty0": "Value of sub Group Property 0"
320                     },
321                     "pdpInstances": [
322                         {
323                             "instanceId": "apex-0",
324                             "pdpState": "ACTIVE",
325                             "healthy": "NOT_HEALTHY",
326                             "message": "message from PDP"
327                         }
328                     ]
329                 }
330             ]
331         }
332     ]
333 }