Commit 48dfdc40 authored by Romain Courteaud's avatar Romain Courteaud

Test calls bang multiple time.

parent 068b7d66
...@@ -66,19 +66,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin): ...@@ -66,19 +66,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
sequence['computer_reference'], sequence['computer_reference'],
sequence['computer_partition_reference']) sequence['computer_partition_reference'])
slap_computer_partition.bang(self.bang_message) slap_computer_partition.bang(self.bang_message)
sequence.edit(expected_bang_count=1) sequence.edit(expected_bang_count=sequence.get('expected_bang_count', 0) + 1)
def stepProcessSoftwareInstanceList(self, sequence, **kw):
S0 = self.portal.portal_catalog.getResultValue(uid=sequence['S0_uid'])
S0.startComputerPartition()
S1 = self.portal.portal_catalog.getResultValue(uid=sequence['S1_uid'])
S1.stopComputerPartition()
S2 = self.portal.portal_catalog.getResultValue(uid=sequence['S2_uid'])
S2.stopComputerPartition()
S3 = self.portal.portal_catalog.getResultValue(uid=sequence['S3_uid'])
S3.stopComputerPartition()
S4 = self.portal.portal_catalog.getResultValue(uid=sequence['S4_uid'])
S4.stopComputerPartition()
def stepSetCurrentSoftwareInstanceS1(self, sequence, **kw): def stepSetCurrentSoftwareInstanceS1(self, sequence, **kw):
S1 = self.portal.portal_catalog.getResultValue(uid=sequence['S1_uid']) S1 = self.portal.portal_catalog.getResultValue(uid=sequence['S1_uid'])
...@@ -166,8 +154,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin): ...@@ -166,8 +154,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
SlapLogout SlapLogout
LoginDefaultUser LoginDefaultUser
ProcessSoftwareInstanceList
Tic
SetCurrentSoftwareInstanceS1 SetCurrentSoftwareInstanceS1
Logout Logout
...@@ -189,8 +175,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin): ...@@ -189,8 +175,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
SlapLogout SlapLogout
LoginDefaultUser LoginDefaultUser
ProcessSoftwareInstanceList
Tic
SetCurrentSoftwareInstanceS3 SetCurrentSoftwareInstanceS3
Logout Logout
...@@ -224,7 +208,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin): ...@@ -224,7 +208,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
slap_computer = self.slap.registerComputer( slap_computer = self.slap.registerComputer(
sequence['computer_reference']) sequence['computer_reference'])
slap_computer.bang(self.bang_message) slap_computer.bang(self.bang_message)
sequence.edit(expected_bang_count=5) sequence.edit(expected_bang_count=sequence.get('expected_bang_count', 0) + 5)
def stepCheckComputerBangMessage(self, sequence, **kw): def stepCheckComputerBangMessage(self, sequence, **kw):
computer = self.portal.portal_catalog.getResultValue( computer = self.portal.portal_catalog.getResultValue(
......
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