Commit eecff7ec authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Dont overwrite renderjs_runner

See merge request !465
parents 015add27 e2bbb1d2
......@@ -59,6 +59,7 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
slapos_jio/PathTemplateItem/web_site_module/hostingjs.xml
slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_translation_data_js.js
slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_translation_data_js.xml
slapos_jio/PathTemplateItem/web_site_module/renderjs_oss.xml
# Modified by subprojects during tests
slapos_crm/PathTemplateItem/sale_trade_condition_module/slapos_ticket_trade_condition.xml
......
......@@ -35,7 +35,7 @@ class TestSlapOSHostingJSPrecacheManifestList(SlapOSTestCaseMixinWithAbort):
return self.portal.restrictedTraverse(reference, None) is not None
def test(self):
self.web_site = self.portal.web_site_module.renderjs_runner
self.web_site = self.portal.web_site_module.renderjs_oss
self.changeSkin('Hal')
manifest_script = getattr(self.web_site, self.manifest_script_id)
failure_list = []
......
......@@ -133,7 +133,7 @@
<key>
<tuple>
<int>99</int>
<string>ERP5 Web Site/renderjs_runner</string>
<string>ERP5 Web Site/renderjs_oss</string>
</tuple>
</key>
<value>
......@@ -462,11 +462,11 @@ WebSection_getRenderJSRunnerAccessPagePrecacheManifestList</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>RenderJS Gadget ERP5</string> </value>
<value> <string>RenderJS Runner for OSS</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>renderjs_runner</string> </value>
<value> <string>renderjs_oss</string> </value>
</item>
<item>
<key> <string>int_index</string> </key>
......@@ -516,12 +516,18 @@ WebSection_getRenderJSRunnerAccessPagePrecacheManifestList</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>RenderJS Runner</string> </value>
<value> <string>RenderJS Runner for OSS</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>workflow_history</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
......@@ -585,4 +591,152 @@ WebSection_getRenderJSRunnerAccessPagePrecacheManifestList</string> </value>
<none/>
</pickle>
</record>
<record id="8" aka="AAAAAAAAAAg=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>category_publication_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
</value>
</item>
<item>
<key> <string>edit_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="9" aka="AAAAAAAAAAk=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>publish</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1671565044.09</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>published</string> </value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="10" aka="AAAAAAAAAAo=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_log</string> </key>
<value>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1005.1964.2264.20343</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1671151941.45</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -203,3 +203,5 @@ web_page_module/rjs_vkbeautify_js
web_page_module/slapos_admin_front_page
web_site_module/hostingjs
web_site_module/hostingjs/**
web_site_module/renderjs_oss
web_site_module/renderjs_oss/**
\ No newline at end of file
web_site_module/hateoas
web_site_module/hateoas/**
web_site_module/renderjs_runner
portal_types/ERP5 Form
portal_propery_sheets/SlapOSHateoasSystemPreference
web_page_module/rjs_gadget_erp5_panel_shortcut_html
......
......@@ -207,4 +207,5 @@ web_page_module/rjs_vkbeautify_js
web_page_module/slapos_admin_front_page
web_site_module/hostingjs
web_site_module/hostingjs/**
web_site_module/renderjs_runner
\ No newline at end of file
web_site_module/renderjs_oss
web_site_module/renderjs_oss/**
\ No newline at end of file
......@@ -14,7 +14,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>slapos_renderjs_runner_zuite</string> </value>
<value> <string>slapos_renderjs_oss_zuite</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -42,7 +42,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testSlapOSJSRenderJSRunner0ServiceWorker</string> </value>
<value> <string>testSlapOSJSRenderJSOSS0ServiceWorker</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
......
......@@ -12,7 +12,7 @@
<td rowspan="1" colspan="3">Test RenderJS UI</td>
</tr>
</thead>
<tbody tal:define="web_site_id python: 'renderjs_runner'">
<tbody tal:define="web_site_id python: 'renderjs_oss'">
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/set_default_available_language"/>
<tr>
......@@ -21,7 +21,7 @@
<tr>
<td>open</td>
<td
tal:content="python: '${base_url}/web_site_module/renderjs_runner?ignore_layout:int=1&editable_mode:int=1'">
tal:content="python: '${base_url}/web_site_module/renderjs_oss?ignore_layout:int=1&editable_mode:int=1'">
</td>
<td></td>
</tr>
......
......@@ -42,7 +42,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testSlapOSJSRenderJSRunnerBasicNavigation</string> </value>
<value> <string>testSlapOSJSRenderJSOSSBasicNavigation</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
......
......@@ -13,7 +13,7 @@
</tr>
</thead>
<tbody>
<tal:block tal:define="global web_site_id python: 'renderjs_runner'">
<tal:block tal:define="global web_site_id python: 'renderjs_oss'">
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/slapos_init_base" />
<tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/set_default_available_language"/>
<!-- Logout -->
......
......@@ -29,18 +29,18 @@ import unittest
from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin
from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import ERP5TypeFunctionalTestCase
class TestSlapOSRenderJSRunnerUIHalStyle(SlapOSTestCaseMixin, ERP5TypeFunctionalTestCase):
class TestSlapOSRenderJSOSSUIHalStyle(SlapOSTestCaseMixin, ERP5TypeFunctionalTestCase):
foreground = 0
run_only = "slapos_renderjs_runner_zuite"
run_only = "slapos_renderjs_oss_zuite"
def afterSetUp(self):
ERP5TypeFunctionalTestCase.afterSetUp(self)
SlapOSTestCaseMixin.afterSetUp(self)
# Ensuring the default available language is "en" for English UI test
self.getPortalObject().web_site_module.renderjs_runner.setDefaultAvailableLanguage('en')
self.getPortalObject().web_site_module.renderjs_oss.setDefaultAvailableLanguage('en')
self.tic()
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestSlapOSRenderJSRunnerUIHalStyle))
suite.addTest(unittest.makeSuite(TestSlapOSRenderJSOSSUIHalStyle))
return suite
......@@ -6,15 +6,9 @@
</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>testFunctionalSlapOSRenderJSRunnerUIHalStyle</string> </value>
<value> <string>testFunctionalSlapOSRenderJSOSSUIHalStyle</string> </value>
</item>
<item>
<key> <string>default_source_reference</string> </key>
......@@ -30,7 +24,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test.erp5.testFunctionalSlapOSRenderJSRunnerUIHalStyle</string> </value>
<value> <string>test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......@@ -61,28 +55,13 @@
<item>
<key> <string>workflow_history</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</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>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
......@@ -95,7 +74,7 @@
<item>
<key> <string>component_validation_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
</dictionary>
......@@ -104,7 +83,7 @@
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle>
......
portal_tests/slapos_renderjs_runner_zuite
portal_tests/slapos_renderjs_runner_zuite/**
portal_tests/slapos_renderjs_oss_zuite
portal_tests/slapos_renderjs_oss_zuite/**
portal_tests/slaposjs_zuite
portal_tests/slaposjs_zuite/**
web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_html
......
test.erp5.testFunctionalSlapOSUIHalStyle
test.erp5.testFunctionalSlapOSUIZHHalStyle
test.erp5.testFunctionalSlapOSRenderJSRunnerUIHalStyle
\ No newline at end of file
test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle
\ No newline at end of file
......@@ -1074,7 +1074,7 @@ class TestBase_getTicketUrl(TestRSSSyleSkinsMixin):
self.assertIn("%s/#/" % self.portal.absolute_url(),
ticket.Base_getTicketUrl())
web_site = self.portal.web_site_module.renderjs_runner
web_site = self.portal.web_site_module.renderjs_oss
self.assertIn("%s/#/" % web_site.absolute_url(),
web_site.support_request_module[ticket.getId()].Base_getTicketUrl())
......@@ -1105,7 +1105,7 @@ class TestSlapOSSaleInvoiceTransaction_getRSSTitleAndDescription(TestRSSSyleSkin
invoice.SaleInvoiceTransaction_getRSSDescription())
invoice_via_website = \
self.portal.web_site_module.renderjs_runner.accounting_module[invoice.getId()]
self.portal.web_site_module.renderjs_oss.accounting_module[invoice.getId()]
self.assertEqual(
invoice_via_website.SaleInvoiceTransaction_getRSSTitle(),
"[RenderJS Runner] %s %s" % (text, invoice.getReference()))
......
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