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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
5b9d4b6f
Commit
5b9d4b6f
authored
May 29, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate test.
Drop not needed SlaveInstanceStopComputerPartitionInstallation.
parent
d7ec5273
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+28
-9
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
...oduct/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
+0
-2
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
5b9d4b6f
...
...
@@ -4208,19 +4208,38 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
software_instance
.
getConnectionXml
())
def
stepSlaveInstanceStarted
(
self
,
sequence
):
slave_
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
"software_instance_uid"
])
slave_instance
.
startComputerPartition
()
if
instance
.
getPortalType
()
==
"Software Instance"
:
shared
=
False
elif
instance
.
getPortalType
()
==
"Slave Instance"
:
shared
=
True
else
:
raise
NotImplementedError
instance
.
requestStart
(
software_release
=
instance
.
getRootSoftwareReleaseUrl
(),
instance_xml
=
instance
.
getTextContent
(),
software_type
=
instance
.
getSourceReference
(),
sla_xml
=
instance
.
getSlaXml
(),
shared
=
shared
,
)
def
stepSlaveInstanceStopped
(
self
,
sequence
):
slave_instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
"software_instance_uid"
])
slave_instance
.
stopComputerPartition
()
def
stepSlaveInstanceStopComputerPartitionInstallation
(
self
,
sequence
):
slave_instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
"software_instance_uid"
])
slave_instance
.
stopComputerPartitionInstallation
()
if
instance
.
getPortalType
()
==
"Software Instance"
:
shared
=
False
elif
instance
.
getPortalType
()
==
"Slave Instance"
:
shared
=
True
else
:
raise
NotImplementedError
instance
.
requestStop
(
software_release
=
instance
.
getRootSoftwareReleaseUrl
(),
instance_xml
=
instance
.
getTextContent
(),
software_type
=
instance
.
getSourceReference
(),
sla_xml
=
instance
.
getSlaXml
(),
shared
=
shared
,
)
def
stepSetDeliveryLineAmountEqualZero
(
self
,
sequence
):
sequence
.
edit
(
delivery_line_amount
=
0
)
...
...
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
View file @
5b9d4b6f
...
...
@@ -153,8 +153,6 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
Tic
SlapLogout
LoginTestVifibCustomer
SlaveInstanceStopComputerPartitionInstallation
Tic
SlaveInstanceStarted
Tic
SlaveInstanceStopped
...
...
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