Commit c3f25f12 authored by Romain Courteaud's avatar Romain Courteaud

Vifib always return partition list

parent 1f744b05
......@@ -143,7 +143,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
FinishSoftwareInstanceTree
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
......@@ -166,7 +166,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
......@@ -189,7 +189,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
......@@ -249,7 +249,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
......@@ -319,7 +319,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
SlapLoginTestVifibCustomer
......@@ -570,7 +570,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Tic
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
......@@ -624,7 +624,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
......@@ -706,7 +706,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
FinishSoftwareInstancePartlyDestroyedTree
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
ComputerBang
Tic
SlapLogout
......
......@@ -18,7 +18,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list = SequenceList()
sequence_string = self.prepare_computer + '\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -35,7 +35,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list = SequenceList()
sequence_string = self.prepare_formated_computer + '\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -100,7 +100,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout \
' + self.prepare_computer + '\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -156,7 +156,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
CheckComputerPartitionInstanceCleanupSalePackingListCancelled \
Logout \
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -217,7 +217,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
CheckComputerPartitionInstanceCleanupSalePackingListDoesNotExists \
Logout \
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -261,7 +261,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout \
\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -284,7 +284,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout \
\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -318,7 +318,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list = SequenceList()
sequence_string = self.prepare_started_computer_partition_sequence_string + '\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -337,7 +337,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list = SequenceList()
sequence_string = self.prepare_started_computer_partition_sequence_string + '\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
\
LoginTestVifibCustomer \
......@@ -367,7 +367,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout \
\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
\
LoginTestVifibCustomer \
......@@ -397,7 +397,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
Logout \
\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
\
LoginTestVifibCustomer \
......@@ -416,7 +416,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
CheckComputerPartitionInstanceHostingSalePackingListDelivered \
Logout \
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -465,7 +465,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list = SequenceList()
sequence_string = self.prepare_stopped_computer_partition_sequence_string + '\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -570,7 +570,7 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list = SequenceList()
sequence_string = self.prepare_destroyed_computer_partition + '\
SlapLoginCurrentComputer \
CheckEmptyComputerGetComputerPartitionCall \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......
......@@ -75,7 +75,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
# prepared initally stopped instance
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -107,7 +107,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
......@@ -122,7 +122,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string = self.prepare_started_computer_partition_sequence_string \
+ """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -153,7 +153,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
......@@ -168,7 +168,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string = self.prepare_stopped_computer_partition_sequence_string \
+ """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -199,7 +199,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
......@@ -228,7 +228,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string = self.prepare_stopped_computer_partition_sequence_string \
+ """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -693,7 +693,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string = \
self.prepare_started_computer_partition_sequence_string + """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -722,7 +722,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string = \
self.prepare_started_computer_partition_sequence_string + """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -750,7 +750,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string = \
self.prepare_started_computer_partition_sequence_string + """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -778,7 +778,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_string = \
self.prepare_started_computer_partition_sequence_string + """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
......@@ -791,7 +791,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginERP5TypeTestCase
......
......@@ -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')
......
......@@ -508,7 +508,7 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
sequence_list = SequenceList()
sequence_string = self.prepare_started_computer_partition_sequence_string + """
SlapLoginCurrentComputer
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
LoginTestVifibCustomer
SetSoftwareTitleRandom
......@@ -755,7 +755,7 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
SlapLoginCurrentSoftwareInstance
SoftwareInstanceStarted
Tic
CheckEmptyComputerGetComputerPartitionCall
CheckSuccessComputerGetComputerPartitionCall
SlapLogout
SlapLoginCurrentSoftwareInstance
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment