Commit 0202be19 authored by Spiros Koulouzis's avatar Spiros Koulouzis

changed localhost to 127.0.0.1

parent 71134b81
#!/bin/bash
#cd ../
#cd sure_tosca-flask-server && venv/bin/pip3 install -r test-requirements.txt && venv/bin/python3 -m unittest discover
#if [ $? -eq 0 ]
#then
# echo "------- sure_tosca-flask-server tests successful------"
# docker build -t sure-tosca:3.0.0 .
# docker tag sure-tosca:3.0.0 qcdis/sure-tosca:3.0.0
#else
# echo "sure_tosca-flask-server tests Failed"
# exit 1
#fi
cd ../
cd sure_tosca-flask-server && venv/bin/pip3 install -r test-requirements.txt && venv/bin/python3 -m unittest discover
if [ $? -eq 0 ]
then
echo "------- sure_tosca-flask-server tests successful------"
docker build -t sure-tosca:3.0.0 .
docker tag sure-tosca:3.0.0 qcdis/sure-tosca:3.0.0
else
echo "sure_tosca-flask-server tests Failed"
exit 1
fi
docker stack deploy conf-test -c ../docker-compose/docker-compose-test.yml
......
# semaphore_client.UserApi
All URIs are relative to *http://localhost:3000/api*
All URIs are relative to *http://127.0.0.1:3000/api*
Method | HTTP request | Description
------------- | ------------- | -------------
......
......@@ -46,7 +46,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
def __init__(self):
"""Constructor"""
# Default Base url
self.host = "http://localhost:3000/api"
self.host = "http://127.0.0.1:3000/api"
# Temp file folder for downloading files
self.temp_folder_path = None
......
......@@ -9,7 +9,7 @@ class TestGetRepository(unittest.TestCase):
"""Login unit test stubs"""
def setUp(self):
self.semaphore_base_url = 'http://localhost:3000/api'
self.semaphore_base_url = 'http://127.0.0.1:3000/api'
if SemaphoreHelper.service_is_up(self.semaphore_base_url):
self.username = 'admin'
self.password = 'password'
......
......@@ -27,7 +27,7 @@ class TestLogin(unittest.TestCase):
"""Login unit test stubs"""
def setUp(self):
self.semaphore_base_url = 'http://localhost:3000/api'
self.semaphore_base_url = 'http://127.0.0.1:3000/api'
if SemaphoreHelper.service_is_up(self.semaphore_base_url):
self.username = 'admin'
self.password = 'password'
......
......@@ -26,7 +26,7 @@ class TestTask(unittest.TestCase):
"""Task unit test stubs"""
def setUp(self):
self.semaphore_base_url = 'http://localhost:3000/api'
self.semaphore_base_url = 'http://127.0.0.1:3000/api'
if SemaphoreHelper.service_is_up(self.semaphore_base_url):
self.username = 'admin'
self.password = 'password'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment