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
68471c27
Commit
68471c27
authored
Feb 18, 2021
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Plain Diff
fix tests
parents
794b02d2
b2c0060d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
test_planner.py
planner/test/test_planner.py
+4
-5
__init__.py
sure_tosca-flask-server/sure_tosca/test/__init__.py
+0
-16
No files found.
planner/test/test_planner.py
View file @
68471c27
...
@@ -36,7 +36,6 @@ class MyTestCase(unittest.TestCase):
...
@@ -36,7 +36,6 @@ class MyTestCase(unittest.TestCase):
input_tosca_file_path
=
self
.
get_remote_tosca_file
(
url
)
input_tosca_file_path
=
self
.
get_remote_tosca_file
(
url
)
self
.
run_test
(
input_tosca_file_path
)
self
.
run_test
(
input_tosca_file_path
)
# def test_docker(self):
# def test_docker(self):
# url = 'https://raw.githubusercontent.com/qcdis-sdia/sdia-tosca/master/examples/application_example_updated.yaml'
# url = 'https://raw.githubusercontent.com/qcdis-sdia/sdia-tosca/master/examples/application_example_updated.yaml'
# input_tosca_file_path = self.get_remote_tosca_file(url)
# input_tosca_file_path = self.get_remote_tosca_file(url)
...
@@ -46,10 +45,10 @@ class MyTestCase(unittest.TestCase):
...
@@ -46,10 +45,10 @@ class MyTestCase(unittest.TestCase):
input_tosca_file_path
=
self
.
get_remote_tosca_file
(
url
)
input_tosca_file_path
=
self
.
get_remote_tosca_file
(
url
)
self
.
run_test
(
input_tosca_file_path
)
self
.
run_test
(
input_tosca_file_path
)
def
test_kubernetes
(
self
):
#
def test_kubernetes(self):
url
=
'https://raw.githubusercontent.com/qcdis-sdia/sdia-tosca/master/examples/kubernetes.yaml'
#
url = 'https://raw.githubusercontent.com/qcdis-sdia/sdia-tosca/master/examples/kubernetes.yaml'
input_tosca_file_path
=
self
.
get_remote_tosca_file
(
url
)
#
input_tosca_file_path = self.get_remote_tosca_file(url)
self
.
run_test
(
input_tosca_file_path
)
#
self.run_test(input_tosca_file_path)
def
test_topology
(
self
):
def
test_topology
(
self
):
url
=
'https://raw.githubusercontent.com/qcdis-sdia/sdia-tosca/master/examples/topology.yaml'
url
=
'https://raw.githubusercontent.com/qcdis-sdia/sdia-tosca/master/examples/topology.yaml'
...
...
sure_tosca-flask-server/sure_tosca/test/__init__.py
deleted
100644 → 0
View file @
794b02d2
import
logging
import
connexion
from
flask_testing
import
TestCase
from
sure_tosca.encoder
import
JSONEncoder
class
BaseTestCase
(
TestCase
):
def
create_app
(
self
):
logging
.
getLogger
(
'connexion.operation'
)
.
setLevel
(
'ERROR'
)
app
=
connexion
.
App
(
__name__
,
specification_dir
=
'../swagger/'
)
app
.
app
.
json_encoder
=
JSONEncoder
app
.
add_api
(
'swagger.yaml'
)
return
app
.
app
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