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
Lu Xu
slapos.core
Commits
5665b374
Commit
5665b374
authored
May 29, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
requestUpdateComputerPartition has been removed
parent
94b9d082
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
3 deletions
+38
-3
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
...oduct/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
+38
-3
No files found.
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
View file @
5665b374
...
@@ -6,8 +6,26 @@ from random import random
...
@@ -6,8 +6,26 @@ from random import random
class
TestVifibSlapComputerPartitionUpdate
(
TestVifibSlapWebServiceMixin
):
class
TestVifibSlapComputerPartitionUpdate
(
TestVifibSlapWebServiceMixin
):
def
stepRequestSoftwareInstanceUpdate
(
self
,
sequence
,
**
kw
):
def
stepRequestSoftwareInstanceUpdate
(
self
,
sequence
,
**
kw
):
self
.
portal
.
portal_catalog
.
getResultValue
(
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_instance_uid'
]).
requestUpdateComputerPartition
()
uid
=
sequence
[
'software_instance_uid'
])
if
instance
.
getPortalType
()
==
"Software Instance"
:
shared
=
False
elif
instance
.
getPortalType
()
==
"Slave Instance"
:
shared
=
True
else
:
raise
NotImplementedError
method_dict
=
{
'start_requested'
:
instance
.
requestStart
,
'stop_requested'
:
instance
.
requestStop
,
'destroy_requested'
:
instance
.
requestDestroy
,
}
method_dict
[
instance
.
getSlapState
()](
software_release
=
instance
.
getRootSoftwareReleaseUrl
(),
instance_xml
=
instance
.
getTextContent
(),
software_type
=
instance
.
getSourceReference
(),
sla_xml
=
instance
.
getSlaXml
(),
shared
=
shared
,
)
def
stepCheckComputerPartitionInstanceUpdateSalePackingListDelivered
(
self
,
def
stepCheckComputerPartitionInstanceUpdateSalePackingListDelivered
(
self
,
sequence
,
**
kw
):
sequence
,
**
kw
):
...
@@ -463,7 +481,24 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
...
@@ -463,7 +481,24 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
**
kw
):
**
kw
):
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_instance_uid'
])
uid
=
sequence
[
'software_instance_uid'
])
self
.
assertRaises
(
ValidationFailed
,
instance
.
requestUpdateComputerPartition
)
if
instance
.
getPortalType
()
==
"Software Instance"
:
shared
=
False
elif
instance
.
getPortalType
()
==
"Slave Instance"
:
shared
=
True
else
:
raise
NotImplementedError
method_dict
=
{
'start_requested'
:
instance
.
requestStart
,
'stop_requested'
:
instance
.
requestStop
,
'destroy_requested'
:
instance
.
requestDestroy
,
}
self
.
assertRaises
(
ValidationFailed
,
method_dict
[
instance
.
getSlapState
()],
software_release
=
instance
.
getRootSoftwareReleaseUrl
(),
instance_xml
=
instance
.
getTextContent
(),
software_type
=
instance
.
getSourceReference
(),
sla_xml
=
instance
.
getSlaXml
(),
shared
=
shared
,
)
def
test_update_not_possible_delivered_instance_cleanup
(
self
):
def
test_update_not_possible_delivered_instance_cleanup
(
self
):
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
...
...
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