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
Eric Zheng
slapos.core
Commits
3d2d462d
Commit
3d2d462d
authored
Jul 27, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for make sure state is optional for slave also.
parent
75a33c86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+24
-0
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
3d2d462d
...
@@ -1405,6 +1405,12 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -1405,6 +1405,12 @@ class TestVifibSlapWebService(testVifibMixin):
requested_computer_partition_reference
=
\
requested_computer_partition_reference
=
\
requested_slap_computer_partition
.
getId
())
requested_slap_computer_partition
.
getId
())
def
stepDirectRequestComputerPartitionNotReadyResponseWithoutStateAndSlaveTrue
(
self
,
sequence
,
**
kw
):
kw
[
"slave"
]
=
True
self
.
stepDirectRequestComputerPartitionNotReadyResponseWithoutState
(
sequence
,
**
kw
)
def
stepDirectRequestComputerPartitionNotReadyResponseWithoutState
(
self
,
def
stepDirectRequestComputerPartitionNotReadyResponseWithoutState
(
self
,
sequence
,
**
kw
):
sequence
,
**
kw
):
request_dict
=
{
'computer_id'
:
sequence
[
'computer_reference'
]
,
request_dict
=
{
'computer_id'
:
sequence
[
'computer_reference'
]
,
...
@@ -4486,6 +4492,24 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4486,6 +4492,24 @@ class TestVifibSlapWebService(testVifibMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
def
test_ComputerPartition_request_slave_state_is_optional
(
self
):
"""Checks that state is optional parameter on Slap Tool
This ensures backward compatibility with old libraries."""
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_install_requested_computer_partition_sequence_string
+
'
\
SlapLoginCurrentSoftwareInstance
\
DirectRequestComputerPartitionNotReadyResponseWithoutStateAndSlaveTrue
\
Tic
\
SlapLogout
\
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
#########################################
#########################################
# SlaveInstance.request
# SlaveInstance.request
#########################################
#########################################
...
...
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