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 ORAN-CHERRY ORAN-D-RELEASE ORAN-E-RELEASE ORAN-F-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
85 if [[ $interface = *"SDNC"* ]]; then
87 prepare_consul_config SDNC ".consul_config_initial.json"
89 prepare_consul_config NOSDNC ".consul_config_initial.json"
92 # Create 2nd config and save for later
93 start_ric_simulators ricsim_g1 $NUM_RICS OSC_2.1.0
95 if [[ $interface = *"SDNC"* ]]; then
96 prepare_consul_config SDNC ".consul_config_all.json"
98 prepare_consul_config NOSDNC ".consul_config_all.json"
101 if [ $RUNMODE == "KUBE" ] && [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
102 start_a1pms NORPOXY $SIM_GROUP/$A1PMS_COMPOSE_DIR/application2.yaml
104 start_a1pms NORPOXY $SIM_GROUP/$A1PMS_COMPOSE_DIR/$A1PMS_CONFIG_FILE
109 a1pms_api_get_status 200
111 # Create service to be able to receive events when rics becomes available
112 # Must use rest towards the a1pms since dmaap is not configured yet
113 a1pms_api_put_service 201 "ric-registration" 0 "$CR_SERVICE_APP_PATH_0/ric-registration"
116 if [ $RUNMODE == "KUBE" ]; then
117 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
118 a1pms_api_put_configuration 200 ".consul_config_initial.json"
119 a1pms_api_get_configuration 200 ".consul_config_initial.json"
121 a1pms_load_config ".consul_config_initial.json"
124 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
125 a1pms_api_put_configuration 200 ".consul_config_initial.json"
126 a1pms_api_get_configuration 200 ".consul_config_initial.json"
128 consul_config_app ".consul_config_initial.json"
132 for ((i=1; i<=${NUM_RICS}; i++))
134 sim_print ricsim_g1_$i interface
137 # All sims running but 2 are not configured in consul
138 a1pms_equal json:rics 8 300
140 if [ "$A1PMS_VERSION" == "V2" ]; then
141 cr_equal 0 received_callbacks?id=ric-registration 8 120
142 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
145 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:NOTYPE:???? \
146 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:NOTYPE:???? \
147 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:NOTYPE:???? \
148 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:NOTYPE:???? \
149 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:NOTYPE:???? \
150 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:NOTYPE:???? \
151 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:NOTYPE:???? \
152 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:NOTYPE:???? "
155 sim_put_policy_type 201 ricsim_g1_1 1 testdata/OSC/sim_1.json
156 sim_put_policy_type 201 ricsim_g1_2 1 testdata/OSC/sim_1.json
157 sim_put_policy_type 201 ricsim_g1_3 1 testdata/OSC/sim_1.json
158 sim_put_policy_type 201 ricsim_g1_4 1 testdata/OSC/sim_1.json
159 sim_put_policy_type 201 ricsim_g1_5 1 testdata/OSC/sim_1.json
161 sim_put_policy_type 201 ricsim_g1_2 2 testdata/OSC/sim_2.json
162 sim_put_policy_type 201 ricsim_g1_3 2 testdata/OSC/sim_2.json
163 sim_put_policy_type 201 ricsim_g1_4 2 testdata/OSC/sim_2.json
164 sim_put_policy_type 201 ricsim_g1_5 2 testdata/OSC/sim_2.json
165 sim_put_policy_type 201 ricsim_g1_6 2 testdata/OSC/sim_2.json
167 sim_put_policy_type 201 ricsim_g1_3 3 testdata/OSC/sim_3.json
168 sim_put_policy_type 201 ricsim_g1_4 3 testdata/OSC/sim_3.json
169 sim_put_policy_type 201 ricsim_g1_5 3 testdata/OSC/sim_3.json
170 sim_put_policy_type 201 ricsim_g1_6 3 testdata/OSC/sim_3.json
171 sim_put_policy_type 201 ricsim_g1_7 3 testdata/OSC/sim_3.json
173 sim_put_policy_type 201 ricsim_g1_4 4 testdata/OSC/sim_4.json
174 sim_put_policy_type 201 ricsim_g1_5 4 testdata/OSC/sim_4.json
175 sim_put_policy_type 201 ricsim_g1_6 4 testdata/OSC/sim_4.json
176 sim_put_policy_type 201 ricsim_g1_7 4 testdata/OSC/sim_4.json
177 sim_put_policy_type 201 ricsim_g1_8 4 testdata/OSC/sim_4.json
179 sim_put_policy_type 201 ricsim_g1_5 5 testdata/OSC/sim_5.json
180 sim_put_policy_type 201 ricsim_g1_6 5 testdata/OSC/sim_5.json
181 sim_put_policy_type 201 ricsim_g1_7 5 testdata/OSC/sim_5.json
182 sim_put_policy_type 201 ricsim_g1_8 5 testdata/OSC/sim_5.json
184 if [ "$A1PMS_VERSION" == "V2" ]; then
185 a1pms_equal json:policy-types 5 120
187 echo "Check the number of types in the a1pms for each ric"
188 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
189 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
190 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
191 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
192 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
193 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
194 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
195 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
197 a1pms_equal json:policy_types 5 120
199 echo "Check the number of types in the a1pms for each ric"
200 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
201 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
202 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
203 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
204 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
205 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
206 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
207 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
210 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
211 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
212 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
213 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
214 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
215 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
216 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
217 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? "
219 if [ "$A1PMS_VERSION" == "V2" ]; then
220 cr_equal 0 received_callbacks?id=ric-registration 16 120
221 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
224 #Load config with all rics
225 if [ $RUNMODE == "KUBE" ]; then
226 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
227 a1pms_api_put_configuration 200 ".consul_config_all.json"
228 a1pms_api_get_configuration 200 ".consul_config_all.json"
230 a1pms_load_config ".consul_config_all.json"
233 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
234 a1pms_api_put_configuration 200 ".consul_config_all.json"
235 a1pms_api_get_configuration 200 ".consul_config_all.json"
237 consul_config_app ".consul_config_all.json"
241 a1pms_equal json:rics 10 120
243 if [ "$A1PMS_VERSION" == "V2" ]; then
244 cr_equal 0 received_callbacks?id=ric-registration 18 120
245 cr_api_check_all_sync_events 200 0 ric-registration ricsim_g1_9 ricsim_g1_10
248 sim_put_policy_type 201 ricsim_g1_9 5 testdata/OSC/sim_5.json
250 if [ "$A1PMS_VERSION" == "V2" ]; then
252 a1pms_equal json:policy-types 5 120
254 echo "Check the number of types in the a1pms for each ric"
255 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
256 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
257 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
258 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
259 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
260 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
261 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
262 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
263 a1pms_equal json:policy-types?ric_id=ricsim_g1_9 1 120
264 a1pms_equal json:policy-types?ric_id=ricsim_g1_10 0 120
267 a1pms_equal json:policy_types 5 120
269 echo "Check the number of types in the a1pms for each ric"
270 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
271 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
272 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
273 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
274 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
275 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
276 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
277 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
278 a1pms_equal json:policy_types?ric=ricsim_g1_9 1 120
279 a1pms_equal json:policy_types?ric=ricsim_g1_10 0 120
282 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
283 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
284 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
285 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
286 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
287 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
288 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
289 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? \
290 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
291 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
293 if [ "$A1PMS_VERSION" == "V2" ]; then
294 cr_equal 0 received_callbacks?id=ric-registration 19 120
295 cr_api_check_all_sync_events 200 0 ric-registration ricsim_g1_9
298 #No policy type in sim #10
300 if [ "$A1PMS_VERSION" == "V2" ]; then
301 a1pms_equal json:policy-types 5
303 a1pms_equal json:policy_types 5
306 a1pms_api_put_service 201 "serv1" 3600 "$CR_SERVICE_APP_PATH_0/serv1"
308 if [ "$A1PMS_VERSION" == "V2" ]; then
309 notificationurl=$CR_SERVICE_APP_PATH_0"/test"
316 # Load config with reduced number of rics
317 if [ $RUNMODE == "KUBE" ]; then
318 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
319 a1pms_api_put_configuration 200 ".consul_config_initial.json"
320 a1pms_api_get_configuration 200 ".consul_config_initial.json"
322 a1pms_load_config ".consul_config_initial.json"
325 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
326 a1pms_api_put_configuration 200 ".consul_config_initial.json"
327 a1pms_api_get_configuration 200 ".consul_config_initial.json"
329 consul_config_app ".consul_config_initial.json"
333 a1pms_equal json:rics 8 120
335 if [ "$A1PMS_VERSION" == "V2" ]; then
336 cr_equal 0 received_callbacks?id=ric-registration 19 120
337 cr_api_check_all_sync_events 200 0 ric-registration EMPTY
340 if [ "$A1PMS_VERSION" == "V2" ]; then
342 a1pms_equal json:policy-types 5 120
344 echo "Check the number of types in the a1pms for each ric"
345 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
346 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
347 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
348 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
349 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
350 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
351 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
352 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
355 a1pms_equal json:policy_types 5 120
357 echo "Check the number of types in the a1pms for each ric"
358 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
359 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
360 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
361 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
362 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
363 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
364 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
365 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
368 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
369 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
370 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
371 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
372 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
373 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
374 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
375 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? "
379 if [ "$A1PMS_VERSION" == "V2" ]; then
380 a1pms_equal json:policy-instances 0
382 a1pms_equal json:policy_ids 0
385 a1pms_api_get_policy_types 404 ricsim_g1_9
387 # Load config with all rics
388 if [ $RUNMODE == "KUBE" ]; then
389 if [[ "$A1PMS_FEATURE_LEVEL" == *"INITIALCONFIGMAP"* ]]; then
390 a1pms_api_put_configuration 200 ".consul_config_all.json"
391 a1pms_api_get_configuration 200 ".consul_config_all.json"
393 a1pms_load_config ".consul_config_all.json"
396 if [[ "$A1PMS_FEATURE_LEVEL" == *"NOCONSUL"* ]]; then
397 a1pms_api_put_configuration 200 ".consul_config_all.json"
398 a1pms_api_get_configuration 200 ".consul_config_all.json"
400 consul_config_app ".consul_config_all.json"
404 a1pms_equal json:rics 10 120
406 if [ "$A1PMS_VERSION" == "V2" ]; then
408 a1pms_equal json:policy-types 5 120
410 echo "Check the number of types in the a1pms for each ric"
411 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
412 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
413 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
414 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 4 120
415 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 5 120
416 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 4 120
417 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 3 120
418 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
419 a1pms_equal json:policy-types?ric_id=ricsim_g1_9 1 120
420 a1pms_equal json:policy-types?ric_id=ricsim_g1_10 0 120
423 a1pms_equal json:policy_types 5 120
425 echo "Check the number of types in the a1pms for each ric"
426 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
427 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
428 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
429 a1pms_equal json:policy_types?ric=ricsim_g1_4 4 120
430 a1pms_equal json:policy_types?ric=ricsim_g1_5 5 120
431 a1pms_equal json:policy_types?ric=ricsim_g1_6 4 120
432 a1pms_equal json:policy_types?ric=ricsim_g1_7 3 120
433 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
434 a1pms_equal json:policy_types?ric=ricsim_g1_9 1 120
435 a1pms_equal json:policy_types?ric=ricsim_g1_10 0 120
438 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
439 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
440 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
441 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3,4:???? \
442 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,4,5:???? \
443 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,4,5:???? \
444 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,4,5:???? \
445 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? \
446 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
447 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
451 if [ "$A1PMS_VERSION" == "V2" ]; then
452 a1pms_equal json:policy-instances 0
454 a1pms_equal json:policy_ids 0
457 sim_equal ricsim_g1_9 num_instances 0
460 sim_delete_policy_type 204 ricsim_g1_4 4
461 sim_delete_policy_type 204 ricsim_g1_5 4
462 sim_delete_policy_type 204 ricsim_g1_6 4
463 sim_delete_policy_type 204 ricsim_g1_7 4
467 if [ "$A1PMS_VERSION" == "V2" ]; then
469 a1pms_equal json:policy-types 5 120
471 a1pms_equal json:policy-types?ric_id=ricsim_g1_1 1 120
472 a1pms_equal json:policy-types?ric_id=ricsim_g1_2 2 120
473 a1pms_equal json:policy-types?ric_id=ricsim_g1_3 3 120
474 a1pms_equal json:policy-types?ric_id=ricsim_g1_4 3 120
475 a1pms_equal json:policy-types?ric_id=ricsim_g1_5 4 120
476 a1pms_equal json:policy-types?ric_id=ricsim_g1_6 3 120
477 a1pms_equal json:policy-types?ric_id=ricsim_g1_7 2 120
478 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 2 120
479 a1pms_equal json:policy-types?ric_id=ricsim_g1_9 1 120
480 a1pms_equal json:policy-types?ric_id=ricsim_g1_10 0 120
483 a1pms_equal json:policy_types 5 120
485 a1pms_equal json:policy_types?ric=ricsim_g1_1 1 120
486 a1pms_equal json:policy_types?ric=ricsim_g1_2 2 120
487 a1pms_equal json:policy_types?ric=ricsim_g1_3 3 120
488 a1pms_equal json:policy_types?ric=ricsim_g1_4 3 120
489 a1pms_equal json:policy_types?ric=ricsim_g1_5 4 120
490 a1pms_equal json:policy_types?ric=ricsim_g1_6 3 120
491 a1pms_equal json:policy_types?ric=ricsim_g1_7 2 120
492 a1pms_equal json:policy_types?ric=ricsim_g1_8 2 120
493 a1pms_equal json:policy_types?ric=ricsim_g1_9 1 120
494 a1pms_equal json:policy_types?ric=ricsim_g1_10 0 120
497 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
498 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
499 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
500 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3:???? \
501 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,5:???? \
502 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,5:???? \
503 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,5:???? \
504 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:4,5:???? \
505 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
506 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
508 sim_delete_policy_type 204 ricsim_g1_8 4
510 if [ "$A1PMS_VERSION" == "V2" ]; then
511 a1pms_equal json:policy-types 5 120
512 a1pms_equal json:policy-types?ric_id=ricsim_g1_8 1 120
514 a1pms_equal json:policy_types 5 120
515 a1pms_equal json:policy_types?ric=ricsim_g1_8 1 120
518 a1pms_api_get_rics 200 NOTYPE "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1:???? \
519 ricsim_g1_2:me1_ricsim_g1_2,me2_ricsim_g1_2:1,2:???? \
520 ricsim_g1_3:me1_ricsim_g1_3,me2_ricsim_g1_3:1,2,3:???? \
521 ricsim_g1_4:me1_ricsim_g1_4,me2_ricsim_g1_4:1,2,3:???? \
522 ricsim_g1_5:me1_ricsim_g1_5,me2_ricsim_g1_5:1,2,3,5:???? \
523 ricsim_g1_6:me1_ricsim_g1_6,me2_ricsim_g1_6:2,3,5:???? \
524 ricsim_g1_7:me1_ricsim_g1_7,me2_ricsim_g1_7:3,5:???? \
525 ricsim_g1_8:me1_ricsim_g1_8,me2_ricsim_g1_8:5:???? \
526 ricsim_g1_9:me1_ricsim_g1_9,me2_ricsim_g1_9:5:???? \
527 ricsim_g1_10:me1_ricsim_g1_10,me2_ricsim_g1_10:NOTYPE:???? "
532 if [[ $interface = *"SDNC"* ]]; then
536 store_logs ${interface}
541 #### TEST COMPLETE ####
546 auto_clean_environment