3 # ============LICENSE_START===============================================
4 # Copyright (C) 2020 Nordix Foundation. All rights reserved.
5 # ========================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=================================================
20 TC_ONELINE_DESCR="Change supported policy types and reconfigure rics"
22 #App names to include in the test when running docker, space separated list
23 DOCKER_INCLUDED_IMAGES="CBS CONSUL CP CR MR A1PMS RICSIM SDNC KUBEPROXY"
25 #App names to include in the test when running kubernetes, space separated list
26 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY"
27 #Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
28 KUBE_PRESTARTED_IMAGES=""
30 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
31 #the image is not configured in the supplied env_file
32 #Used for images not applicable to all supported profile
33 CONDITIONALLY_IGNORED_IMAGES="CBS CONSUL"
35 #Supported test environment profiles
36 SUPPORTED_PROFILES="ONAP-GUILIN ONAP-HONOLULU ONAP-ISTANBUL ONAP-JAKARTA ONAP-KOHN ONAP-LONDON ORAN-CHERRY ORAN-D-RELEASE ORAN-E-RELEASE ORAN-F-RELEASE ORAN-G-RELEASE"
38 SUPPORTED_RUNMODES="DOCKER KUBE"
40 . ../common/testcase_common.sh $@
51 NUM_RICS_2=$(($NUM_RICS-2))
53 # Tested variants of REST/SDNC config
54 TESTED_VARIANTS="REST REST+SDNC"
56 for interface in $TESTED_VARIANTS ; do
58 echo "#####################################################################"
59 echo "#####################################################################"
60 echo "### Testing a1pms: "$interface
61 echo "#####################################################################"
62 echo "#####################################################################"
65 # Clean container and start all needed containers #
70 #Start simulators and prepare two configs
72 start_ric_simulators ricsim_g1 $NUM_RICS_2 OSC_2.1.0
78 if [ $RUNMODE == "DOCKER" ]; then
79 if [[ "$A1PMS_FEATURE_LEVEL" != *"NOCONSUL"* ]]; then
84 __CONFIG_HEADER="NOHEADER"
85 if [ $RUNMODE == "KUBE" ]; then
86 __CONFIG_HEADER="HEADER"
88 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
89 __CONFIG_HEADER="HEADER"
94 if [[ $interface = *"SDNC"* ]]; then
96 prepare_consul_config SDNC ".consul_config_initial.json" $__CONFIG_HEADER
98 prepare_consul_config NOSDNC ".consul_config_initial.json" $__CONFIG_HEADER
101 # Create 2nd config and save for later
102 start_ric_simulators ricsim_g1 $NUM_RICS OSC_2.1.0
104 if [[ $interface = *"SDNC"* ]]; then
105 prepare_consul_config SDNC ".consul_config_all.json" $__CONFIG_HEADER
107 prepare_consul_config NOSDNC ".consul_config_all.json" $__CONFIG_HEADER
110 if [ $RUNMODE == "KUBE" ] && [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
111 start_a1pms NORPOXY $SIM_GROUP/$A1PMS_COMPOSE_DIR/application2.yaml
113 start_a1pms NORPOXY $SIM_GROUP/$A1PMS_COMPOSE_DIR/$A1PMS_CONFIG_FILE
118 sleep_wait 120 "Let A1PMS cofiguration take effect"
120 a1pms_api_get_status 200
122 # Create service to be able to receive events when rics becomes available
123 # Must use rest towards the a1pms since dmaap is not configured yet
124 a1pms_api_put_service 201 "ric-registration" 0 "$CR_SERVICE_APP_PATH_0/ric-registration"
127 if [ $RUNMODE == "KUBE" ]; then
128 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
129 a1pms_api_put_configuration 200 ".consul_config_initial.json"
130 a1pms_api_get_configuration 200 ".consul_config_initial.json"
132 a1pms_load_config ".consul_config_initial.json"
135 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
136 a1pms_api_put_configuration 200 ".consul_config_initial.json"
137 a1pms_api_get_configuration 200 ".consul_config_initial.json"
139 consul_config_app ".consul_config_initial.json"
143 for ((i=1; i<=${NUM_RICS}; i++))
145 sim_print ricsim_g1_$i interface
148 # All sims running but 2 are not configured in consul
149 a1pms_equal json:rics 8 300
151 if [ "$A1PMS_VERSION" == "V2" ]; then
152 cr_equal 0 received_callbacks?id=ric-registration 8 120
153 cr_api_check_all_sync_events 200 0 ric-registration ricsim_g1_1 ricsim_g1_2 ricsim_g1_3 ricsim_g1_4 ricsim_g1_5 ricsim_g1_6 ricsim_g1_7 ricsim_g1_8
156 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:NOTYPE:???? \
157 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:NOTYPE:???? \
158 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:NOTYPE:???? \
159 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:NOTYPE:???? \
160 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:NOTYPE:???? \
161 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:NOTYPE:???? \
162 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:NOTYPE:???? \
163 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:NOTYPE:???? "
166 sim_put_policy_type 201 ricsim_g1_1 1 testdata/OSC/sim_1.json
167 sim_put_policy_type 201 ricsim_g1_2 1 testdata/OSC/sim_1.json
168 sim_put_policy_type 201 ricsim_g1_3 1 testdata/OSC/sim_1.json
169 sim_put_policy_type 201 ricsim_g1_4 1 testdata/OSC/sim_1.json
170 sim_put_policy_type 201 ricsim_g1_5 1 testdata/OSC/sim_1.json
172 sim_put_policy_type 201 ricsim_g1_2 2 testdata/OSC/sim_2.json
173 sim_put_policy_type 201 ricsim_g1_3 2 testdata/OSC/sim_2.json
174 sim_put_policy_type 201 ricsim_g1_4 2 testdata/OSC/sim_2.json
175 sim_put_policy_type 201 ricsim_g1_5 2 testdata/OSC/sim_2.json
176 sim_put_policy_type 201 ricsim_g1_6 2 testdata/OSC/sim_2.json
178 sim_put_policy_type 201 ricsim_g1_3 3 testdata/OSC/sim_3.json
179 sim_put_policy_type 201 ricsim_g1_4 3 testdata/OSC/sim_3.json
180 sim_put_policy_type 201 ricsim_g1_5 3 testdata/OSC/sim_3.json
181 sim_put_policy_type 201 ricsim_g1_6 3 testdata/OSC/sim_3.json
182 sim_put_policy_type 201 ricsim_g1_7 3 testdata/OSC/sim_3.json
184 sim_put_policy_type 201 ricsim_g1_4 4 testdata/OSC/sim_4.json
185 sim_put_policy_type 201 ricsim_g1_5 4 testdata/OSC/sim_4.json
186 sim_put_policy_type 201 ricsim_g1_6 4 testdata/OSC/sim_4.json
187 sim_put_policy_type 201 ricsim_g1_7 4 testdata/OSC/sim_4.json
188 sim_put_policy_type 201 ricsim_g1_8 4 testdata/OSC/sim_4.json
190 sim_put_policy_type 201 ricsim_g1_5 5 testdata/OSC/sim_5.json
191 sim_put_policy_type 201 ricsim_g1_6 5 testdata/OSC/sim_5.json
192 sim_put_policy_type 201 ricsim_g1_7 5 testdata/OSC/sim_5.json
193 sim_put_policy_type 201 ricsim_g1_8 5 testdata/OSC/sim_5.json
195 if [ "$A1PMS_VERSION" == "V2" ]; then
196 a1pms_equal json:policy-types 5 120
198 echo "Check the number of types in the a1pms for each ric"
199 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
200 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
201 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
202 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
203 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
204 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
205 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
206 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
208 a1pms_equal json:policy_types 5 120
210 echo "Check the number of types in the a1pms for each ric"
211 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
212 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
213 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
214 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
215 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
216 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
217 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
218 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
221 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
222 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
223 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
224 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
225 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
226 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
227 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
228 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? "
230 if [ "$A1PMS_VERSION" == "V2" ]; then
231 cr_equal 0 received_callbacks?id=ric-registration 16 120
232 cr_api_check_all_sync_events 200 0 ric-registration ricsim_g1_1 ricsim_g1_2 ricsim_g1_3 ricsim_g1_4 ricsim_g1_5 ricsim_g1_6 ricsim_g1_7 ricsim_g1_8
235 #Load config with all rics
236 if [ $RUNMODE == "KUBE" ]; then
237 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
238 a1pms_api_put_configuration 200 ".consul_config_all.json"
239 a1pms_api_get_configuration 200 ".consul_config_all.json"
241 a1pms_load_config ".consul_config_all.json"
244 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
245 a1pms_api_put_configuration 200 ".consul_config_all.json"
246 a1pms_api_get_configuration 200 ".consul_config_all.json"
248 consul_config_app ".consul_config_all.json"
252 a1pms_equal json:rics 10 120
254 if [ "$A1PMS_VERSION" == "V2" ]; then
255 cr_equal 0 received_callbacks?id=ric-registration 18 120
256 cr_api_check_all_sync_events 200 0 ric-registration ricsim_g1_9 ricsim_g1_10
259 sim_put_policy_type 201 ricsim_g1_9 5 testdata/OSC/sim_5.json
261 if [ "$A1PMS_VERSION" == "V2" ]; then
263 a1pms_equal json:policy-types 5 120
265 echo "Check the number of types in the a1pms for each ric"
266 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
267 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
268 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
269 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
270 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
271 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
272 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
273 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
274 a1pms_equal json:policy-types?ric_id=ricsim_g1_9 1 120
275 a1pms_equal json:policy-types?ric_id=ricsim_g1_10 0 120
278 a1pms_equal json:policy_types 5 120
280 echo "Check the number of types in the a1pms for each ric"
281 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
282 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
283 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
284 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
285 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
286 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
287 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
288 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
289 a1pms_equal json:policy_types?ric=ricsim_g1_9 1 120
290 a1pms_equal json:policy_types?ric=ricsim_g1_10 0 120
293 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
294 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
295 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
296 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
297 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
298 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
299 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
300 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? \
301 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
302 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
304 if [ "$A1PMS_VERSION" == "V2" ]; then
305 cr_equal 0 received_callbacks?id=ric-registration 19 120
306 cr_api_check_all_sync_events 200 0 ric-registration ricsim_g1_9
309 #No policy type in sim #10
311 if [ "$A1PMS_VERSION" == "V2" ]; then
312 a1pms_equal json:policy-types 5
314 a1pms_equal json:policy_types 5
317 a1pms_api_put_service 201 "serv1" 3600 "$CR_SERVICE_APP_PATH_0/serv1"
319 if [ "$A1PMS_VERSION" == "V2" ]; then
320 notificationurl=$CR_SERVICE_APP_PATH_0"/test"
327 # Load config with reduced number of rics
328 if [ $RUNMODE == "KUBE" ]; then
329 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
330 a1pms_api_put_configuration 200 ".consul_config_initial.json"
331 a1pms_api_get_configuration 200 ".consul_config_initial.json"
333 a1pms_load_config ".consul_config_initial.json"
336 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
337 a1pms_api_put_configuration 200 ".consul_config_initial.json"
338 a1pms_api_get_configuration 200 ".consul_config_initial.json"
340 consul_config_app ".consul_config_initial.json"
344 a1pms_equal json:rics 8 120
346 if [ "$A1PMS_VERSION" == "V2" ]; then
347 cr_equal 0 received_callbacks?id=ric-registration 19 120
348 cr_api_check_all_sync_events 200 0 ric-registration EMPTY
351 if [ "$A1PMS_VERSION" == "V2" ]; then
353 a1pms_equal json:policy-types 5 120
355 echo "Check the number of types in the a1pms for each ric"
356 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
357 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
358 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
359 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
360 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
361 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
362 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
363 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
366 a1pms_equal json:policy_types 5 120
368 echo "Check the number of types in the a1pms for each ric"
369 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
370 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
371 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
372 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
373 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
374 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
375 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
376 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
379 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
380 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
381 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
382 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
383 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
384 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
385 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
386 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? "
390 if [ "$A1PMS_VERSION" == "V2" ]; then
391 a1pms_equal json:policy-instances 0
393 a1pms_equal json:policy_ids 0
396 a1pms_api_get_policy_types 404 ricsim_g1_9
398 # Load config with all rics
399 if [ $RUNMODE == "KUBE" ]; then
400 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
401 a1pms_api_put_configuration 200 ".consul_config_all.json"
402 a1pms_api_get_configuration 200 ".consul_config_all.json"
404 a1pms_load_config ".consul_config_all.json"
407 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
408 a1pms_api_put_configuration 200 ".consul_config_all.json"
409 a1pms_api_get_configuration 200 ".consul_config_all.json"
411 consul_config_app ".consul_config_all.json"
415 a1pms_equal json:rics 10 120
417 if [ "$A1PMS_VERSION" == "V2" ]; then
419 a1pms_equal json:policy-types 5 120
421 echo "Check the number of types in the a1pms for each ric"
422 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
423 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
424 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
425 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
426 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
427 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
428 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
429 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
430 a1pms_equal json:policy-types?ric_id=ricsim_g1_9 1 120
431 a1pms_equal json:policy-types?ric_id=ricsim_g1_10 0 120
434 a1pms_equal json:policy_types 5 120
436 echo "Check the number of types in the a1pms for each ric"
437 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
438 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
439 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
440 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
441 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
442 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
443 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
444 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
445 a1pms_equal json:policy_types?ric=ricsim_g1_9 1 120
446 a1pms_equal json:policy_types?ric=ricsim_g1_10 0 120
449 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
450 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
451 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
452 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
453 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
454 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
455 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
456 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? \
457 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
458 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
462 if [ "$A1PMS_VERSION" == "V2" ]; then
463 a1pms_equal json:policy-instances 0
465 a1pms_equal json:policy_ids 0
468 sim_equal ricsim_g1_9 num_instances 0
471 sim_delete_policy_type 204 ricsim_g1_4 4
472 sim_delete_policy_type 204 ricsim_g1_5 4
473 sim_delete_policy_type 204 ricsim_g1_6 4
474 sim_delete_policy_type 204 ricsim_g1_7 4
478 if [ "$A1PMS_VERSION" == "V2" ]; then
480 a1pms_equal json:policy-types 5 120
482 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
483 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
484 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
485 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 3 120
486 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 4 120
487 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 3 120
488 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 2 120
489 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
490 a1pms_equal json:policy-types?ric_id=ricsim_g1_9 1 120
491 a1pms_equal json:policy-types?ric_id=ricsim_g1_10 0 120
494 a1pms_equal json:policy_types 5 120
496 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
497 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
498 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
499 a1pms_equal json:policy_types?ric=ricsim_g1_4 3 120
500 a1pms_equal json:policy_types?ric=ricsim_g1_5 4 120
501 a1pms_equal json:policy_types?ric=ricsim_g1_6 3 120
502 a1pms_equal json:policy_types?ric=ricsim_g1_7 2 120
503 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
504 a1pms_equal json:policy_types?ric=ricsim_g1_9 1 120
505 a1pms_equal json:policy_types?ric=ricsim_g1_10 0 120
508 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
509 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
510 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
511 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3:???? \
512 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,5:???? \
513 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,5:???? \
514 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,5:???? \
515 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? \
516 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
517 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
519 sim_delete_policy_type 204 ricsim_g1_8 4
521 if [ "$A1PMS_VERSION" == "V2" ]; then
522 a1pms_equal json:policy-types 5 120
523 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 1 120
525 a1pms_equal json:policy_types 5 120
526 a1pms_equal json:policy_types?ric=ricsim_g1_8 1 120
529 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
530 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
531 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
532 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3:???? \
533 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,5:???? \
534 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,5:???? \
535 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,5:???? \
536 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:5:???? \
537 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
538 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
543 if [[ $interface = *"SDNC"* ]]; then
547 store_logs ${interface}
552 #### TEST COMPLETE ####
557 auto_clean_environment