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

changed localhost to 127.0.0.1

parent 71134b81
#!/bin/bash #!/bin/bash
#cd ../ cd ../
#cd sure_tosca-flask-server && venv/bin/pip3 install -r test-requirements.txt && venv/bin/python3 -m unittest discover cd sure_tosca-flask-server && venv/bin/pip3 install -r test-requirements.txt && venv/bin/python3 -m unittest discover
#if [ $? -eq 0 ] if [ $? -eq 0 ]
#then then
# echo "------- sure_tosca-flask-server tests successful------" echo "------- sure_tosca-flask-server tests successful------"
# docker build -t sure-tosca:3.0.0 . docker build -t sure-tosca:3.0.0 .
# docker tag sure-tosca:3.0.0 qcdis/sure-tosca:3.0.0 docker tag sure-tosca:3.0.0 qcdis/sure-tosca:3.0.0
#else else
# echo "sure_tosca-flask-server tests Failed" echo "sure_tosca-flask-server tests Failed"
# exit 1 exit 1
#fi fi
docker stack deploy conf-test -c ../docker-compose/docker-compose-test.yml docker stack deploy conf-test -c ../docker-compose/docker-compose-test.yml
......
# semaphore_client.UserApi # 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 Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------
......
...@@ -46,7 +46,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): ...@@ -46,7 +46,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
def __init__(self): def __init__(self):
"""Constructor""" """Constructor"""
# Default Base url # Default Base url
self.host = "http://localhost:3000/api" self.host = "http://127.0.0.1:3000/api"
# Temp file folder for downloading files # Temp file folder for downloading files
self.temp_folder_path = None self.temp_folder_path = None
......
...@@ -9,7 +9,7 @@ class TestGetRepository(unittest.TestCase): ...@@ -9,7 +9,7 @@ class TestGetRepository(unittest.TestCase):
"""Login unit test stubs""" """Login unit test stubs"""
def setUp(self): 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): if SemaphoreHelper.service_is_up(self.semaphore_base_url):
self.username = 'admin' self.username = 'admin'
self.password = 'password' self.password = 'password'
......
...@@ -27,7 +27,7 @@ class TestLogin(unittest.TestCase): ...@@ -27,7 +27,7 @@ class TestLogin(unittest.TestCase):
"""Login unit test stubs""" """Login unit test stubs"""
def setUp(self): 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): if SemaphoreHelper.service_is_up(self.semaphore_base_url):
self.username = 'admin' self.username = 'admin'
self.password = 'password' self.password = 'password'
......
...@@ -26,7 +26,7 @@ class TestTask(unittest.TestCase): ...@@ -26,7 +26,7 @@ class TestTask(unittest.TestCase):
"""Task unit test stubs""" """Task unit test stubs"""
def setUp(self): 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): if SemaphoreHelper.service_is_up(self.semaphore_base_url):
self.username = 'admin' self.username = 'admin'
self.password = 'password' 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