Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
0202be19
Commit
0202be19
authored
May 28, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed localhost to 127.0.0.1
parent
71134b81
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
test.sh
bin/test.sh
+11
-11
UserApi.md
semaphore-python-client-generated/docs/UserApi.md
+1
-1
configuration.py
...python-client-generated/semaphore_client/configuration.py
+1
-1
test_get_repository.py
...phore-python-client-generated/test/test_get_repository.py
+1
-1
test_login.py
semaphore-python-client-generated/test/test_login.py
+1
-1
test_task.py
semaphore-python-client-generated/test/test_task.py
+1
-1
No files found.
bin/test.sh
View file @
0202be19
#!/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-python-client-generated/docs/UserApi.md
View file @
0202be19
# 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
------------- | ------------- | -------------
------------- | ------------- | -------------
...
...
semaphore-python-client-generated/semaphore_client/configuration.py
View file @
0202be19
...
@@ -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
...
...
semaphore-python-client-generated/test/test_get_repository.py
View file @
0202be19
...
@@ -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'
...
...
semaphore-python-client-generated/test/test_login.py
View file @
0202be19
...
@@ -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'
...
...
semaphore-python-client-generated/test/test_task.py
View file @
0202be19
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment