Commit aa968396 authored by Romain Courteaud's avatar Romain Courteaud

Update PL is always delivered.

parent 9d5cab31
...@@ -3,6 +3,7 @@ import unittest ...@@ -3,6 +3,7 @@ import unittest
from testVifibSlapWebService import TestVifibSlapWebServiceMixin from testVifibSlapWebService import TestVifibSlapWebServiceMixin
from Products.DCWorkflow.DCWorkflow import ValidationFailed from Products.DCWorkflow.DCWorkflow import ValidationFailed
from random import random from random import random
from Products.ERP5Type.tests.backportUnittest import skip
class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
def stepRequestSoftwareInstanceUpdate(self, sequence, **kw): def stepRequestSoftwareInstanceUpdate(self, sequence, **kw):
...@@ -21,7 +22,8 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -21,7 +22,8 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
} }
method_dict[instance.getSlapState()]( method_dict[instance.getSlapState()](
software_release=instance.getRootSoftwareReleaseUrl(), software_release=instance.getRootSoftwareReleaseUrl(),
instance_xml=instance.getTextContent(), instance_xml='<?xml version="1.0"' \
'encoding="utf-8"?><instance> </instance>',
software_type=instance.getSourceReference(), software_type=instance.getSourceReference(),
sla_xml=instance.getSlaXml(), sla_xml=instance.getSlaXml(),
shared=shared, shared=shared,
...@@ -102,7 +104,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -102,7 +104,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
...@@ -149,7 +151,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -149,7 +151,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
...@@ -195,7 +197,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -195,7 +197,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
...@@ -255,7 +257,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -255,7 +257,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
...@@ -273,7 +275,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -273,7 +275,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceHostingSalePackingListDelivered CheckComputerPartitionInstanceHostingSalePackingListDelivered
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
CheckUpdateSalePackingListErrorText CheckUpdateSalePackingListErrorText
Logout Logout
...@@ -372,13 +374,6 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -372,13 +374,6 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
CheckComputerPartitionNoInstanceHostingSalePackingList CheckComputerPartitionNoInstanceHostingSalePackingList
Logout Logout
LoginDefaultUser
DeliverSalePackingList
Tic
CheckComputerPartitionInstanceSetupSalePackingListDelivered
Logout
# prepared delivered instance setup delivery # prepared delivered instance setup delivery
LoginTestVifibCustomer LoginTestVifibCustomer
...@@ -388,6 +383,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -388,6 +383,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionNoInstanceUpdateSalePackingList CheckComputerPartitionNoInstanceUpdateSalePackingList
CheckComputerPartitionInstanceSetupSalePackingListDelivered
Logout Logout
LoginERP5TypeTestCase LoginERP5TypeTestCase
...@@ -437,6 +433,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -437,6 +433,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
@skip('Update is forbidden on destroyed instance')
def test_update_not_created_confirmed_instance_cleanup(self): def test_update_not_created_confirmed_instance_cleanup(self):
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = \ sequence_string = \
...@@ -737,7 +734,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -737,7 +734,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
...@@ -766,7 +763,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -766,7 +763,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
...@@ -794,7 +791,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -794,7 +791,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceUpdateSalePackingListConfirmed CheckComputerPartitionInstanceUpdateSalePackingListDelivered
Logout Logout
SlapLoginCurrentComputer SlapLoginCurrentComputer
......
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