Commit 8f933329 authored by Łukasz Nowak's avatar Łukasz Nowak

Commit also after reindex.

parent a8eae036
...@@ -55,6 +55,7 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin): ...@@ -55,6 +55,7 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin):
['Associate']) ['Associate'])
transaction.commit() transaction.commit()
customer.recursiveImmediateReindexObject() customer.recursiveImmediateReindexObject()
transaction.commit()
return customer, customer_reference return customer, customer_reference
def afterSetUp(self): def afterSetUp(self):
...@@ -431,6 +432,7 @@ class VifibSlaposRestAPIV1InstanceMixin(VifibSlaposRestAPIV1Mixin): ...@@ -431,6 +432,7 @@ class VifibSlaposRestAPIV1InstanceMixin(VifibSlaposRestAPIV1Mixin):
transaction.commit() transaction.commit()
hosting_subscription.recursiveImmediateReindexObject() hosting_subscription.recursiveImmediateReindexObject()
software_instance.recursiveImmediateReindexObject() software_instance.recursiveImmediateReindexObject()
transaction.commit()
return software_instance return software_instance
# needed to avoid calling interaction and being able to destroy XML # needed to avoid calling interaction and being able to destroy XML
...@@ -439,6 +441,7 @@ class VifibSlaposRestAPIV1InstanceMixin(VifibSlaposRestAPIV1Mixin): ...@@ -439,6 +441,7 @@ class VifibSlaposRestAPIV1InstanceMixin(VifibSlaposRestAPIV1Mixin):
software_instance.setTextContent('This is bad XML') software_instance.setTextContent('This is bad XML')
transaction.commit() transaction.commit()
software_instance.recursiveImmediateReindexObject() software_instance.recursiveImmediateReindexObject()
transaction.commit()
class TestInstanceGET(VifibSlaposRestAPIV1InstanceMixin): class TestInstanceGET(VifibSlaposRestAPIV1InstanceMixin):
def test_non_existing(self): def test_non_existing(self):
......
31 32
\ 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