From 9b4a46ebc92d97f429b957d4b16e01c8e5fa290d Mon Sep 17 00:00:00 2001 From: YannGarcia Date: Wed, 29 May 2019 09:12:19 -0700 Subject: [PATCH] Validate first BwManagementAPI test --- scripts/mec_generate_makefile.bash | 2 +- scripts/merge_mec_project.bash | 2 +- scripts/update_mec_project.bash | 6 +++++- .../json/BwManagementApi.json | 0 .../ttcn/BwManagementAPI_Pics.ttcn | 0 .../ttcn/BwManagementAPI_Pixits.ttcn | 0 .../ttcn/BwManagementAPI_Templates.ttcn | 0 .../ttcn/BwManagementAPI_TypesAndValues.ttcn | 0 ttcn/LibMec/RnisAPI/ttcn/RnisAPI_Pixits.ttcn | 2 +- 9 files changed, 8 insertions(+), 4 deletions(-) rename ttcn/LibMec/{BwManagementApi => BwManagementAPI}/json/BwManagementApi.json (100%) rename ttcn/LibMec/{BwManagementApi => BwManagementAPI}/ttcn/BwManagementAPI_Pics.ttcn (100%) rename ttcn/LibMec/{BwManagementApi => BwManagementAPI}/ttcn/BwManagementAPI_Pixits.ttcn (100%) rename ttcn/LibMec/{BwManagementApi => BwManagementAPI}/ttcn/BwManagementAPI_Templates.ttcn (100%) rename ttcn/LibMec/{BwManagementApi => BwManagementAPI}/ttcn/BwManagementAPI_TypesAndValues.ttcn (100%) diff --git a/scripts/mec_generate_makefile.bash b/scripts/mec_generate_makefile.bash index 917a764..2cb9ada 100755 --- a/scripts/mec_generate_makefile.bash +++ b/scripts/mec_generate_makefile.bash @@ -52,7 +52,7 @@ find .. -type f -name "*.bak" -exec rm {} \; find .. -type f -name "*.log" -exec rm {} \; # Build JSON files if any and put them in objs directory -REFERENCES="LibCommon LibHttp LibMec LibMec/LocationAPI LibMec/RnisAPI LibMec/UEidentityAPI" +REFERENCES="LibCommon LibHttp LibMec LibMec/LocationAPI LibMec/RnisAPI LibMec/UEidentityAPI LibMec/BwManagementAPI" for i in ${REFERENCES} do # TTCN code diff --git a/scripts/merge_mec_project.bash b/scripts/merge_mec_project.bash index 6ec92b4..21278e7 100755 --- a/scripts/merge_mec_project.bash +++ b/scripts/merge_mec_project.bash @@ -158,7 +158,7 @@ done echo 'Update TTCN-3 files' TTCN_3_ORG_PATH=${SRC_MEC_PATH}/ttcn TTCN_3_DST_PATH=${PATH_DEV_MEC}/src -TTCN_3_ATS_LIST='AtsNg112 LibMec LibMec/LocationAPI LibMec/UEidentityAPI LibMec/RnisAPI LibHttp LibCommon' +TTCN_3_ATS_LIST='AtsNg112 LibMec LibMec/LocationAPI LibMec/UEidentityAPI LibMec/RnisAPI LibMec/BwManagementAPI LibHttp LibCommon' for i in ${TTCN_3_ATS_LIST} do # TTCN-3 files diff --git a/scripts/update_mec_project.bash b/scripts/update_mec_project.bash index 42d9a31..6af6116 100755 --- a/scripts/update_mec_project.bash +++ b/scripts/update_mec_project.bash @@ -125,7 +125,7 @@ do done # Update libraries & CC files -TTCN_3_LIB_LIST='LibMec LibMec/LocationAPI LibMec/UEidentityAPI LibMec/RnisAPI LibHttp LibCommon' +TTCN_3_LIB_LIST='LibMec LibMec/LocationAPI LibMec/UEidentityAPI LibMec/RnisAPI LibMec/BwManagementAPI LibHttp LibCommon' for i in ${TTCN_3_LIB_LIST} do if [ ! -d ${TTCN_3_DST_PATH}/$i ] @@ -147,6 +147,10 @@ do cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json elif [ "$i" == "LibMec/RnisAPI" ] + then + cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn + cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json + elif [ "$i" == "LibMec/BwManagementAPI" ] then cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json diff --git a/ttcn/LibMec/BwManagementApi/json/BwManagementApi.json b/ttcn/LibMec/BwManagementAPI/json/BwManagementApi.json similarity index 100% rename from ttcn/LibMec/BwManagementApi/json/BwManagementApi.json rename to ttcn/LibMec/BwManagementAPI/json/BwManagementApi.json diff --git a/ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_Pics.ttcn b/ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_Pics.ttcn similarity index 100% rename from ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_Pics.ttcn rename to ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_Pics.ttcn diff --git a/ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_Pixits.ttcn b/ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_Pixits.ttcn similarity index 100% rename from ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_Pixits.ttcn rename to ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_Pixits.ttcn diff --git a/ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_Templates.ttcn b/ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_Templates.ttcn similarity index 100% rename from ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_Templates.ttcn rename to ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_Templates.ttcn diff --git a/ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_TypesAndValues.ttcn b/ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_TypesAndValues.ttcn similarity index 100% rename from ttcn/LibMec/BwManagementApi/ttcn/BwManagementAPI_TypesAndValues.ttcn rename to ttcn/LibMec/BwManagementAPI/ttcn/BwManagementAPI_TypesAndValues.ttcn diff --git a/ttcn/LibMec/RnisAPI/ttcn/RnisAPI_Pixits.ttcn b/ttcn/LibMec/RnisAPI/ttcn/RnisAPI_Pixits.ttcn index 551180b..cb6d060 100644 --- a/ttcn/LibMec/RnisAPI/ttcn/RnisAPI_Pixits.ttcn +++ b/ttcn/LibMec/RnisAPI/ttcn/RnisAPI_Pixits.ttcn @@ -8,6 +8,6 @@ module RnisAPI_Pixits { modulepar JSON.String PX_SUBSCRIPTION_ID := "7777"; - modulepar Link PX_LINKS_SELF := { self_ := "http://meAppServer.example.com/rni/v1/subscriptions" }; + modulepar Link PX_LINKS_SELF := { self_ := "http://example.com/exampleAPI/rni/v2/subscriptions/" }; } // End of module RnisAPI_Pixits -- GitLab