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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
slapos.core
Commits
75a33c86
Commit
75a33c86
authored
Jul 27, 2011
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Steps for Slave now has states and filter also
parent
666081b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+10
-4
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
75a33c86
...
@@ -1313,7 +1313,9 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -1313,7 +1313,9 @@ class TestVifibSlapWebService(testVifibMixin):
partition_parameter_kw
=
requested_parameter_dict
,
partition_parameter_kw
=
requested_parameter_dict
,
# XXX The follow API should be slave, but shared was kept for
# XXX The follow API should be slave, but shared was kept for
# Backward compatibility with older versions of slap
# Backward compatibility with older versions of slap
shared
=
True
)
shared
=
True
,
filter_kw
=
sequence
.
get
(
'requested_filter_dict'
,
{}),
state
=
sequence
.
get
(
'instance_state'
))
sequence
.
edit
(
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
,
requested_slap_computer_partition
=
requested_slap_computer_partition
,
...
@@ -1338,7 +1340,9 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -1338,7 +1340,9 @@ class TestVifibSlapWebService(testVifibMixin):
software_type
=
"SlaveInstance"
,
software_type
=
"SlaveInstance"
,
partition_reference
=
requested_reference
,
partition_reference
=
requested_reference
,
partition_parameter_kw
=
requested_parameter_dict
,
partition_parameter_kw
=
requested_parameter_dict
,
shared
=
True
)
shared
=
True
,
filter_kw
=
sequence
.
get
(
'requested_filter_dict'
,
{}),
state
=
sequence
.
get
(
'instance_state'
))
def
stepRequestSlaveInstanceFromComputerPartitionNotFoundResponse
(
self
,
sequence
,
**
kw
):
def
stepRequestSlaveInstanceFromComputerPartitionNotFoundResponse
(
self
,
sequence
,
**
kw
):
software_release_uri
=
sequence
[
'software_release_uri'
]
software_release_uri
=
sequence
[
'software_release_uri'
]
...
@@ -1357,7 +1361,9 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -1357,7 +1361,9 @@ class TestVifibSlapWebService(testVifibMixin):
software_type
=
"SlaveInstance"
,
software_type
=
"SlaveInstance"
,
partition_reference
=
requested_reference
,
partition_reference
=
requested_reference
,
partition_parameter_kw
=
requested_parameter_dict
,
partition_parameter_kw
=
requested_parameter_dict
,
shared
=
True
)
shared
=
True
,
filter_kw
=
sequence
.
get
(
'requested_filter_dict'
,
{}),
state
=
sequence
.
get
(
'instance_state'
))
def
stepRequestTwoAndCheckDifferentResult
(
self
,
sequence
,
**
kw
):
def
stepRequestTwoAndCheckDifferentResult
(
self
,
sequence
,
**
kw
):
self
.
slap
=
slap
.
slap
()
self
.
slap
=
slap
.
slap
()
...
@@ -1406,7 +1412,7 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -1406,7 +1412,7 @@ class TestVifibSlapWebService(testVifibMixin):
'software_release'
:
sequence
[
'software_release_uri'
],
'software_release'
:
sequence
[
'software_release_uri'
],
'software_type'
:
sequence
.
get
(
'requested_reference'
,
'requested_reference'
),
'software_type'
:
sequence
.
get
(
'requested_reference'
,
'requested_reference'
),
'partition_reference'
:
sequence
.
get
(
'requested_reference'
,
'requested_reference'
),
'partition_reference'
:
sequence
.
get
(
'requested_reference'
,
'requested_reference'
),
'slave_xml'
:
xml_marshaller
.
dumps
(
False
),
'slave_xml'
:
xml_marshaller
.
dumps
(
kw
.
get
(
"slave"
,
False
)
),
'partition_parameter_xml'
:
xml_marshaller
.
dumps
({}),
'partition_parameter_xml'
:
xml_marshaller
.
dumps
({}),
'filter_xml'
:
xml_marshaller
.
dumps
({}),
'filter_xml'
:
xml_marshaller
.
dumps
({}),
#'state': Note: State is omitted
#'state': Note: State is omitted
...
...
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