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
Xiaowu Zhang
slapos.core
Commits
b267fa69
Commit
b267fa69
authored
Jan 17, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test_SlaveInstance_request_SlaveInstance_From_SoftwareInstance_Fetch_Correct_Slave
parent
43098158
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
0 deletions
+102
-0
master/product/Vifib/tests/testVifibSlapComputerPartitionRequest.py
...duct/Vifib/tests/testVifibSlapComputerPartitionRequest.py
+102
-0
No files found.
master/product/Vifib/tests/testVifibSlapComputerPartitionRequest.py
View file @
b267fa69
...
...
@@ -1391,6 +1391,108 @@ class TestVifibSlapComputerPartitionRequest(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SlaveInstance_request_SlaveInstance_From_SoftwareInstance_Fetch_Correct_Slave
(
self
):
"""
Check that existing Software Instance requesting new Slave Instance
fetches the correct Slave Instance when doing request() to get
parameters.
Scenario :
All Software Instances use the same SoftwareRelease.
SoftwareType requested_software_type can act as master instance, slave
instance.
SoftwareType another_requested_software_type can act as Software Instance
requesting a Slave Instance of SoftwareType requested_software_type.
1/ Request instance "Master Instance" with SoftwareType
requested_software_type.
2/ "Master Instance" requests a new Slave Instance
3/ Simulate succesful deployment of Master Instance
4/ Request instance "Normal instance" with SoftwareType
another_requested_software_type.
5/ From "Normal Instance", request a Slave Instance with SoftwareType
requested_software_type.
6/ From "Master Instance", try to set connection XML of Slave Instance
7/ Check that "Normal Instance" can access connection XML of Slave
Instance.
"""
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_string
=
\
self
.
prepare_install_requested_computer_partition_sequence_string
+
'
\
SlapLoginCurrentSoftwareInstance
\
SelectEmptyRequestedParameterDict
\
SetRandomRequestedReference
\
RequestSlaveInstanceFromComputerPartition
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
ConfirmOrderedSaleOrderActiveSense
\
Tic
\
SlapLoginCurrentComputer
\
CheckSlaveInstanceListFromOneComputerPartition
\
SlapLogout
\
\
Tic
\
SlapLoginCurrentComputer
\
SoftwareInstanceAvailable
\
Tic
\
\
SelectAnotherRequestedSoftwareType
\
SelectAnotherRequestedReference
\
SlapLoginTestVifibCustomer
\
PersonRequestSlapSoftwareInstancePrepare
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
ConfirmOrderedSaleOrderActiveSense
\
Tic
\
Logout
\
SlapLoginTestVifibCustomer
\
PersonRequestSlapSoftwareInstance
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
SetRequestedComputerPartition
\
SetRequestedComputerPartitionAsCurrentComputerPartition
\
SlapLogout
\
Tic
\
SlapLoginCurrentComputer
\
SoftwareInstanceAvailable
\
Tic
\
\
LoginDefaultUser
\
SetCurrentComputerPartitionFromRequestedComputerPartition
\
SelectSoftwareInstanceFromCurrentComputerPartition
\
Logout
\
SlapLoginCurrentSoftwareInstance
\
SelectRequestedParameterDictRequestedParameter
\
SelectYetAnotherRequestedReference
\
SelectRequestedSoftwaretype
\
RequestSlaveInstanceFromComputerPartition
\
Tic
\
LoginDefaultUser
\
ConfirmOrderedSaleOrderActiveSense
\
Tic
\
Logout
\
RequestSlaveInstanceFromComputerPartition
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
SetComputerPartitionFromRootSoftwareInstance
\
SelectSlaveInstanceFromOneComputerPartition
\
SlapLoginSoftwareInstanceFromCurrentSoftwareInstance
\
SetConnectionXmlToSlaveInstance
\
SlapLogout
\
LoginDefaultUser
\
SetRequestedComputerPartitionAsCurrentComputerPartition
\
SelectSoftwareInstanceFromCurrentComputerPartition
\
Logout
\
SlapLoginCurrentSoftwareInstance
\
CheckConnectionXmlOfSlaveInstanceFromComputerPartition
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
##################################################
# ComputerPartition.request - change software type
##################################################
...
...
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