Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
0fceea90
Commit
0fceea90
authored
May 24, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to new call expectation.
parent
48da1486
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
master/bt5/vifib_slapos_rest_api_v1_test/TestTemplateItem/testVifibSlaposRestAPIV1.py
..._api_v1_test/TestTemplateItem/testVifibSlaposRestAPIV1.py
+3
-3
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
+1
-1
No files found.
master/bt5/vifib_slapos_rest_api_v1_test/TestTemplateItem/testVifibSlaposRestAPIV1.py
View file @
0fceea90
...
@@ -821,7 +821,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin):
...
@@ -821,7 +821,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin):
class
TestInstancePOSTbang
(
VifibSlaposRestAPIV1BangMixin
):
class
TestInstancePOSTbang
(
VifibSlaposRestAPIV1BangMixin
):
def
test
(
self
):
def
test
(
self
):
kwargs
=
{
'log'
:
'This is cool log!'
}
kwargs
=
{
'log'
:
'This is cool log!'
,
'bang_tree'
:
True
}
self
.
connection
.
request
(
method
=
'POST'
,
self
.
connection
.
request
(
method
=
'POST'
,
url
=
'/'
.
join
([
self
.
api_path
,
'instance'
,
url
=
'/'
.
join
([
self
.
api_path
,
'instance'
,
self
.
software_instance
.
getRelativeUrl
(),
'bang'
]),
self
.
software_instance
.
getRelativeUrl
(),
'bang'
]),
...
@@ -854,7 +854,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
...
@@ -854,7 +854,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
def
test_bad_xml
(
self
):
def
test_bad_xml
(
self
):
self
.
_destroySoftwareInstanceTextContentXml
(
self
.
software_instance
)
self
.
_destroySoftwareInstanceTextContentXml
(
self
.
software_instance
)
kwargs
=
{
'log'
:
'This is cool log!'
}
kwargs
=
{
'log'
:
'This is cool log!'
,
'bang_tree'
:
True
}
self
.
connection
.
request
(
method
=
'POST'
,
self
.
connection
.
request
(
method
=
'POST'
,
url
=
'/'
.
join
([
self
.
api_path
,
'instance'
,
url
=
'/'
.
join
([
self
.
api_path
,
'instance'
,
self
.
software_instance
.
getRelativeUrl
(),
'bang'
]),
self
.
software_instance
.
getRelativeUrl
(),
'bang'
]),
...
@@ -950,7 +950,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
...
@@ -950,7 +950,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
self
.
assertInstanceBangSimulatorEmpty
()
self
.
assertInstanceBangSimulatorEmpty
()
def
test_additional_key_json
(
self
):
def
test_additional_key_json
(
self
):
kw_log
=
{
'log'
:
'This is cool log!'
}
kw_log
=
{
'log'
:
'This is cool log!'
,
'bang_tree'
:
True
}
kwargs
=
kw_log
.
copy
()
kwargs
=
kw_log
.
copy
()
kwargs
.
update
(
**
{
'wrong_key'
:
'Be ignored'
})
kwargs
.
update
(
**
{
'wrong_key'
:
'Be ignored'
})
self
.
connection
.
request
(
method
=
'POST'
,
self
.
connection
.
request
(
method
=
'POST'
,
...
...
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
View file @
0fceea90
64
65
\ No newline at end of file
\ No newline at end of file
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