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
838daa90
Commit
838daa90
authored
Jan 26, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change test file
parent
02cf4315
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
build.sh
build.sh
+1
-2
workspace.xml
drip-planner/.idea/workspace.xml
+1
-1
test_default_controller.py
...a-flask-server/sure_tosca/test/test_default_controller.py
+5
-4
No files found.
build.sh
View file @
838daa90
...
...
@@ -4,6 +4,5 @@ mvn -Dmaven.test.skip=true install
cd
drip-planner
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
cd
../
cd
sure_tosca-flask-server
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
venv/bin/pip3
install
-r
test-requirements.txt
cd
sure_tosca-flask-server
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
&&
venv/bin/pip3
install
-r
test-requirements.txt
cd
../
drip-planner/.idea/workspace.xml
View file @
838daa90
...
...
@@ -3,7 +3,7 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/
requirements.txt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/requirements.txt
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/
../sure_tosca-flask-server/sure_tosca/test/test_default_controller.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../sure_tosca-flask-server/sure_tosca/test/test_default_controller.py
"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
sure_tosca-flask-server/sure_tosca/test/test_default_controller.py
View file @
838daa90
...
...
@@ -317,15 +317,16 @@ class TestDefaultController(BaseTestCase):
self
.
assertIsInstance
(
response
.
json
,
list
)
def
upload_file
(
self
):
tosca_path
=
"../../../TOSCA/"
input_tosca_file_path
=
tosca_path
+
'/application_example_2_topologies.yaml'
file_name
=
'application_example_updated.yaml'
# 'application_example_2_topologies.yaml'
input_tosca_file_path
=
tosca_path
+
'/'
+
file_name
if
not
os
.
path
.
exists
(
input_tosca_file_path
):
tosca_path
=
"../TOSCA/"
input_tosca_file_path
=
tosca_path
+
'/
application_example_2_topologies.yaml'
input_tosca_file_path
=
tosca_path
+
'/
'
+
file_name
dir_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
self
.
assertEqual
(
True
,
os
.
path
.
exists
(
input_tosca_file_path
),
'Starting from: '
+
dir_path
+
' Input TOSCA file: '
+
input_tosca_file_path
+
' not found'
)
self
.
assertEqual
(
True
,
os
.
path
.
exists
(
input_tosca_file_path
),
'Starting from: '
+
dir_path
+
' Input TOSCA file: '
+
input_tosca_file_path
+
' not found'
)
with
open
(
input_tosca_file_path
,
'r'
)
as
file
:
contents
=
file
.
read
()
...
...
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