diff options
author | Niranjana <niranjana.y60@wipro.com> | 2022-03-17 09:03:08 +0000 |
---|---|---|
committer | decheng zhang <decheng.zhang@huawei.com> | 2022-04-26 12:24:15 -0400 |
commit | 9ed698d4522c487445a1ca048f29836c5f59c5e6 (patch) | |
tree | 2976ff365ecdfcb294c9f4d4d377ac23d12dfb83 /plans | |
parent | 8f88f01b9fbbdd2af363a747ecf43b9de15a9b6e (diff) |
Add new testcase for network slicing capacity in slice-analysis-ms
Issue-ID: DCAEGEN2-2942
Signed-off-by: Niranjana <niranjana.y60@wipro.com>
Change-Id: I3842e57f094a996ea64423eab0790ac99927d751
Diffstat (limited to 'plans')
4 files changed, 11 insertions, 8 deletions
diff --git a/plans/dcaegen2-services-slice-analysis-ms/testsuites/config/sliceanalysisms/config_all.json b/plans/dcaegen2-services-slice-analysis-ms/testsuites/config/sliceanalysisms/config_all.json index 7504ca86..70bc6c8b 100644 --- a/plans/dcaegen2-services-slice-analysis-ms/testsuites/config/sliceanalysisms/config_all.json +++ b/plans/dcaegen2-services-slice-analysis-ms/testsuites/config/sliceanalysisms/config_all.json @@ -63,10 +63,13 @@ "sliceanalysisms.initialDelaySeconds": 300000, "sliceanalysisms.pollingTimeout": 60, "sliceanalysisms.cid": "sliceanalysisms-cid", - "sliceanalysisms.configDb.service": "http://configdb_sim:5000", + "sliceanalysisms.configDb.service": "http://configdb_des_sim:5000", "sliceanalysisms.aai.url": "https://aai-resources:8447/aai/v21", "sliceanalysisms.cps.url": "http://cps-tbdmt:8080/execute/ran-network", "sliceanalysisms.configDbEnabled": "false", + "sliceanalysisms.rannfnssiDetailsTemplateId": "get-rannfnssiid-details", + "sliceanalysisms.desUrl": "http://configdb_des_sim:5000/datalake/v1/exposure/pm_data", + "sliceanalysisms.pmDataDurationInWeeks": 4, "service_calls": { "policy-req": [] }, diff --git a/plans/dcaegen2-services-slice-analysis-ms/testsuites/docker-compose.yaml b/plans/dcaegen2-services-slice-analysis-ms/testsuites/docker-compose.yaml index 869e69d1..54eb29b6 100644 --- a/plans/dcaegen2-services-slice-analysis-ms/testsuites/docker-compose.yaml +++ b/plans/dcaegen2-services-slice-analysis-ms/testsuites/docker-compose.yaml @@ -77,7 +77,7 @@ services: networks: - slice-analysis-ms-default sliceanalysisms: - image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:latest + image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.7 container_name: sliceanalysisms hostname: sliceanalysisms environment: diff --git a/plans/dcaegen2-services-slice-analysis-ms/testsuites/setup.sh b/plans/dcaegen2-services-slice-analysis-ms/testsuites/setup.sh index b75df561..1975b5ba 100644 --- a/plans/dcaegen2-services-slice-analysis-ms/testsuites/setup.sh +++ b/plans/dcaegen2-services-slice-analysis-ms/testsuites/setup.sh @@ -49,13 +49,13 @@ http://$DMAAP_IP:3904/events/unauthenticated.DCAE_CL_OUTPUT #build configdb-sim image cd $TEST_SCRIPTS_DIR -docker build -t configdb_sim . +docker build -t configdb_des_sim . #run configdb-sim -docker run -d --name configdb_sim --network=testsuites_slice-analysis-ms-default -p "5000:5000" configdb_sim:latest; +docker run -d --name configdb_des_sim --network=testsuites_slice-analysis-ms-default -p "5000:5000" configdb_des_sim:latest; sleep 10 -CONFIGDB_SIM_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' configdb_sim) -echo "CONFIGDB_SIM_IP=${CONFIGDB_SIM_IP}" +CONFIGDB_DES_SIM_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' configdb_des_sim) +echo "CONFIGDB_DES_SIM_IP=${CONFIGDB_DES_SIM_IP}" # CPS & AAI set up cd $TEST_SCRIPTS_CPS_DIR diff --git a/plans/dcaegen2-services-slice-analysis-ms/testsuites/teardown.sh b/plans/dcaegen2-services-slice-analysis-ms/testsuites/teardown.sh index 29cd912d..1962ba9a 100644 --- a/plans/dcaegen2-services-slice-analysis-ms/testsuites/teardown.sh +++ b/plans/dcaegen2-services-slice-analysis-ms/testsuites/teardown.sh @@ -4,8 +4,8 @@ TEST_PLANS_DIR=$WORKSPACE/plans/dcaegen2-services-slice-analysis-ms/testsuites TEST_SCRIPTS_DIR=$WORKSPACE/scripts/dcaegen2-services-slice-analysis-ms/slice-analysis-ms/cps-aai mkdir -p $WORKSPACE/archives -docker container stop configdb_sim -docker container rm configdb_sim +docker container stop configdb_des_sim +docker container rm configdb_des_sim docker-compose -f $TEST_PLANS_DIR/docker-compose.yaml logs > $WORKSPACE/archives/slice-analysis-docker-compose.log docker-compose -f $TEST_SCRIPTS_DIR/docker-compose.yaml down -v docker-compose -f $TEST_PLANS_DIR/docker-compose.yaml down -v |