X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fauto-test%2FPM_EI_DEMO.sh;h=2915b02c1218ab8cd3668b372bdab1e032f1ba48;hb=17f4f61179cb67ab0d3ab6ed52df0aa51e0cf6c4;hp=2bca307a0137a6fc3a4b37b5aaf201533f390025;hpb=5343c3097bd7ae1c1c8d5f0409803c0c60034805;p=nonrtric.git diff --git a/test/auto-test/PM_EI_DEMO.sh b/test/auto-test/PM_EI_DEMO.sh index 2bca307a..2915b02c 100755 --- a/test/auto-test/PM_EI_DEMO.sh +++ b/test/auto-test/PM_EI_DEMO.sh @@ -20,10 +20,10 @@ TC_ONELINE_DESCR="Preparation demo setup - policy management and enrichment information" #App names to include in the test, space separated list -INCLUDED_IMAGES="CBS CONSUL CP CR MR PA RICSIM SDNC ECS PRODSTUB" +INCLUDED_IMAGES="CBS CONSUL CP CR MR PA RICSIM SDNC ECS PRODSTUB RC" #SUPPORTED TEST ENV FILE -SUPPORTED_PROFILES="ONAP-MASTER ORAN-MASTER" +SUPPORTED_PROFILES="ONAP-MASTER ORAN-CHERRY" . ../common/testcase_common.sh $@ . ../common/agent_api_functions.sh @@ -31,6 +31,7 @@ SUPPORTED_PROFILES="ONAP-MASTER ORAN-MASTER" . ../common/ecs_api_functions.sh . ../common/prodstub_api_functions.sh . ../common/cr_api_functions.sh +. ../common/rapp_catalogue_api_functions.sh #### TEST BEGIN #### @@ -43,6 +44,7 @@ use_sdnc_https use_simulator_https use_ecs_rest_https use_prod_stub_https +use_rapp_catalogue_http # https not yet supported if [ "$PMS_VERSION" == "V2" ]; then notificationurl=$CR_PATH"/test" @@ -70,16 +72,27 @@ consul_config_app ".consul_config.json" start_policy_agent +start_rapp_catalogue + start_cr start_prod_stub start_ecs +start_rapp_catalogue + set_agent_trace set_ecs_trace + +rapp_cat_api_get_services 200 EMPTY + +rapp_cat_api_put_service 201 "Emergency-response-app" v1 "Emergency-response-app" "Emergency-response-app" + +rapp_cat_api_get_services 200 "Emergency-response-app" v1 "Emergency-response-app" "Emergency-response-app" + api_get_status 200 # Print the A1 version for STD 2.X @@ -170,7 +183,7 @@ else fi # Check the job data in the producer -prodstub_check_jobdata 200 prod-a job1 type1 $TARGET1 testdata/ecs/job-template.json +prodstub_check_jobdata 200 prod-a job1 type1 $TARGET1 ricsim_g3_1 testdata/ecs/job-template.json ## Create a second job for prod-a @@ -182,7 +195,7 @@ else fi # Check the job data in the producer -prodstub_check_jobdata 200 prod-a job2 type1 $TARGET2 testdata/ecs/job-template.json +prodstub_check_jobdata 200 prod-a job2 type1 $TARGET2 ricsim_g3_2 testdata/ecs/job-template.json