Commit d3c01afa authored by Vivien Alger's avatar Vivien Alger

Mass Upgrade: templates for testing purpose

Added one template to software_product_module and another one for software_release_module
parent 13a01de7
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Software Product" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Author</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Author</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Author</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Author</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>product_line/software/application</string>
</tuple>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>template_software_product</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Software Product</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Template Software Release</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Software Release" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Change_local_roles_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>template_software_release</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>template_software_release</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value> <string>FR</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Software Release</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Template Software Release</string> </value>
</item>
<item>
<key> <string>url_protocol</string> </key>
<value> <string>http</string> </value>
</item>
<item>
<key> <string>url_string</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>version</string> </key>
<value> <string>0.1</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -89,8 +89,8 @@ class TestSlapOSMassUpgrade(testSlapOSMixin):
self.tic()
def _makeSoftwareProduct(self, new_id):
self.software_product = self.portal.portal_catalog(
portal_type='Software Product')[0].Base_createCloneDocument(batch_mode=1)
self.software_product = self.portal.software_product_module\
.template_software_product.Base_createCloneDocument(batch_mode=1)
self.software_product.edit(
reference='TESTSOFTPROD-%s' % new_id,
title='Test software product %s' % new_id
......@@ -99,8 +99,8 @@ class TestSlapOSMassUpgrade(testSlapOSMixin):
self.tic()
def _makeSoftwareReleases(self, new_id):
self.start_requested_software_release = self.portal.portal_catalog(
portal_type='Software Release')[0].Base_createCloneDocument(batch_mode=1)
self.start_requested_software_release = self.portal.software_release_module\
.template_software_release.Base_createCloneDocument(batch_mode=1)
self.start_requested_software_release.edit(
url_string=self.start_requested_software_release_url,
aggregate=self.software_product.getRelativeUrl(),
......@@ -109,9 +109,8 @@ class TestSlapOSMassUpgrade(testSlapOSMixin):
)
self.start_requested_software_release.release()
self.destroy_requested_software_release = self.portal.portal_catalog(
portal_type='Software Release')[0]\
.Base_createCloneDocument(batch_mode=1)
self.destroy_requested_software_release = self.portal.software_release_module\
.template_software_release.Base_createCloneDocument(batch_mode=1)
self.destroy_requested_software_release.edit(
url_string=self.destroy_requested_software_release_url,
aggregate=self.software_product.getRelativeUrl(),
......
292
\ No newline at end of file
293
\ No newline at end of file
......@@ -18,4 +18,6 @@ portal_alarms/slapos_stop_collect_instance
portal_alarms/slapos_update_computer_capacity_scope
software_installation_module/template_software_installation
software_instance_module/template_slave_instance
software_instance_module/template_software_instance
\ No newline at end of file
software_instance_module/template_software_instance
software_product_module/template_software_product
software_release_module/template_software_release
\ 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