Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
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
Hide 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):
...
@@ -4208,19 +4208,38 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
software_instance
.
getConnectionXml
())
software_instance
.
getConnectionXml
())
def
stepSlaveInstanceStarted
(
self
,
sequence
):
def
stepSlaveInstanceStarted
(
self
,
sequence
):
slave_
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
"software_instance_uid"
])
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
):
def
stepSlaveInstanceStopped
(
self
,
sequence
):
slave_instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
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
(
uid
=
sequence
[
"software_instance_uid"
])
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
):
def
stepSetDeliveryLineAmountEqualZero
(
self
,
sequence
):
sequence
.
edit
(
delivery_line_amount
=
0
)
sequence
.
edit
(
delivery_line_amount
=
0
)
...
...
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
View file @
5b9d4b6f
...
@@ -153,8 +153,6 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
...
@@ -153,8 +153,6 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
Tic
Tic
SlapLogout
SlapLogout
LoginTestVifibCustomer
LoginTestVifibCustomer
SlaveInstanceStopComputerPartitionInstallation
Tic
SlaveInstanceStarted
SlaveInstanceStarted
Tic
Tic
SlaveInstanceStopped
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