X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fauto-test%2FFTC810.sh;h=f977d145c4a30c9e95474a7cd732d53d67b06caf;hb=refs%2Fchanges%2F89%2F10889%2F2;hp=44015d699a7f33c555bcbc4e3aba42e4190d0561;hpb=e6b019fac7bd4cc2610564909de61b983455661a;p=nonrtric.git diff --git a/test/auto-test/FTC810.sh b/test/auto-test/FTC810.sh index 44015d69..f977d145 100755 --- a/test/auto-test/FTC810.sh +++ b/test/auto-test/FTC810.sh @@ -1,7 +1,7 @@ #!/bin/bash # ============LICENSE_START=============================================== -# Copyright (C) 2020 Nordix Foundation. All rights reserved. +# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ # ============LICENSE_END================================================= # -TC_ONELINE_DESCR="Repeatedly create and delete policies in each RICs for 24h (or configured number of days). Via agent REST/DMAAP/DMAAP_BATCH and SDNC using http or https" +TC_ONELINE_DESCR="Repeatedly create and delete policies in each RICs for 24h (or configured number of days). Via a1pms REST and with SDNC using http or https" #App names to include in the test when running docker, space separated list -DOCKER_INCLUDED_IMAGES="CBS CONSUL CP CR MR PA RICSIM SDNC NGW" +DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC NGW KUBEPROXY" #App names to include in the test when running kubernetes, space separated list -KUBE_INCLUDED_IMAGES="CP CR MR PA RICSIM SDNC KUBEPROXY NGW" +KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY NGW" #Prestarted app (not started by script) to include in the test when running kubernetes, space separated list KUBE_PRESTARTED_IMAGES="" @@ -33,35 +33,23 @@ KUBE_PRESTARTED_IMAGES="" CONDITIONALLY_IGNORED_IMAGES="NGW" #Supported test environment profiles -SUPPORTED_PROFILES="ONAP-GUILIN ONAP-HONOLULU ONAP-ISTANBUL ORAN-CHERRY ORAN-DAWN" +SUPPORTED_PROFILES="ONAP-JAKARTA ONAP-KOHN ONAP-LONDON ORAN-F-RELEASE ORAN-G-RELEASE ORAN-H-RELEASE" #Supported run modes SUPPORTED_RUNMODES="DOCKER KUBE" -. ../common/testcase_common.sh $@ -. ../common/agent_api_functions.sh -. ../common/ricsimulator_api_functions.sh -. ../common/cr_api_functions.sh -. ../common/mr_api_functions.sh -. ../common/control_panel_api_functions.sh -. ../common/controller_api_functions.sh -. ../common/consul_cbs_functions.sh -. ../common/kube_proxy_api_functions.sh -. ../common/gateway_api_functions.sh +. ../common/testcase_common.sh $@ setup_testenvironment #### TEST BEGIN #### -generate_policy_uuid +sim_generate_policy_uuid #Local vars in test script ########################## -# Number of RICs per interface type (OSC and STD) -NUM_RICS=30 -if [ "$PMS_VERSION" == "V2" ]; then - NUM_RICS=20 # 3 A1 interfaces test, less sims per interface. total sims will be same -fi +# Number of RICs per interface type (OSC and STD x 2) +NUM_RICS=20 # Number of policy instances per RIC NUM_INSTANCES=5 @@ -70,22 +58,25 @@ DAYS=3 clean_environment -if [ $RUNMODE == "KUBE" ]; then - start_kube_proxy -fi +start_kube_proxy # use HTTP or HTTPS for all apis HTTPX=HTTPS if [ $HTTPX == "HTTP" ]; then use_cr_http - use_agent_rest_http + use_a1pms_rest_http use_sdnc_http use_simulator_http else use_cr_https - use_agent_rest_https - use_sdnc_https + use_a1pms_rest_https + if [[ "$SDNC_FEATURE_LEVEL" == *"NO_NB_HTTPS"* ]]; then + deviation "SDNC does not support NB https" + use_sdnc_http + else + use_sdnc_https + fi use_simulator_https fi @@ -93,13 +84,15 @@ start_ric_simulators ricsim_g1 $NUM_RICS OSC_2.1.0 start_ric_simulators ricsim_g2 $NUM_RICS STD_1.1.3 -if [ "$PMS_VERSION" == "V2" ]; then - start_ric_simulators ricsim_g3 $NUM_RICS STD_2.0.0 -fi +start_ric_simulators ricsim_g3 $NUM_RICS STD_2.0.0 -start_mr +if [[ "$A1PMS_FEATURE_LEVEL" == *"NO-DMAAP"* ]]; then + : +else + start_mr +fi -start_cr +start_cr 1 start_control_panel $SIM_GROUP/$CONTROL_PANEL_COMPOSE_DIR/$CONTROL_PANEL_CONFIG_FILE @@ -107,24 +100,25 @@ if [ ! -z "$NRT_GATEWAY_APP_NAME" ]; then start_gateway $SIM_GROUP/$NRT_GATEWAY_COMPOSE_DIR/$NRT_GATEWAY_CONFIG_FILE fi -start_policy_agent NORPOXY $SIM_GROUP/$POLICY_AGENT_COMPOSE_DIR/$POLICY_AGENT_CONFIG_FILE +A1PMS_RETRY_CODES=423 +start_a1pms NORPOXY $SIM_GROUP/$A1PMS_COMPOSE_DIR/$A1PMS_CONFIG_FILE -if [ $RUNMODE == "DOCKER" ]; then - start_consul_cbs -fi -prepare_consul_config SDNC ".consul_config.json" + +prepare_a1pms_config SDNC ".a1pms_config.json" if [ $RUNMODE == "KUBE" ]; then - agent_load_config ".consul_config.json" + a1pms_load_config ".a1pms_config.json" else - consul_config_app ".consul_config.json" + a1pms_api_put_configuration 200 ".a1pms_config.json" fi start_sdnc +controller_api_wait_for_status_ok 200 ricsim_g1_1 +sleep_wait 120 "Let A1PMS cofiguration take effect" -api_get_status 200 +a1pms_api_get_status 200 echo "Print the interface for group 1 simulators, shall be OSC" for ((i=1; i<=$NUM_RICS; i++)) @@ -138,13 +132,11 @@ do sim_print ricsim_g2_$i interface done -if [ "$PMS_VERSION" == "V2" ]; then - echo "Print the interface for group 2 simulators, shall be STD 2" - for ((i=1; i<=$NUM_RICS; i++)) - do - sim_print ricsim_g3_$i interface - done -fi +echo "Print the interface for group 2 simulators, shall be STD 2" +for ((i=1; i<=$NUM_RICS; i++)) +do + sim_print ricsim_g3_$i interface +done echo "Load policy type in group 1 simulators" for ((i=1; i<=$NUM_RICS; i++)) @@ -152,13 +144,11 @@ do sim_put_policy_type 201 ricsim_g1_$i 1 testdata/OSC/sim_1.json done -if [ "$PMS_VERSION" == "V2" ]; then - echo "Load policy type in group 3 simulators" - for ((i=1; i<=$NUM_RICS; i++)) - do - sim_put_policy_type 201 ricsim_g3_$i STD_QOS2_0.1.0 testdata/STD2/sim_qos2.json - done -fi +echo "Load policy type in group 3 simulators" +for ((i=1; i<=$NUM_RICS; i++)) +do + sim_put_policy_type 201 ricsim_g3_$i STD_QOS2_0.1.0 testdata/STD2/sim_qos2.json +done echo "Check the number of instances in group 1 simulators, shall be 0" for ((i=1; i<=$NUM_RICS; i++)) @@ -172,47 +162,38 @@ do sim_equal ricsim_g2_$i num_instances 0 done -if [ "$PMS_VERSION" == "V2" ]; then - echo "Check the number of instances in group 3 simulators, shall be 0" - for ((i=1; i<=$NUM_RICS; i++)) - do - sim_equal ricsim_g3_$i num_instances 0 - done -fi +echo "Check the number of instances in group 3 simulators, shall be 0" +for ((i=1; i<=$NUM_RICS; i++)) +do + sim_equal ricsim_g3_$i num_instances 0 +done -echo "Wait for the agent to refresh types from the simulator" -if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-types 3 300 -else - api_equal json:policy_types 2 300 -fi +echo "Wait for the a1pms to refresh types from the simulator" +a1pms_equal json:policy-types 3 300 -echo "Check the number of types in the agent for each ric is 1" +echo "Check the number of types in the a1pms for each ric is 1" for ((i=1; i<=$NUM_RICS; i++)) do - if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-types?ric_id=ricsim_g1_$i 1 120 - api_equal json:policy-types?ric_id=ricsim_g3_$i 1 120 - else - api_equal json:policy_types?ric=ricsim_g1_$i 1 120 - fi + a1pms_equal json:policy-types?ric_id=ricsim_g1_$i 1 120 + a1pms_equal json:policy-types?ric_id=ricsim_g3_$i 1 120 done echo "Register a service" -api_put_service 201 "serv1" 0 "$CR_SERVICE_PATH/1" +a1pms_api_put_service 201 "serv1" 0 "$CR_SERVICE_APP_PATH_0/1" TEST_DURATION=$((24*3600*$DAYS)) + TEST_START=$SECONDS -AGENT_INTERFACES="REST REST_PARALLEL DMAAP DMAAP-BATCH" +if [[ "$A1PMS_FEATURE_LEVEL" == *"NO-DMAAP"* ]]; then + A1PMS_INTERFACES="REST REST_PARALLEL" +else + A1PMS_INTERFACES="REST REST_PARALLEL DMAAP DMAAP-BATCH" +fi MR_MESSAGES=0 -if [ "$PMS_VERSION" == "V2" ]; then - notificationurl=$CR_SERVICE_PATH"/test" -else - notificationurl="" -fi +notificationurl=$CR_SERVICE_APP_PATH_0"/test" while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do @@ -222,25 +203,25 @@ while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do echo "#########################################################################################################" echo "" - for interface in $AGENT_INTERFACES ; do + for interface in $A1PMS_INTERFACES ; do echo "############################################" - echo "## Testing using agent interface: $interface ##" + echo "## Testing using a1pms interface: $interface ##" echo "############################################" if [ $interface == "REST" ] || [ $interface == "REST_PARALLEL" ]; then if [ $HTTPX == "HTTP" ]; then - use_agent_rest_http + use_a1pms_rest_http else - use_agent_rest_https + use_a1pms_rest_https fi else if [ $HTTPX == "HTTPS" ]; then echo "Using secure ports towards dmaap" - use_agent_dmaap_https + use_a1pms_dmaap_https else echo "Using non-secure ports towards dmaap" - use_agent_dmaap_http + use_a1pms_dmaap_http fi fi @@ -248,14 +229,14 @@ while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do INSTANCE_ID=200000 INSTANCES=0 if [ $interface == "REST_PARALLEL" ]; then - api_put_policy_parallel 201 "serv1" ricsim_g1_ $NUM_RICS 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES 3 + a1pms_api_put_policy_parallel 201 "serv1" ricsim_g1_ $NUM_RICS 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES 3 fi for ((i=1; i<=$NUM_RICS; i++)) do if [ $interface == "DMAAP-BATCH" ]; then - api_put_policy_batch 201 "serv1" ricsim_g1_$i 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES + a1pms_api_put_policy_batch 201 "serv1" ricsim_g1_$i 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then - api_put_policy 201 "serv1" ricsim_g1_$i 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES + a1pms_api_put_policy 201 "serv1" ricsim_g1_$i 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES fi if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) @@ -265,22 +246,18 @@ while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do INSTANCES=$(($INSTANCES+$NUM_INSTANCES)) done - if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-instances $INSTANCES - else - api_equal json:policy_ids $INSTANCES - fi + a1pms_equal json:policy-instances $INSTANCES echo "Create $NUM_INSTANCES instances in each STD RIC" if [ $interface == "REST_PARALLEL" ]; then - api_put_policy_parallel 201 "serv1" ricsim_g2_ $NUM_RICS NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES 3 + a1pms_api_put_policy_parallel 201 "serv1" ricsim_g2_ $NUM_RICS NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES 3 fi for ((i=1; i<=$NUM_RICS; i++)) do if [ $interface == "DMAAP-BATCH" ]; then - api_put_policy_batch 201 "serv1" ricsim_g2_$i NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES + a1pms_api_put_policy_batch 201 "serv1" ricsim_g2_$i NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then - api_put_policy 201 "serv1" ricsim_g2_$i NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES + a1pms_api_put_policy 201 "serv1" ricsim_g2_$i NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES fi if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) @@ -290,52 +267,41 @@ while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do INSTANCES=$(($INSTANCES+$NUM_INSTANCES)) done - if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-instances $INSTANCES - else - api_equal json:policy_ids $INSTANCES - fi + a1pms_equal json:policy-instances $INSTANCES - if [ "$PMS_VERSION" == "V2" ]; then - echo "Create $NUM_INSTANCES instances in each STD 2 RIC" - if [ $interface == "REST_PARALLEL" ]; then - api_put_policy_parallel 201 "serv1" ricsim_g3_ $NUM_RICS STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES 3 + echo "Create $NUM_INSTANCES instances in each STD 2 RIC" + if [ $interface == "REST_PARALLEL" ]; then + a1pms_api_put_policy_parallel 201 "serv1" ricsim_g3_ $NUM_RICS STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES 3 + fi + for ((i=1; i<=$NUM_RICS; i++)) + do + if [ $interface == "DMAAP-BATCH" ]; then + a1pms_api_put_policy_batch 201 "serv1" ricsim_g3_$i STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES + elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then + a1pms_api_put_policy 201 "serv1" ricsim_g3_$i STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES fi - for ((i=1; i<=$NUM_RICS; i++)) - do - if [ $interface == "DMAAP-BATCH" ]; then - api_put_policy_batch 201 "serv1" ricsim_g3_$i STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES - elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then - api_put_policy 201 "serv1" ricsim_g3_$i STD_QOS2_0.1.0 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD2/pi_qos2_template.json $NUM_INSTANCES - fi - if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then - MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) - fi - sim_equal ricsim_g3_$i num_instances $NUM_INSTANCES - INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) - INSTANCES=$(($INSTANCES+$NUM_INSTANCES)) - done - - if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-instances $INSTANCES - else - api_equal json:policy_ids $INSTANCES + if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then + MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) fi - fi + sim_equal ricsim_g3_$i num_instances $NUM_INSTANCES + INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) + INSTANCES=$(($INSTANCES+$NUM_INSTANCES)) + done + a1pms_equal json:policy-instances $INSTANCES echo "Delete all instances in each OSC RIC" INSTANCE_ID=200000 if [ $interface == "REST_PARALLEL" ]; then - api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 + a1pms_api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 fi for ((i=1; i<=$NUM_RICS; i++)) do if [ $interface == "DMAAP-BATCH" ]; then - api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES + a1pms_api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then - api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES + a1pms_api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES fi if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) @@ -345,23 +311,19 @@ while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) done - if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-instances $INSTANCES - else - api_equal json:policy_ids $INSTANCES - fi + a1pms_equal json:policy-instances $INSTANCES echo "Delete all instances in each STD RIC" if [ $interface == "REST_PARALLEL" ]; then - api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 + a1pms_api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 fi for ((i=1; i<=$NUM_RICS; i++)) do if [ $interface == "DMAAP-BATCH" ]; then - api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES + a1pms_api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then - api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES + a1pms_api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES fi if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) @@ -371,46 +333,40 @@ while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) done - if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-instances $INSTANCES - else - api_equal json:policy_ids $INSTANCES - fi + a1pms_equal json:policy-instances $INSTANCES - if [ "$PMS_VERSION" == "V2" ]; then - echo "Delete all instances in each STD 2 RIC" + echo "Delete all instances in each STD 2 RIC" - if [ $interface == "REST_PARALLEL" ]; then - api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 + if [ $interface == "REST_PARALLEL" ]; then + a1pms_api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 + fi + for ((i=1; i<=$NUM_RICS; i++)) + do + if [ $interface == "DMAAP-BATCH" ]; then + a1pms_api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES + elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then + a1pms_api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES fi - for ((i=1; i<=$NUM_RICS; i++)) - do - if [ $interface == "DMAAP-BATCH" ]; then - api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES - elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then - api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES - fi - if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then - MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) - fi - INSTANCES=$(($INSTANCES-$NUM_INSTANCES)) - sim_equal ricsim_g3_$i num_instances 0 - INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) - done - - if [ "$PMS_VERSION" == "V2" ]; then - api_equal json:policy-instances $INSTANCES - else - api_equal json:policy_ids $INSTANCES + if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then + MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) fi - fi + INSTANCES=$(($INSTANCES-$NUM_INSTANCES)) + sim_equal ricsim_g3_$i num_instances 0 + INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) + done - mr_equal requests_submitted $MR_MESSAGES - mr_equal requests_fetched $MR_MESSAGES - mr_equal responses_submitted $MR_MESSAGES - mr_equal responses_fetched $MR_MESSAGES - mr_equal current_requests 0 - mr_equal current_responses 0 + a1pms_equal json:policy-instances $INSTANCES + + if [[ "$A1PMS_FEATURE_LEVEL" == *"NO-DMAAP"* ]]; then + : + else + mr_equal requests_submitted $MR_MESSAGES + mr_equal requests_fetched $MR_MESSAGES + mr_equal responses_submitted $MR_MESSAGES + mr_equal responses_fetched $MR_MESSAGES + mr_equal current_requests 0 + mr_equal current_responses 0 + fi for ((i=1; i<=$NUM_RICS; i++)) @@ -418,16 +374,14 @@ while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do sim_contains_str ricsim_g1_$i remote_hosts $SDNC_APP_NAME sim_contains_str ricsim_g2_$i remote_hosts $SDNC_APP_NAME - if [ "$PMS_VERSION" == "V2" ]; then - sim_contains_str ricsim_g3_$i remote_hosts $SDNC_APP_NAME - fi + sim_contains_str ricsim_g3_$i remote_hosts $SDNC_APP_NAME done done done -check_policy_agent_logs +check_a1pms_logs check_sdnc_logs #### TEST COMPLETE ####