BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 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 |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 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================================================= |
| 18 | # |
| 19 | |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 20 | 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" |
| 21 | |
BjornMagnussonXA | f38e1e8 | 2020-10-11 23:05:02 +0200 | [diff] [blame] | 22 | #App names to include in the test, space separated list |
| 23 | INCLUDED_IMAGES="CBS CONSUL CP CR MR PA RICSIM SDNC" |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 24 | |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 25 | #SUPPORTED TEST ENV FILE |
| 26 | SUPPORTED_PROFILES="ONAP-MASTER ONAP-GUILIN" |
| 27 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 28 | . ../common/testcase_common.sh $@ |
| 29 | . ../common/agent_api_functions.sh |
| 30 | . ../common/ricsimulator_api_functions.sh |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 31 | . ../common/cr_api_functions.sh |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 32 | |
| 33 | #### TEST BEGIN #### |
| 34 | |
BjornMagnussonXA | ad04778 | 2020-06-08 15:54:11 +0200 | [diff] [blame] | 35 | generate_uuid |
| 36 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 37 | #Local vars in test script |
| 38 | ########################## |
BjornMagnussonXA | 496156d | 2020-08-10 14:16:24 +0200 | [diff] [blame] | 39 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 40 | # Number of RICs per interface type (OSC and STD) |
| 41 | NUM_RICS=30 |
| 42 | # Number of policy instances per RIC |
| 43 | NUM_INSTANCES=5 |
| 44 | |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 45 | DAYS=3 |
| 46 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 47 | clean_containers |
| 48 | |
BjornMagnussonXA | 496156d | 2020-08-10 14:16:24 +0200 | [diff] [blame] | 49 | # use HTTP or HTTPS for all apis |
| 50 | HTTPX=HTTPS |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 51 | |
BjornMagnussonXA | 496156d | 2020-08-10 14:16:24 +0200 | [diff] [blame] | 52 | if [ $HTTPX == "HTTP" ]; then |
BjornMagnussonXA | 496156d | 2020-08-10 14:16:24 +0200 | [diff] [blame] | 53 | use_cr_http |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 54 | use_agent_rest_http |
| 55 | use_sdnc_http |
| 56 | use_simulator_http |
| 57 | else |
BjornMagnussonXA | 496156d | 2020-08-10 14:16:24 +0200 | [diff] [blame] | 58 | use_cr_https |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 59 | use_agent_rest_https |
| 60 | use_sdnc_https |
| 61 | use_simulator_https |
| 62 | fi |
| 63 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 64 | start_ric_simulators ricsim_g1 $NUM_RICS OSC_2.1.0 |
| 65 | |
| 66 | start_ric_simulators ricsim_g2 $NUM_RICS STD_1.1.3 |
| 67 | |
| 68 | start_mr |
| 69 | |
| 70 | start_cr |
| 71 | |
| 72 | start_consul_cbs |
| 73 | |
| 74 | prepare_consul_config SDNC ".consul_config.json" |
| 75 | consul_config_app ".consul_config.json" |
| 76 | |
| 77 | start_sdnc |
| 78 | |
| 79 | start_control_panel |
| 80 | |
| 81 | start_policy_agent |
| 82 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 83 | |
| 84 | api_get_status 200 |
| 85 | |
| 86 | echo "Print the interface for group 1 simulators, shall be OSC" |
| 87 | for ((i=1; i<=$NUM_RICS; i++)) |
| 88 | do |
| 89 | sim_print ricsim_g1_$i interface |
| 90 | done |
| 91 | |
| 92 | echo "Print the interface for group 2 simulators, shall be STD" |
| 93 | for ((i=1; i<=$NUM_RICS; i++)) |
| 94 | do |
| 95 | sim_print ricsim_g2_$i interface |
| 96 | done |
| 97 | |
| 98 | echo "Load policy type in group 1 simulators" |
| 99 | for ((i=1; i<=$NUM_RICS; i++)) |
| 100 | do |
| 101 | sim_put_policy_type 201 ricsim_g1_$i 1 testdata/OSC/sim_1.json |
| 102 | done |
| 103 | |
| 104 | echo "Check the number of instances in group 1 simulators, shall be 0" |
| 105 | for ((i=1; i<=$NUM_RICS; i++)) |
| 106 | do |
| 107 | sim_equal ricsim_g1_$i num_instances 0 |
| 108 | done |
| 109 | |
| 110 | echo "Check the number of instances in group 2 simulators, shall be 0" |
| 111 | for ((i=1; i<=$NUM_RICS; i++)) |
| 112 | do |
| 113 | sim_equal ricsim_g2_$i num_instances 0 |
| 114 | done |
| 115 | |
| 116 | echo "Wait for the agent to refresh types from the simulator" |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 117 | if [ "$PMS_VERSION" == "V2" ]; then |
| 118 | api_equal json:policy-types 2 120 |
| 119 | else |
| 120 | api_equal json:policy_types 2 120 |
| 121 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 122 | |
| 123 | echo "Check the number of types in the agent for each ric is 1" |
| 124 | for ((i=1; i<=$NUM_RICS; i++)) |
| 125 | do |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 126 | if [ "$PMS_VERSION" == "V2" ]; then |
| 127 | api_equal json:policy-types?ric_id=ricsim_g1_$i 1 120 |
| 128 | else |
| 129 | api_equal json:policy_types?ric=ricsim_g1_$i 1 120 |
| 130 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 131 | done |
| 132 | |
| 133 | echo "Register a service" |
| 134 | api_put_service 201 "serv1" 0 "$CR_PATH/1" |
| 135 | |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 136 | TEST_DURATION=$((24*3600*$DAYS)) |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 137 | TEST_START=$SECONDS |
| 138 | |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 139 | AGENT_INTERFACES="REST REST_PARALLEL DMAAP DMAAP-BATCH" |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 140 | |
| 141 | MR_MESSAGES=0 |
| 142 | |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 143 | if [ "$PMS_VERSION" == "V2" ]; then |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 144 | notificationurl=$CR_PATH"/test" |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 145 | else |
| 146 | notificationurl="" |
| 147 | fi |
| 148 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 149 | while [ $(($SECONDS-$TEST_START)) -lt $TEST_DURATION ]; do |
| 150 | |
| 151 | echo "" |
| 152 | echo "#########################################################################################################" |
| 153 | echo -e $BOLD"INFO: Test executed for: "$(($SECONDS-$TEST_START)) "seconds. Target is: "$TEST_DURATION" seconds."$EBOLD |
| 154 | echo "#########################################################################################################" |
| 155 | echo "" |
| 156 | |
| 157 | for interface in $AGENT_INTERFACES ; do |
| 158 | |
| 159 | echo "############################################" |
| 160 | echo "## Testing using agent interface: $interface ##" |
| 161 | echo "############################################" |
| 162 | |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 163 | if [ $interface == "REST" ] || [ $interface == "REST_PARALLEL" ]; then |
BjornMagnussonXA | 496156d | 2020-08-10 14:16:24 +0200 | [diff] [blame] | 164 | if [ $HTTPX == "HTTP" ]; then |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 165 | use_agent_rest_http |
| 166 | else |
| 167 | use_agent_rest_https |
| 168 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 169 | else |
BjornMagnussonXA | 496156d | 2020-08-10 14:16:24 +0200 | [diff] [blame] | 170 | if [ $HTTPX == "HTTPS" ]; then |
| 171 | echo "Using secure ports towards dmaap" |
| 172 | use_agent_dmaap_https |
| 173 | else |
| 174 | echo "Using non-secure ports towards dmaap" |
| 175 | use_agent_dmaap_http |
| 176 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 177 | fi |
| 178 | |
| 179 | echo "Create $NUM_INSTANCES instances in each OSC RIC" |
| 180 | INSTANCE_ID=200000 |
| 181 | INSTANCES=0 |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 182 | if [ $interface == "REST_PARALLEL" ]; then |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 183 | api_put_policy_parallel 201 "serv1" ricsim_g1_ $NUM_RICS 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES 3 |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 184 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 185 | for ((i=1; i<=$NUM_RICS; i++)) |
| 186 | do |
| 187 | if [ $interface == "DMAAP-BATCH" ]; then |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 188 | api_put_policy_batch 201 "serv1" ricsim_g1_$i 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 189 | elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 190 | api_put_policy 201 "serv1" ricsim_g1_$i 1 $INSTANCE_ID NOTRANSIENT $notificationurl testdata/OSC/pi1_template.json $NUM_INSTANCES |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 191 | fi |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 192 | if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 193 | MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) |
| 194 | fi |
| 195 | sim_equal ricsim_g1_$i num_instances $NUM_INSTANCES |
| 196 | INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) |
| 197 | INSTANCES=$(($INSTANCES+$NUM_INSTANCES)) |
| 198 | done |
| 199 | |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 200 | if [ "$PMS_VERSION" == "V2" ]; then |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 201 | api_equal json:policy-instances $INSTANCES |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 202 | else |
| 203 | api_equal json:policy_ids $INSTANCES |
| 204 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 205 | |
| 206 | echo "Create $NUM_INSTANCES instances in each STD RIC" |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 207 | if [ $interface == "REST_PARALLEL" ]; then |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 208 | api_put_policy_parallel 201 "serv1" ricsim_g2_ $NUM_RICS NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES 3 |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 209 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 210 | for ((i=1; i<=$NUM_RICS; i++)) |
| 211 | do |
| 212 | if [ $interface == "DMAAP-BATCH" ]; then |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 213 | api_put_policy_batch 201 "serv1" ricsim_g2_$i NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 214 | elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 215 | api_put_policy 201 "serv1" ricsim_g2_$i NOTYPE $INSTANCE_ID NOTRANSIENT $notificationurl testdata/STD/pi1_template.json $NUM_INSTANCES |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 216 | fi |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 217 | if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 218 | MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) |
| 219 | fi |
| 220 | sim_equal ricsim_g2_$i num_instances $NUM_INSTANCES |
| 221 | INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) |
| 222 | INSTANCES=$(($INSTANCES+$NUM_INSTANCES)) |
| 223 | done |
| 224 | |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 225 | if [ "$PMS_VERSION" == "V2" ]; then |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 226 | api_equal json:policy-instances $INSTANCES |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 227 | else |
| 228 | api_equal json:policy_ids $INSTANCES |
| 229 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 230 | |
| 231 | |
| 232 | echo "Delete all instances in each OSC RIC" |
| 233 | |
| 234 | INSTANCE_ID=200000 |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 235 | if [ $interface == "REST_PARALLEL" ]; then |
| 236 | api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 |
| 237 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 238 | for ((i=1; i<=$NUM_RICS; i++)) |
| 239 | do |
| 240 | if [ $interface == "DMAAP-BATCH" ]; then |
| 241 | api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 242 | elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 243 | api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES |
| 244 | fi |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 245 | if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 246 | MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) |
| 247 | fi |
| 248 | INSTANCES=$(($INSTANCES-$NUM_INSTANCES)) |
| 249 | sim_equal ricsim_g1_$i num_instances 0 |
| 250 | INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) |
| 251 | done |
| 252 | |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 253 | if [ "$PMS_VERSION" == "V2" ]; then |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 254 | api_equal json:policy-instances $INSTANCES |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 255 | else |
| 256 | api_equal json:policy_ids $INSTANCES |
| 257 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 258 | |
| 259 | echo "Delete all instances in each STD RIC" |
| 260 | |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 261 | if [ $interface == "REST_PARALLEL" ]; then |
| 262 | api_delete_policy_parallel 204 $NUM_RICS $INSTANCE_ID $NUM_INSTANCES 3 |
| 263 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 264 | for ((i=1; i<=$NUM_RICS; i++)) |
| 265 | do |
| 266 | if [ $interface == "DMAAP-BATCH" ]; then |
| 267 | api_delete_policy_batch 204 $INSTANCE_ID $NUM_INSTANCES |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 268 | elif [ $interface == "DMAAP" ] || [ $interface == "REST" ]; then |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 269 | api_delete_policy 204 $INSTANCE_ID $NUM_INSTANCES |
| 270 | fi |
BjornMagnussonXA | bbd2e9d | 2020-05-27 21:24:06 +0200 | [diff] [blame] | 271 | if [ $interface == "DMAAP" ] || [ $interface == "DMAAP-BATCH" ]; then |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 272 | MR_MESSAGES=$(($MR_MESSAGES+$NUM_INSTANCES)) |
| 273 | fi |
| 274 | INSTANCES=$(($INSTANCES-$NUM_INSTANCES)) |
| 275 | sim_equal ricsim_g2_$i num_instances 0 |
| 276 | INSTANCE_ID=$(($INSTANCE_ID+$NUM_INSTANCES)) |
| 277 | done |
| 278 | |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 279 | if [ "$PMS_VERSION" == "V2" ]; then |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 280 | api_equal json:policy-instances $INSTANCES |
BjornMagnussonXA | 4207b83 | 2020-11-03 09:52:49 +0100 | [diff] [blame] | 281 | else |
| 282 | api_equal json:policy_ids $INSTANCES |
| 283 | fi |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 284 | |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 285 | mr_equal requests_submitted $MR_MESSAGES |
| 286 | mr_equal requests_fetched $MR_MESSAGES |
| 287 | mr_equal responses_submitted $MR_MESSAGES |
| 288 | mr_equal responses_fetched $MR_MESSAGES |
| 289 | mr_equal current_requests 0 |
| 290 | mr_equal current_responses 0 |
| 291 | |
| 292 | |
| 293 | for ((i=1; i<=$NUM_RICS; i++)) |
| 294 | do |
| 295 | sim_contains_str ricsim_g1_$i remote_hosts "a1-controller" |
| 296 | sim_contains_str ricsim_g2_$i remote_hosts "a1-controller" |
| 297 | done |
| 298 | |
| 299 | done |
| 300 | |
| 301 | done |
| 302 | |
| 303 | check_policy_agent_logs |
BjornMagnussonXA | 49f0e5a | 2020-11-08 22:41:39 +0100 | [diff] [blame] | 304 | check_sdnc_logs |
BjornMagnussonXA | 70e878f | 2020-05-11 14:11:30 +0200 | [diff] [blame] | 305 | |
| 306 | #### TEST COMPLETE #### |
| 307 | |
| 308 | store_logs END |
| 309 | |
| 310 | print_result |
| 311 | |
| 312 | auto_clean_containers |