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
92b97dff
Commit
92b97dff
authored
Jun 03, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test in dockerfile
parent
35aa8539
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
29 deletions
+39
-29
Dockerfile
sure_tosca-flask-server/Dockerfile
+0
-2
requirements.txt
sure_tosca-flask-server/requirements.txt
+10
-1
test_default_controller.py
...a-flask-server/sure_tosca/test/test_default_controller.py
+29
-26
No files found.
sure_tosca-flask-server/Dockerfile
View file @
92b97dff
...
@@ -4,10 +4,8 @@ RUN mkdir -p /usr/src/app
...
@@ -4,10 +4,8 @@ RUN mkdir -p /usr/src/app
WORKDIR
/usr/src/app
WORKDIR
/usr/src/app
COPY
requirements.txt /usr/src/app/
COPY
requirements.txt /usr/src/app/
COPY
test-requirements.txt /usr/src/app/
RUN
pip
install
--no-cache-dir
-r
requirements.txt
RUN
pip
install
--no-cache-dir
-r
requirements.txt
RUN
pip
install
--no-cache-dir
-r
test-requirements.txt
COPY
. /usr/src/app
COPY
. /usr/src/app
...
...
sure_tosca-flask-server/requirements.txt
View file @
92b97dff
...
@@ -6,3 +6,12 @@ swagger-ui-bundle==0.0.6
...
@@ -6,3 +6,12 @@ swagger-ui-bundle==0.0.6
tinydb==3.15.2
tinydb==3.15.2
tosca-parser==2.0.0
tosca-parser==2.0.0
flask-restx==0.2.0
flask-restx==0.2.0
wheel==0.34.2
flask-testing==0.8.0
coverage==5.0.4
nose>=1.3.7
pluggy>=0.13.1
randomize>=0.14
Werkzeug==1.0.0
\ No newline at end of file
sure_tosca-flask-server/sure_tosca/test/test_default_controller.py
View file @
92b97dff
...
@@ -24,6 +24,7 @@ class TestDefaultController(BaseTestCase):
...
@@ -24,6 +24,7 @@ class TestDefaultController(BaseTestCase):
"""
"""
try
:
id_example
=
self
.
upload_file
(
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/TIC.yaml'
)
id_example
=
self
.
upload_file
(
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/TIC.yaml'
)
doc_id
=
int
(
id_example
)
doc_id
=
int
(
id_example
)
self
.
assertIsInstance
(
doc_id
,
int
)
self
.
assertIsInstance
(
doc_id
,
int
)
...
@@ -50,6 +51,8 @@ class TestDefaultController(BaseTestCase):
...
@@ -50,6 +51,8 @@ class TestDefaultController(BaseTestCase):
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/topology.yaml'
)
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/topology.yaml'
)
doc_id
=
int
(
id_example
)
doc_id
=
int
(
id_example
)
self
.
assertIsInstance
(
doc_id
,
int
)
self
.
assertIsInstance
(
doc_id
,
int
)
except
Exception
as
e
:
self
.
assertTrue
(
False
)
def
test_get_all_ancestor_properties
(
self
):
def
test_get_all_ancestor_properties
(
self
):
...
...
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