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

Support HS w/o request_instance.

Also commit test skeleton.
parent 9fd4c2ed
...@@ -87,8 +87,7 @@ for hosting_subscription in portal.portal_catalog(\n ...@@ -87,8 +87,7 @@ for hosting_subscription in portal.portal_catalog(\n
try:\n try:\n
start_date = getWorkflowDate(hosting_subscription, \'request_instance\')\n start_date = getWorkflowDate(hosting_subscription, \'request_instance\')\n
except ValueError:\n except ValueError:\n
pass\n start_date = hosting_subscription.getCreationDate()\n
else:\n
start_date_tuple_list.append((hosting_subscription.getRelativeUrl(), start_date, hosting_subscription.getPath()))\n start_date_tuple_list.append((hosting_subscription.getRelativeUrl(), start_date, hosting_subscription.getPath()))\n
\n \n
\n \n
......
...@@ -1154,6 +1154,11 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin): ...@@ -1154,6 +1154,11 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self.assertEqual(request_time_2, validated_line_2.getStartDate()) self.assertEqual(request_time_2, validated_line_2.getStartDate())
self.assertEqual(stop_date_2, validated_line_2.getStopDate()) self.assertEqual(stop_date_2, validated_line_2.getStopDate())
def test_hosting_subscription_start_date_not_changed(self):
# if there was no request_instance the getCreationDate has been used
# but if request_instance appeared start_date is not changed
raise NotImplementedError
class TestSlapOSTriggerBuildAlarm(testSlapOSMixin): class TestSlapOSTriggerBuildAlarm(testSlapOSMixin):
@simulateByTitlewMark('SimulationMovement_buildSlapOS') @simulateByTitlewMark('SimulationMovement_buildSlapOS')
def test_SimulationMovement_withoutDelivery(self): def test_SimulationMovement_withoutDelivery(self):
......
212 213
\ No newline at end of file \ No newline at end of file
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