Commit 3d7b76cf authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: mark test to check

parent 5ceea286
......@@ -47,7 +47,7 @@ class TestSlapOSUpgradeDecisionProcess(SlapOSTestCaseMixin):
return instance_tree
def test_alarm_upgrade_decision_process_instance_tree(self):
def test_tocheck_alarm_upgrade_decision_process_instance_tree(self):
upgrade_decision = self._makeUpgradeDecision()
upgrade_decision.start()
self.tic()
......@@ -56,7 +56,7 @@ class TestSlapOSUpgradeDecisionProcess(SlapOSTestCaseMixin):
upgrade_decision,
'UpgradeDecision_processUpgrade')
def test_alarm_upgrade_decision_process_planned(self):
def test_tocheck_alarm_upgrade_decision_process_planned(self):
upgrade_decision = self._makeUpgradeDecision(confirm=0)
upgrade_decision.plan()
self._test_alarm(
......@@ -64,7 +64,7 @@ class TestSlapOSUpgradeDecisionProcess(SlapOSTestCaseMixin):
upgrade_decision,
'UpgradeDecision_notify')
def test_alarm_upgrade_decision_process_stopped(self):
def test_tocheck_alarm_upgrade_decision_process_stopped(self):
upgrade_decision = self._makeUpgradeDecision()
upgrade_decision.start()
upgrade_decision.stop()
......@@ -119,14 +119,14 @@ class TestSlapOSUpgradeDecisionProcess(SlapOSTestCaseMixin):
self._test_alarm_compute_node_create_upgrade_decision_not_visited('close/termination', 'never')
self._test_alarm_compute_node_create_upgrade_decision_not_visited('close/noallocation', 'never')
def test_alarm_instance_tree_create_upgrade_decision(self):
def test_tocheck_alarm_instance_tree_create_upgrade_decision(self):
instance_tree = self._makeInstanceTree()
self._test_alarm(
self.portal.portal_alarms.slapos_pdm_instance_tree_create_upgrade_decision,
instance_tree,
'InstanceTree_createUpgradeDecision')
def test_alarm_create_upgrade_decision_destroyed_instance_tree(self):
def test_tocheck_alarm_create_upgrade_decision_destroyed_instance_tree(self):
instance_tree = self._makeInstanceTree(slap_state="destroy_requested")
self._test_alarm_not_visited(
self.portal.portal_alarms.slapos_pdm_instance_tree_create_upgrade_decision,
......
......@@ -111,7 +111,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.partition.markBusy()
self.tic()
def test_InstanceTree_createUpgradeDecision_upgradeScopeConfirmation(self):
def test_tocheck_InstanceTree_createUpgradeDecision_upgradeScopeConfirmation(self):
# check upgrade decision on HS
self.instance_tree.setUpgradeScope('manual')
self.tic()
......@@ -135,7 +135,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
shared_upgrade_decision = self.shared_instance_tree.InstanceTree_createUpgradeDecision()
self.assertEqual('started', shared_upgrade_decision.getSimulationState())
def test_InstanceTree_createUpgradeDecision_upgradeScopeAuto(self):
def test_tocheck_InstanceTree_createUpgradeDecision_upgradeScopeAuto(self):
# check upgrade decision on HS
self.instance_tree.setUpgradeScope('auto')
self.tic()
......@@ -157,7 +157,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
shared_upgrade_decision = self.shared_instance_tree.InstanceTree_createUpgradeDecision()
self.assertEqual('started', shared_upgrade_decision.getSimulationState())
def test_InstanceTree_createUpgradeDecision_upgradeScopeDisabled(self):
def test_tocheck_InstanceTree_createUpgradeDecision_upgradeScopeDisabled(self):
# check upgrade decision on HS
self.instance_tree.setUpgradeScope('disabled')
self.tic()
......@@ -167,7 +167,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(None, shared_upgrade_decision)
def testInstanceTree_createUpgradeDecision_no_newer(self):
def test_tocheckInstanceTree_createUpgradeDecision_no_newer(self):
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)#, owner=person)
self._makeComputePartitions(compute_node)
......@@ -196,7 +196,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
upgrade_decision = instance_tree.InstanceTree_createUpgradeDecision()
self.assertEqual(upgrade_decision, None)
def testInstanceTree_createUpgradeDecision_closed_compute_node(self):
def test_tocheckInstanceTree_createUpgradeDecision_closed_compute_node(self):
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project, allocation_scope="close/outdated")
self._makeComputePartitions(compute_node)
......@@ -232,7 +232,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
up_decision.UpgradeDecision_getAggregateValue("Software Release").\
getUrlString())
def testInstanceTree_createUpgradeDecision_create_once_transaction(self):
def test_tocheckInstanceTree_createUpgradeDecision_create_once_transaction(self):
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project, allocation_scope="open/personal")
self._makeComputePartitions(compute_node)
......@@ -266,7 +266,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
# no new Upgrade decision created
self.assertEqual(up_decision, None)
def testInstanceTree_createUpgradeDecision(self):
def test_tocheckInstanceTree_createUpgradeDecision(self):
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node)
......@@ -307,7 +307,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(up_decision2, None)
def testInstanceTree_createUpgradeDecision_with_exist(self):
def test_tocheckInstanceTree_createUpgradeDecision_with_exist(self):
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node)
......@@ -347,7 +347,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
self.assertEqual(release.getUrlString(),
software_release3.getUrlString())
def testInstanceTree_createUpgradeDecision_rejected(self):
def test_tocheckInstanceTree_createUpgradeDecision_rejected(self):
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)
self._makeComputePartitions(compute_node)
......@@ -386,7 +386,7 @@ class TestSlapOSPDMCreateUpgradeDecisionSkins(TestSlapOSPDMMixinSkins):
# No new upgrade decision created with software_release2
self.assertEqual(up_decision, None)
def testInstanceTree_createUpgradeDecision_rejected_2(self):
def test_tocheckInstanceTree_createUpgradeDecision_rejected_2(self):
person = self._makePerson(self.project)
compute_node, _ = self._makeComputeNode(self.project)#, owner=person)
self._makeComputePartitions(compute_node)
......
......@@ -49,7 +49,7 @@ class TestSlapOSDestroySoftwareInstallationWithArchivedSoftwareReleaseAlarm(Slap
self.tic()
return instance
def test(self):
def test_tocheck(self):
preference = self.portal.portal_preferences.getActiveSystemPreference()
preference.setPreferredCloudContractEnabled(True)
self.tic()
......@@ -135,7 +135,7 @@ class TestSlapOSDestroySoftwareInstallationWithArchivedSoftwareReleaseAlarm(Slap
self.assertEqual('validated', archived_used_software_installation.getValidationState())
self.assertEqual('start_requested', archived_used_software_installation.getSlapState())
def test_manual_upgrade_scope(self):
def test_tocheck_manual_upgrade_scope(self):
preference = self.portal.portal_preferences.getActiveSystemPreference()
preference.setPreferredCloudContractEnabled(True)
self.tic()
......@@ -214,7 +214,7 @@ class TestSlapOSDestroySoftwareInstallationWithArchivedSoftwareReleaseAlarm(Slap
self.assertEqual('validated', archived_used_software_installation.getValidationState())
@simulateByEditWorkflowMark('SoftwareRelease_findAndDestroySoftwareInstallation')
def test_no_op_run_software_release(self):
def test_tocheck_no_op_run_software_release(self):
archived_software_release = self.portal.software_release_module.newContent(
portal_type='Software Release',
version='1',
......@@ -251,7 +251,7 @@ class TestSlapOSDestroySoftwareInstallationWithArchivedSoftwareReleaseAlarm(Slap
[q['comment'] for q in archived_software_release.workflow_history['edit_workflow']])
@simulateByEditWorkflowMark('SoftwareInstallation_destroyWithSoftwareReleaseArchived')
def test_no_op_run_software_installation(self):
def test_tocheck_no_op_run_software_installation(self):
preference = self.portal.portal_preferences.getActiveSystemPreference()
preference.setPreferredCloudContractEnabled(True)
self.tic()
......
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