Adapted test scripts to changes in PMS 2.0
Issue-ID: NONRTRIC-307
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: I41effdcfbe41c742d618d247b0d60f6e8090048f
diff --git a/test/auto-test/FTC810.sh b/test/auto-test/FTC810.sh
index 4cc00bd..911a1eb 100755
--- a/test/auto-test/FTC810.sh
+++ b/test/auto-test/FTC810.sh
@@ -22,9 +22,13 @@
#App names to include in the test, space separated list
INCLUDED_IMAGES="CBS CONSUL CP CR MR PA RICSIM SDNC"
+#SUPPORTED TEST ENV FILE
+SUPPORTED_PROFILES="ONAP-MASTER ONAP-GUILIN"
+
. ../common/testcase_common.sh $@
. ../common/agent_api_functions.sh
. ../common/ricsimulator_api_functions.sh
+. ../common/cr_api_functions.sh
#### TEST BEGIN ####
@@ -46,15 +50,11 @@
HTTPX=HTTPS
if [ $HTTPX == "HTTP" ]; then
- # Path to callback receiver
- CR_PATH="http://$CR_APP_NAME:$CR_EXTERNAL_PORT/callbacks"
use_cr_http
use_agent_rest_http
use_sdnc_http
use_simulator_http
else
- # Path to callback receiver
- CR_PATH="https://$CR_APP_NAME:$CR_EXTERNAL_SECURE_PORT/callbacks"
use_cr_https
use_agent_rest_https
use_sdnc_https
@@ -141,7 +141,7 @@
MR_MESSAGES=0
if [ "$PMS_VERSION" == "V2" ]; then
- notificationurl="http://localhost:80"
+ notificationurl=$CR_PATH"/test"
else
notificationurl=""
fi
@@ -198,7 +198,7 @@
done
if [ "$PMS_VERSION" == "V2" ]; then
- api_equal json:policy_instances $INSTANCES
+ api_equal json:policy-instances $INSTANCES
else
api_equal json:policy_ids $INSTANCES
fi
@@ -223,7 +223,7 @@
done
if [ "$PMS_VERSION" == "V2" ]; then
- api_equal json:policy_instances $INSTANCES
+ api_equal json:policy-instances $INSTANCES
else
api_equal json:policy_ids $INSTANCES
fi
@@ -251,7 +251,7 @@
done
if [ "$PMS_VERSION" == "V2" ]; then
- api_equal json:policy_instances $INSTANCES
+ api_equal json:policy-instances $INSTANCES
else
api_equal json:policy_ids $INSTANCES
fi
@@ -277,13 +277,11 @@
done
if [ "$PMS_VERSION" == "V2" ]; then
- api_equal json:policy_instances $INSTANCES
+ api_equal json:policy-instances $INSTANCES
else
api_equal json:policy_ids $INSTANCES
fi
- cr_equal received_callbacks 0
-
mr_equal requests_submitted $MR_MESSAGES
mr_equal requests_fetched $MR_MESSAGES
mr_equal responses_submitted $MR_MESSAGES
@@ -303,6 +301,7 @@
done
check_policy_agent_logs
+check_sdnc_logs
#### TEST COMPLETE ####