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
......
...@@ -5,4 +5,13 @@ typing==3.7.4.1 ...@@ -5,4 +5,13 @@ typing==3.7.4.1
swagger-ui-bundle==0.0.6 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
\ No newline at end of file
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,32 +24,35 @@ class TestDefaultController(BaseTestCase): ...@@ -24,32 +24,35 @@ class TestDefaultController(BaseTestCase):
""" """
id_example = self.upload_file('https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/TIC.yaml') try:
doc_id = int(id_example) id_example = self.upload_file('https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/TIC.yaml')
self.assertIsInstance(doc_id,int) doc_id = int(id_example)
# id_example = self.upload_file('https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/application_example_planed.yaml') self.assertIsInstance(doc_id,int)
# doc_id = int(id_example) # id_example = self.upload_file('https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/application_example_planed.yaml')
self.assertIsInstance(doc_id,int) # doc_id = int(id_example)
id_example = self.upload_file( self.assertIsInstance(doc_id,int)
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/application_example_provisioned.yaml') id_example = self.upload_file(
doc_id = int(id_example) 'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/application_example_provisioned.yaml')
self.assertIsInstance(doc_id,int) doc_id = int(id_example)
id_example = self.upload_file( self.assertIsInstance(doc_id,int)
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/glusterFS.yaml') id_example = self.upload_file(
doc_id = int(id_example) 'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/glusterFS.yaml')
self.assertIsInstance(doc_id,int) doc_id = int(id_example)
id_example = self.upload_file( self.assertIsInstance(doc_id,int)
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/kubernetes.yaml') id_example = self.upload_file(
doc_id = int(id_example) 'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/kubernetes.yaml')
self.assertIsInstance(doc_id,int) doc_id = int(id_example)
id_example = self.upload_file( self.assertIsInstance(doc_id,int)
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/lifeWatch_vre1.yaml') id_example = self.upload_file(
doc_id = int(id_example) 'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/lifeWatch_vre1.yaml')
self.assertIsInstance(doc_id,int) doc_id = int(id_example)
id_example = self.upload_file( self.assertIsInstance(doc_id,int)
'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/topology.yaml') id_example = self.upload_file(
doc_id = int(id_example) 'https://raw.githubusercontent.com/QCDIS/sdia-tosca/master/examples/topology.yaml')
self.assertIsInstance(doc_id,int) doc_id = int(id_example)
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