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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
c3f25f12
Commit
c3f25f12
authored
May 29, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vifib always return partition list
parent
1f744b05
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
46 deletions
+36
-46
master/product/Vifib/tests/testVifibSlapBang.py
master/product/Vifib/tests/testVifibSlapBang.py
+8
-8
master/product/Vifib/tests/testVifibSlapComputerGetComputerPartitionList.py
...ib/tests/testVifibSlapComputerGetComputerPartitionList.py
+14
-14
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
...oduct/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
+12
-12
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+0
-10
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
...oduct/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
+2
-2
No files found.
master/product/Vifib/tests/testVifibSlapBang.py
View file @
c3f25f12
...
...
@@ -143,7 +143,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
FinishSoftwareInstanceTree
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
...
...
@@ -166,7 +166,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
...
...
@@ -189,7 +189,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
...
...
@@ -249,7 +249,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
...
...
@@ -319,7 +319,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
SlapLoginTestVifibCustomer
...
...
@@ -570,7 +570,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Tic
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
...
...
@@ -624,7 +624,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
...
...
@@ -706,7 +706,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
FinishSoftwareInstancePartlyDestroyedTree
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
...
...
master/product/Vifib/tests/testVifibSlapComputerGetComputerPartitionList.py
View file @
c3f25f12
...
...
@@ -18,7 +18,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_computer
+
'
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -35,7 +35,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_formated_computer
+
'
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -100,7 +100,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout
\
'
+
self
.
prepare_computer
+
'
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -156,7 +156,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
CheckComputerPartitionInstanceCleanupSalePackingListCancelled
\
Logout
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -217,7 +217,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
CheckComputerPartitionInstanceCleanupSalePackingListDoesNotExists
\
Logout
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -261,7 +261,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout
\
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -284,7 +284,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout
\
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -318,7 +318,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_started_computer_partition_sequence_string
+
'
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -337,7 +337,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_started_computer_partition_sequence_string
+
'
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
\
LoginTestVifibCustomer
\
...
...
@@ -367,7 +367,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout
\
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
\
LoginTestVifibCustomer
\
...
...
@@ -397,7 +397,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout
\
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
\
LoginTestVifibCustomer
\
...
...
@@ -416,7 +416,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
CheckComputerPartitionInstanceHostingSalePackingListDelivered
\
Logout
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -465,7 +465,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_stopped_computer_partition_sequence_string
+
'
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -570,7 +570,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_destroyed_computer_partition
+
'
\
SlapLoginCurrentComputer
\
Check
Empty
ComputerGetComputerPartitionCall
\
Check
Success
ComputerGetComputerPartitionCall
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
View file @
c3f25f12
...
...
@@ -75,7 +75,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
# prepared initally stopped instance
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -107,7 +107,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
...
...
@@ -122,7 +122,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_started_computer_partition_sequence_string
\
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -153,7 +153,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
...
...
@@ -168,7 +168,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_stopped_computer_partition_sequence_string
\
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -199,7 +199,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
...
...
@@ -228,7 +228,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string
=
self
.
prepare_stopped_computer_partition_sequence_string
\
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -693,7 +693,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -722,7 +722,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -750,7 +750,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -778,7 +778,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string
=
\
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
...
...
@@ -791,7 +791,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
c3f25f12
...
...
@@ -1855,16 +1855,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
computer
=
self
.
slap
.
registerComputer
(
computer_guid
)
self
.
assertRaises
(
slap
.
NotFoundError
,
computer
.
getComputerPartitionList
)
def
stepCheckEmptyComputerGetComputerPartitionCall
(
self
,
sequence
,
**
kw
):
"""
Check that Computer.getComputerPartitionList is successfully called.
"""
computer_guid
=
sequence
[
"computer_reference"
]
self
.
slap
=
slap
.
slap
()
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
computer
=
self
.
slap
.
registerComputer
(
computer_guid
)
self
.
assertEquals
([],
computer
.
getComputerPartitionList
())
def
stepSelectYetAnotherRequestedReference
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'yet_another_requested_reference'
)
...
...
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
View file @
c3f25f12
...
...
@@ -508,7 +508,7 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_started_computer_partition_sequence_string
+
"""
SlapLoginCurrentComputer
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
SetSoftwareTitleRandom
...
...
@@ -755,7 +755,7 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
SlapLoginCurrentSoftwareInstance
SoftwareInstanceStarted
Tic
Check
Empty
ComputerGetComputerPartitionCall
Check
Success
ComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
...
...
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