diff options
author | rohitsakala <rohitsakala@gmail.com> | 2017-02-11 01:52:51 +0530 |
---|---|---|
committer | rohitsakala <rohitsakala@gmail.com> | 2017-02-11 01:55:03 +0530 |
commit | d20fdbcff79cf0c8063d770cd3c2ca9720d7f3c5 (patch) | |
tree | a241192cc9746113ef68184c98dfb1e8678f4ede | |
parent | 9d447595ed0315b5f2aac58311867d8f6403f058 (diff) |
Change automation to original testresults server
Changed port from 8711 to 8082 and auto to test in url. There are 3
successful builds.
https://build.opnfv.org/ci/job/testapi-automate-master/
Change-Id: I099b026eb22c7d95d8bf7345837e7c2234ef571d
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
-rw-r--r-- | jjb/releng/testapi-docker-deploy.sh | 6 | ||||
-rw-r--r-- | utils/test/testapi/htmlize/htmlize.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/jjb/releng/testapi-docker-deploy.sh b/jjb/releng/testapi-docker-deploy.sh index 04d71f76e..b4e60b09a 100644 --- a/jjb/releng/testapi-docker-deploy.sh +++ b/jjb/releng/testapi-docker-deploy.sh @@ -4,7 +4,7 @@ function check() { # Verify hosted sleep 5 - cmd=`curl -s --head --request GET http://testresults.opnfv.org/auto/swagger/spec | grep '200 OK' > /dev/null` + cmd=`curl -s --head --request GET http://testresults.opnfv.org/test/swagger/spec | grep '200 OK' > /dev/null` rc=$? echo $rc @@ -63,7 +63,7 @@ else fi echo "Running a container with the new image" -sudo docker run -dti -p "8711:8000" -e "mongodb_url=mongodb://172.17.0.1:27017" -e "swagger_url=http://testresults.opnfv.org/auto" opnfv/testapi:latest +sudo docker run -dti -p "8082:8000" -e "mongodb_url=mongodb://172.17.0.1:27017" -e "swagger_url=http://testresults.opnfv.org/test" opnfv/testapi:latest if check; then echo "TestResults Hosted." @@ -71,7 +71,7 @@ else echo "TestResults Hosting Failed" if [[ $(sudo docker images | grep "opnfv/testapi" | grep "old" | awk '{print $3}') ]]; then echo "Running old Image" - sudo docker run -dti -p "8711:8000" -e "mongodb_url=mongodb://172.17.0.1:27017" -e "swagger_url=http://testresults.opnfv.org/auto" opnfv/testapi:old + sudo docker run -dti -p "8082:8000" -e "mongodb_url=mongodb://172.17.0.1:27017" -e "swagger_url=http://testresults.opnfv.org/test" opnfv/testapi:old exit 1 fi fi diff --git a/utils/test/testapi/htmlize/htmlize.py b/utils/test/testapi/htmlize/htmlize.py index 70976d2bc..075e31f79 100644 --- a/utils/test/testapi/htmlize/htmlize.py +++ b/utils/test/testapi/htmlize/htmlize.py @@ -39,12 +39,12 @@ if __name__ == '__main__': parser.add_argument('-ru', '--resource-listing-url', type=str, required=False, - default='http://testresults.opnfv.org/auto/swagger/spec.json', + default='http://testresults.opnfv.org/test/swagger/spec.json', help='Resource Listing Spec File') parser.add_argument('-au', '--api-declaration-url', type=str, required=False, - default='http://testresults.opnfv.org/auto/swagger/spec', + default='http://testresults.opnfv.org/test/swagger/spec', help='API Declaration Spec File') parser.add_argument('-o', '--output-directory', required=True, |