Commit 13447bcb authored by Łukasz Nowak's avatar Łukasz Nowak

Drop dead code.

parent 1d85e7a8
master 20240521_variousimprovements 20240704 20240827 20240905_fixup 20240913 20240914 20240925 20240930 20241004 20241008 20241021 20241106 20241107 20241114 20241127 20241209 20241230 20250108 alain-message allocation_consistency_instance_node amarisoft cache change_subscription_price cleanup cliff-cleanup crm_fix customprice cygwin-link-local event_attachment feat/cmmi_cache feat/openorderbasedsecurity feat/statuscleanup feat/testcase feature/cgroups feature/format-crumbled feature/manager-cpuset feature/option_create_tun feature/tun-cgroup-cleanup fix/slapos-ansible format_loop hosting_daily_invoice hotfix/proxy-root-instance localwip lxc manager_update_parameter master-dev message-box new-api-master-client panel_computer_guid panel_filter_action_dict payzen-fixup py3_fixup seb slap_tool_less_sql_query slapjs slapos-override-env slapproxy-connection-parameter splitopenorder subscription_change_request tomo_fix_slapos_format tomo_fix_slapos_node_boot tomo_listbox_update trigger_allocation_alarm upgrade_decision_event urlJS usage_report wip wip20210701 wip20210819 wip20220131 1.4.27 1.4.26 1.4.25 1.4.24 1.4.23 1.4.22 1.4.21 1.4.20 1.4.19 1.4.17 1.4.16 1.4.15 1.4.14 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.18 1.3.17 1.3.16 1.3.15 1.3.14 1.3.13 1.3.12 1.3.11 1.3.10 1.3.9 1.3.8 1.3.7 1.3.6.3 1.3.6.2 1.3.6.1 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4.1 1.2.4 1.2.3.1 1.2.3 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 1.0.0rc6 1.0.0rc5 1.0.0rc4 1.0.0rc3 1.0.0-rc1 0.35.1 0.34 0.33.1 0.33 0.32.3 0.32.2 0.32 0.31.2 0.31.1 0.31 0.30 0.29 0.28.9 0.28.8 0.28.7 0.28.6 0.28.5 0.28.4 0.28.3 0.28.2 0.28.1 0.28 0.27 0.26.2 0.26.1 0.26 0.25 0.24 0.23 0.22 master-20180917 jquerymobile.noanimation
No related merge requests found
...@@ -10,52 +10,6 @@ from Products.ERP5Type.tests.backportUnittest import skip ...@@ -10,52 +10,6 @@ from Products.ERP5Type.tests.backportUnittest import skip
class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin): class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
def stepCheckPersonPaymentState(self, sequence, **kw):
"""
Check that person payment state is the same than slap state
"""
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue()
self.assertEquals('open_order_created', person.getSlapState())
self.assertEquals(person.getSlapState(), person.getPaymentState())
@skip('Dropped implementation')
def test_person_payment_state(self):
"""Person payment state value is the same than slap state
"""
sequence_list = SequenceList()
sequence_string = '\
LoginDefaultUser \
CheckPersonPaymentState \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepCheckPersonLockedState(self, sequence, **kw):
"""
Check that person slap state is locked
"""
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue()
self.assertEquals('locked', person.getSlapState())
def stepCheckPersonUnlockedState(self, sequence, **kw):
"""
Check that person slap state is unlocked
"""
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue()
self.assertEquals('unlocked', person.getSlapState())
def stepCheckPersonUnlimitedState(self, sequence, **kw):
"""
Check that person slap state is unlimited
"""
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue()
self.assertEquals('unlimited', person.getSlapState())
register_new_user_sequence_string = '\ register_new_user_sequence_string = '\
Logout \ Logout \
RequestCredentialFromWebSite \ RequestCredentialFromWebSite \
...@@ -96,38 +50,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin): ...@@ -96,38 +50,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
Logout \ Logout \
' '
@skip('Dropped implementation')
def test_person_locked_by_default(self):
"""Newly registered customer are locked by default
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginWebUser \
CheckPersonLockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepPersonRequestIsForbidden(self, sequence, **kw):
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue()
software_release = self.portal.portal_catalog.getResultValue(
uid=sequence['software_release_uid'])
software_title = sequence.get('software_title',
self.id() + str(random()))
self.assertRaises(Unauthorized, person.requestSoftwareInstance,
software_release=software_release.getUrlString(),
software_title=software_title,
instance_xml=self.minimal_correct_xml,
sla_xml=sequence.get('sla_xml'),
**kw)
def stepSoftwareInstanceSaleOrderConfirmRaisesUnauthorized(self, sequence, def stepSoftwareInstanceSaleOrderConfirmRaisesUnauthorized(self, sequence,
**kw): **kw):
"""Checks that current software instance is realted only with sale order """Checks that current software instance is realted only with sale order
...@@ -187,82 +109,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin): ...@@ -187,82 +109,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def stepTriggerUnlockPersonAlarm(self, sequence, **kw):
"""
Trigger global person unlocking
"""
self.portal.portal_alarms.vifib_unlock_person.activeSense()
def stepTriggerLockPersonAlarm(self, sequence, **kw):
"""
Trigger global person locking
"""
self.portal.portal_alarms.vifib_lock_person.activeSense()
def stepUnlimitPerson(self, sequence, **kw):
"""
Unlimit user access
"""
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[
'web_user'])
person.unlimit()
@skip('Dropped implementation')
def test_automated_person_without_payment_unlocking(self):
"""Test that a person is automatically unlocked by an alarm if no payment
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_automated_person_without_payment_not_locking(self):
"""Test that a person is not automatically locked by an alarm if no payment
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
TriggerLockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepCreateSmallInvoiceWebUser(self, sequence, **kw): def stepCreateSmallInvoiceWebUser(self, sequence, **kw):
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[ person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[
'web_user']) 'web_user'])
...@@ -330,39 +176,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin): ...@@ -330,39 +176,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
Logout Logout
""" """
@skip('Dropped implementation')
def test_automated_person_small_not_paid_not_locking(self):
"""Test that a person is not automatically locked by an alarm if
recent small payment is not paid yet
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
' + self.create_small_registration_fee_invoice + '\
TriggerLockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepCreatePastSmallPayment(self, sequence, **kw): def stepCreatePastSmallPayment(self, sequence, **kw):
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[ person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[
'web_user']) 'web_user'])
...@@ -400,84 +213,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin): ...@@ -400,84 +213,6 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
def stepDeliverPayment(self, sequence, **kw): def stepDeliverPayment(self, sequence, **kw):
sequence['payment_transaction'].deliver() sequence['payment_transaction'].deliver()
@skip('Dropped implementation')
def test_automated_person_past_not_paid_locking(self):
"""Test that a person is automatically locked by an alarm if payment has
not been done for a long time.
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CreatePastSmallPayment \
Tic \
Logout \
\
TriggerLockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonLockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_automated_unlimited_person_past_not_paid_locking(self):
"""Test that an unlimited person is automatically locked by
an alarm if payment has not been done for a long time.
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
UnlimitPerson \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlimitedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CreatePastSmallPayment \
Tic \
Logout \
\
TriggerLockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonLockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepCreateHighBalanceInvoiceWebUser(self, sequence, **kw): def stepCreateHighBalanceInvoiceWebUser(self, sequence, **kw):
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[ person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue(sequence[
'web_user']) 'web_user'])
...@@ -499,1107 +234,42 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin): ...@@ -499,1107 +234,42 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
) )
sequence['invoice'] = invoice sequence['invoice'] = invoice
@skip('Dropped implementation') def new_software_instance_string(self):
def test_automated_person_high_not_paid_locking(self): return \
"""Test that a person is automatically locked by an alarm if payment has self.prepare_installed_software_release_sequence_string + \
an high quantity self.register_new_user_sequence_string + '\
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \ TriggerUnlockPersonAlarm \
Tic \ Tic \
Logout \ Logout \
\ ' + \
LoginWebUser \ self.create_new_user_instance_sequence_string
CheckPersonUnlockedState \
Tic \
Logout \
' + self.lock_user_string() + '\
LoginWebUser \
CheckPersonLockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation') def new_slave_instance_string(self):
def test_automated_unlimited_person_high_not_paid_locking(self): return \
"""Test that an unlimited person is automatically locked by self.prepare_installed_computer_partition_sequence_string + \
an alarm if payment has an high quantity self.register_new_user_sequence_string + '\
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \ TriggerUnlockPersonAlarm \
Tic \ Tic \
UnlimitPerson \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlimitedState \
Tic \
Logout \
' + self.lock_user_string() + '\
LoginWebUser \
CheckPersonLockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \ Logout \
' ' + \
sequence_list.addSequenceString(sequence_string) self.create_new_user_slave_instance_sequence_string
sequence_list.play(self)
@skip('Dropped implementation') def lock_user_string(self):
def test_automated_person_with_ongoing_payment_unlocking(self): return '\
"""Test that a person is can not be unlocked if there is an ongoing
payment.
Unlocking alarm doesn't have to know why user is locked.
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
\
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CreatePastSmallPayment \ CreateHighBalanceInvoiceWebUser \
Tic \ Tic \
Logout \ PlanInvoice \
\
LoginWebUser \
CheckPersonLockedState \
Logout \
\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \ Tic \
Logout \ ConfirmInvoice \
\ StartInvoice \
LoginWebUser \
CheckPersonLockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_automated_person_with_delivered_payment_unlocking(self):
"""Test that a person is can be unlocked if payment are delivered
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
\
LoginERP5TypeTestCase \
CreatePastSmallPayment \
Tic \
StartPayment \
StopPayment \
DeliverPayment \
Tic \
Logout \
\
LoginWebUser \
CheckPersonLockedState \
Logout \
\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_automated_person_with_cancelled_payment_unlocking(self):
"""Test that a person is can be unlocked if payment are cancelled
"""
sequence_list = SequenceList()
sequence_string = self.register_new_user_sequence_string + '\
\
LoginERP5TypeTestCase \
CreatePastSmallPayment \
Tic \
CancelPayment \
Tic \
Logout \
\
LoginWebUser \
CheckPersonLockedState \
Logout \
\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
\
LoginWebUser \
CheckPersonUnlockedState \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepCheckInstanceLocked(self, sequence, **kw):
instance = self.portal.portal_catalog.getResultValue(
uid=sequence['software_instance_uid'])
self.assertEqual('locked', instance.getSlapState())
def stepCheckInstanceNotLocked(self, sequence, **kw):
instance = self.portal.portal_catalog.getResultValue(
uid=sequence['software_instance_uid'])
self.assertNotEqual('locked', instance.getSlapState())
@skip('Dropped implementation')
def test_automated_software_instance_unlock(self):
"""Locked person's instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.prepare_installed_software_release_sequence_string + \
self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
' + \
self.create_new_user_instance_sequence_string + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
\
DeliverPayment \
Tic \
CheckInstanceUnlocked \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepInstanceRequestIsForbidden(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'))
self.assertRaises(slap.Unauthorized, slap_computer_partition.request, **kw)
def new_software_instance_string(self):
return \
self.prepare_installed_software_release_sequence_string + \
self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
' + \
self.create_new_user_instance_sequence_string
def new_slave_instance_string(self):
return \
self.prepare_installed_computer_partition_sequence_string + \
self.register_new_user_sequence_string + '\
LoginERP5TypeTestCase \
TriggerUnlockPersonAlarm \
Tic \
Logout \
' + \
self.create_new_user_slave_instance_sequence_string
def lock_user_string(self):
return '\
LoginERP5TypeTestCase \
CreateHighBalanceInvoiceWebUser \
Tic \
PlanInvoice \
Tic \
ConfirmInvoice \
StartInvoice \
Tic \ Tic \
CheckWebUserBalanceHighAmount \ CheckWebUserBalanceHighAmount \
TriggerLockPersonAlarm \ TriggerLockPersonAlarm \
Tic \ Tic \
Logout \ Logout'
'
@skip('Dropped implementation')
def test_locked_instance_request(self):
"""Locked person's instance can not request
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + \
self.lock_user_string() + '\
\
SlapLoginCurrentSoftwareInstance \
InstanceRequestIsForbidden \
SlapLogout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_requested(self):
"""Locked person's requested instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_building(self):
"""Locked person's building instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_installed(self):
"""Locked person's installed instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_starting(self):
"""Locked person's starting instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStart \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_started(self):
"""Locked person's started instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceStarted \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_stopping(self):
"""Locked person's stopping instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStop \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_stopped(self):
"""Locked person's stopped instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStop \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceStopped \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_update(self):
"""Locked person's updated instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceUpdate \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_destroying(self):
"""Locked person's destroying instance are not automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceDestroy \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_destroyed(self):
"""Locked person's destroyed instance are not automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + '\
\
SlapLoginCurrentComputer \
SoftwareInstanceBuilding \
Tic \
SoftwareInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSoftwareInstanceDestroy \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceDestroyed \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_software_instance_can_be_destroyed(self):
"""Locked person's instance can be destroyed
"""
sequence_list = SequenceList()
sequence_string = \
self.new_software_instance_string() + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginWebUser \
RequestSoftwareInstanceDestroy \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
SlapLoginCurrentComputer \
SoftwareInstanceDestroyed \
Tic \
SlapLogout \
\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_requested(self):
"""Locked person's requested instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_building(self):
"""Locked person's building instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_installed(self):
"""Locked person's installed instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_starting(self):
"""Locked person's starting instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStart \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_started(self):
"""Locked person's started instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceStarted \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_stopping(self):
"""Locked person's stopping instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStop \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_stopped(self):
"""Locked person's stopped instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStop \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceStopped \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_update(self):
"""Locked person's updated instance are automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceUpdate \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_destroying(self):
"""Locked person's destroying instance are not automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceDestroy \
Tic \
Logout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_destroyed(self):
"""Locked person's destroyed instance are not automatically locked
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + '\
\
SlapLoginCurrentComputer \
SlaveInstanceBuilding \
Tic \
SlaveInstanceAvailable \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceStart \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceStarted \
Tic \
SlapLogout \
\
LoginWebUser \
RequestSlaveInstanceDestroy \
Tic \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceDestroyed \
Tic \
SlapLogout \
' + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@skip('Dropped implementation')
def test_lock_slave_instance_can_be_destroyed(self):
"""Locked person's instance can be destroyed
"""
sequence_list = SequenceList()
sequence_string = \
self.new_slave_instance_string() + \
self.lock_user_string() + '\
LoginERP5TypeTestCase \
CheckInstanceLocked \
CheckStoppedComputerPartitionGetStateCall \
Logout \
\
LoginWebUser \
RequestSlaveInstanceDestroy \
Tic \
Logout \
\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
SlapLoginCurrentComputer \
SlaveInstanceDestroyed \
Tic \
SlapLogout \
\
LoginERP5TypeTestCase \
CheckInstanceNotLocked \
CheckDestroyedComputerPartitionGetStateCall \
Logout \
\
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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