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

Put back test in filesystem.

Test runners cannot use pure in-ZODB tests.

Also reuse getAPIRoot
parent b1e92198
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Test Component" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_recorded_property_dict</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>testVifibSlaposRestAPIV1</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testVifibSlaposRestAPIV1</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Test Component</string> </value>
</item>
<item>
<key> <string>sid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>version</string> </key>
<value> <string>erp5</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -71,7 +71,7 @@ class VifibSlaposRestAPIV1MixinBase(TestVifibSlapWebServiceMixin):
self.document_list = []
self.portal = self.getPortalObject()
self.api_url = self.portal.portal_vifib_rest_api_v1.absolute_url()
self.api_url = self.portal.portal_vifib_rest_api.v1.getAPIRoot()
self.api_scheme, self.api_netloc, self.api_path, self.api_query, \
self.api_fragment = urlparse.urlsplit(self.api_url)
......@@ -1584,4 +1584,4 @@ class TestComputerPUT(VifibSlaposRestAPIV1MixinBase):
self.assertResponseJson()
self.assertEqual({'software_0': ['Missing key "log".']},
self.json_response)
self.assertComputerPUTSimulatorEmpty()
self.assertComputerPUTSimulatorEmpty()
\ No newline at end of file
71
\ No newline at end of file
72
\ 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