Commit efcdfa0f authored by Łukasz Nowak's avatar Łukasz Nowak

Follow new test logic.

Ticing invokes alarm. But this test needs ticed (for indexation) documents
without any alarm begin run.

So use stepRequestComputerPartitionNoTic and provide stepCleanTic in order to
have tic without any side effects.
parent 6b0e5df6
...@@ -371,6 +371,9 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -371,6 +371,9 @@ class testVifibMixin(ERP5TypeTestCase):
self.assertFalse(self.portal.portal_alarms.vifib_check_consistency.sense()) self.assertFalse(self.portal.portal_alarms.vifib_check_consistency.sense())
self.checkDivergency() self.checkDivergency()
def stepCleanTic(self, **kw):
super(testVifibMixin, self).stepTic(**kw)
def stepTic(self, **kw): def stepTic(self, **kw):
def build(): def build():
sm = getSecurityManager() sm = getSecurityManager()
......
...@@ -909,7 +909,8 @@ class TestVifibSlapComputerPartitionRequest(TestVifibSlapWebServiceMixin): ...@@ -909,7 +909,8 @@ class TestVifibSlapComputerPartitionRequest(TestVifibSlapWebServiceMixin):
SlapLoginCurrentSoftwareInstance \ SlapLoginCurrentSoftwareInstance \
SelectRequestedReferenceChildrenA \ SelectRequestedReferenceChildrenA \
SelectEmptyRequestedParameterDict \ SelectEmptyRequestedParameterDict \
RequestComputerPartition \ RequestComputerPartitionNoTic \
CleanTic \
SlapLogout \ SlapLogout \
LoginDefaultUser \ LoginDefaultUser \
ConfirmSaleOrderOrderedToCheckSerializeCalledOnSelected \ ConfirmSaleOrderOrderedToCheckSerializeCalledOnSelected \
......
...@@ -553,23 +553,6 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -553,23 +553,6 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def stepRequestComputerPartitionNoTic(self, sequence, **kw):
self.slap = slap.slap()
self.slap.initializeConnection(self.server_url, timeout=None)
slap_computer_partition = self.slap.registerComputerPartition(
sequence['computer_reference'],
sequence['computer_partition_reference'])
kw = dict(software_release=sequence['software_release_uri'],
software_type=sequence.get('requested_software_type',
'requested_software_type'),
partition_reference=sequence.get('requested_reference',
'requested_reference'),
partition_parameter_kw=sequence.get('requested_parameter_dict', {}),
filter_kw=sequence.get('requested_filter_dict', {}),
state=sequence.get('instance_state'))
slap_computer_partition.request(**kw)
def stepCheckActivityRequestInProgress(self, sequence, **kw): def stepCheckActivityRequestInProgress(self, sequence, **kw):
hosting_subscription_uid = sequence['hosting_subscription_uid'] hosting_subscription_uid = sequence['hosting_subscription_uid']
requested_partition_reference = sequence.get('software_type', 'requested_reference') requested_partition_reference = sequence.get('software_type', 'requested_reference')
......
...@@ -177,6 +177,23 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -177,6 +177,23 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
######################################## ########################################
# Steps -- scenarios # Steps -- scenarios
######################################## ########################################
def stepRequestComputerPartitionNoTic(self, sequence, **kw):
self.slap = slap.slap()
self.slap.initializeConnection(self.server_url, timeout=None)
slap_computer_partition = self.slap.registerComputerPartition(
sequence['computer_reference'],
sequence['computer_partition_reference'])
kw = dict(software_release=sequence['software_release_uri'],
software_type=sequence.get('requested_software_type',
'requested_software_type'),
partition_reference=sequence.get('requested_reference',
'requested_reference'),
partition_parameter_kw=sequence.get('requested_parameter_dict', {}),
filter_kw=sequence.get('requested_filter_dict', {}),
state=sequence.get('instance_state'))
slap_computer_partition.request(**kw)
def stepTriggerConfirmPlannedInvoiceAlarm(self, sequence, **kw): def stepTriggerConfirmPlannedInvoiceAlarm(self, sequence, **kw):
sm = getSecurityManager() sm = getSecurityManager()
self.login() self.login()
......
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