From ae2d1afa619f7c60e071fc319be852c65159c443 Mon Sep 17 00:00:00 2001 From: Sean Oh Date: Wed, 4 Oct 2023 23:44:04 +0900 Subject: [PATCH] Update RegionZoneHandler Test Scripts --- .../test/region-zone-test/13.nhncloud-region-zone-test.sh | 4 ++++ .../test/region-zone-test/14.ncpvpc-region-zone-test.sh | 1 + .../test/region-zone-test/8.ncp-region-zone-test.sh | 1 + .../rest-runtime/test/region-zone-test/region-zone_test.sh | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 api-runtime/rest-runtime/test/region-zone-test/13.nhncloud-region-zone-test.sh diff --git a/api-runtime/rest-runtime/test/region-zone-test/13.nhncloud-region-zone-test.sh b/api-runtime/rest-runtime/test/region-zone-test/13.nhncloud-region-zone-test.sh new file mode 100755 index 000000000..2036c7e61 --- /dev/null +++ b/api-runtime/rest-runtime/test/region-zone-test/13.nhncloud-region-zone-test.sh @@ -0,0 +1,4 @@ +export CONN_CONFIG=nhncloud-korea-pangyo1-config +export REGION_NAME=KR1 + +./region-zone_test.sh diff --git a/api-runtime/rest-runtime/test/region-zone-test/14.ncpvpc-region-zone-test.sh b/api-runtime/rest-runtime/test/region-zone-test/14.ncpvpc-region-zone-test.sh index 3bb2277c3..2a82963f3 100755 --- a/api-runtime/rest-runtime/test/region-zone-test/14.ncpvpc-region-zone-test.sh +++ b/api-runtime/rest-runtime/test/region-zone-test/14.ncpvpc-region-zone-test.sh @@ -1,3 +1,4 @@ export CONN_CONFIG=ncpvpc-korea1-config +export REGION_NAME=KR ./region-zone_test.sh diff --git a/api-runtime/rest-runtime/test/region-zone-test/8.ncp-region-zone-test.sh b/api-runtime/rest-runtime/test/region-zone-test/8.ncp-region-zone-test.sh index d1c9a90d2..25b5ddcff 100755 --- a/api-runtime/rest-runtime/test/region-zone-test/8.ncp-region-zone-test.sh +++ b/api-runtime/rest-runtime/test/region-zone-test/8.ncp-region-zone-test.sh @@ -1,4 +1,5 @@ export CONN_CONFIG=ncp-korea1-config #export CONN_CONFIG=ncp-germany-config +export REGION_NAME=KR ./region-zone_test.sh diff --git a/api-runtime/rest-runtime/test/region-zone-test/region-zone_test.sh b/api-runtime/rest-runtime/test/region-zone-test/region-zone_test.sh index 32bb88062..56a498d87 100755 --- a/api-runtime/rest-runtime/test/region-zone-test/region-zone_test.sh +++ b/api-runtime/rest-runtime/test/region-zone-test/region-zone_test.sh @@ -6,7 +6,7 @@ curl -sX GET http://localhost:1024/spider/regionzone -H 'Content-Type: applicati sleep 2 echo -e "\n### Region/Zone : Get" -curl -sX GET http://localhost:1024/spider/regionzone/KR -H 'Content-Type: application/json' -d '{"ConnectionName": "'${CONN_CONFIG}'"}' +curl -sX GET http://localhost:1024/spider/regionzone/${REGION_NAME} -H 'Content-Type: application/json' -d '{"ConnectionName": "'${CONN_CONFIG}'"}' sleep 2 echo -e "\n### ORG Region : List"