X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fget-docker-network-ip.sh;fp=plans%2Fvnfsdk-marketplace%2Fsanity-check%2Fsetup.sh;h=383decd72c22ad77f419f2e672aca90201f4b456;hb=03591ab4f63d6a95b9fc03fdf14ea10bc1d3c94c;hp=85c6bc2752c6251d3b755707f810423ad2b31ab2;hpb=334a204a6e0ce7e7a28de8ac3f8fb008bcc5683a;p=integration%2Fcsit.git diff --git a/plans/vnfsdk-marketplace/sanity-check/setup.sh b/scripts/get-docker-network-ip.sh old mode 100644 new mode 100755 similarity index 59% rename from plans/vnfsdk-marketplace/sanity-check/setup.sh rename to scripts/get-docker-network-ip.sh index 85c6bc27..383decd7 --- a/plans/vnfsdk-marketplace/sanity-check/setup.sh +++ b/scripts/get-docker-network-ip.sh @@ -1,6 +1,5 @@ #!/bin/bash -# -# Copyright 2016-2017 Huawei Technologies Co., Ltd. +# Copyright 2020 Nokia. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,18 +12,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# -# These scripts are sourced by run-csit.sh. - - - -#Start market place -docker run -d -i -t --name=vnfmarket -p 8702:8702 onap/vnfmarket - -REPO_IP=`docker inspect --format '{{ .NetworkSettings.IPAddress }}' vnfmarket` - - -# Pass any variables required by Robot test suites in ROBOT_VARIABLES -ROBOT_VARIABLES="-v REPO_IP:${REPO_IP}" - +ip a | grep docker | grep inet | awk '{print $2}' | awk -F'/' '{print $1}'