Commit 92b97dff authored by Spiros Koulouzis's avatar Spiros Koulouzis

added test in dockerfile

parent 35aa8539
...@@ -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
......
...@@ -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
...@@ -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):
......
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