X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=solution%2Fintegration%2Fsmo%2Fnon-rt-ric%2Fdata%2FprepareEcsData.sh;fp=solution%2Fintegration%2Fsmo%2Fnon-rt-ric%2Fdata%2FprepareEcsData.sh;h=6224f757b88d877232c96a6f4c062f48f7e5ba82;hb=331ccd8a82f354720a109bc5bcb1ea17e8104b00;hp=11b0dc880eee6a05dfbf56f397b7d769493be48f;hpb=7a8963cc00090a814d871e6df791516f94a7b745;p=oam.git diff --git a/solution/integration/smo/non-rt-ric/data/prepareEcsData.sh b/solution/integration/smo/non-rt-ric/data/prepareEcsData.sh index 11b0dc8..6224f75 100755 --- a/solution/integration/smo/non-rt-ric/data/prepareEcsData.sh +++ b/solution/integration/smo/non-rt-ric/data/prepareEcsData.sh @@ -27,7 +27,8 @@ # ./prepareEcsData.sh [ECS port] [http/https] ecs_port=${1:-8083} -httpx=${4:-"http"} +httpx=${2:-"http"} +SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) echo "using ecs port: "$ecs_port echo "using protocol: "$httpx @@ -39,7 +40,7 @@ echo -e "\n" # Create EiType echo "Create EiType:" -curl -X PUT -skw %{http_code} $httpx://localhost:$ecs_port/data-producer/v1/info-types/type1 -H accept:application/json -H Content-Type:application/json --data-binary @testdata/ECS/EiType.json +curl -X PUT -skw %{http_code} $httpx://localhost:$ecs_port/data-producer/v1/info-types/type1 -H accept:application/json -H Content-Type:application/json --data-binary @${SHELL_FOLDER}/testdata/ECS/EiType.json echo -e "\n" # Get EiTypes @@ -54,7 +55,7 @@ echo -e "\n" # Create EiProducer echo "Create EiProducer:" -curl -X PUT -skw %{http_code} $httpx://localhost:$ecs_port/data-producer/v1/info-producers/1 -H Content-Type:application/json --data-binary @testdata/ECS/EiProducer.json +curl -X PUT -skw %{http_code} $httpx://localhost:$ecs_port/data-producer/v1/info-producers/1 -H Content-Type:application/json --data-binary @${SHELL_FOLDER}/testdata/ECS/EiProducer.json echo -e "\n" # Get EiProducers @@ -74,7 +75,7 @@ echo -e "\n" # Create EiJob echo "Create EiJob Of A Certain Type type1:" -curl -X PUT -skw %{http_code} $httpx://localhost:$ecs_port/A1-EI/v1/eijobs/job1 -H Content-Type:application/json --data-binary @testdata/ECS/EiJob.json +curl -X PUT -skw %{http_code} $httpx://localhost:$ecs_port/A1-EI/v1/eijobs/job1 -H Content-Type:application/json --data-binary @${SHELL_FOLDER}/testdata/ECS/EiJob.json echo -e "\n" # Get EiJobs