Commit f4bf3631 authored by Roque's avatar Roque

erp5_web_monitoring: update app

See merge request !1453
parents 876a676d 5535b855
......@@ -86,7 +86,8 @@
},
"Monitoring App": {
"url": "officejs_monitoring/",
"cache" : "gadget_officejs_monitoring.appcache"
"storage_type": "precache",
"cache": precache_manifest
},
"App Store": {
"url": "officejs_appstore/",
......
......@@ -258,7 +258,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>989.27524.31537.13687</string> </value>
<value> <string>992.64248.47613.22510</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -276,7 +276,7 @@
</tuple>
<state>
<tuple>
<float>1613148589.32</float>
<float>1624657859.54</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -3,8 +3,8 @@
"name": "OfficeJS Monitor",
"description": "Cloud Monitoring Tool",
"icons": [{
"src": "img/vifib-logo.png",
"sizes": "any",
"src": "NXD-Logo.Rapid.Space.png",
"sizes": "128x128",
"type": "image/svg"
}],
"start_url": "../../",
......
......@@ -10,10 +10,12 @@
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -24,7 +26,6 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -44,7 +45,6 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -52,10 +52,12 @@
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -163,9 +165,7 @@
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<none/>
</value>
<value> <string>publish_alive</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
......@@ -191,7 +191,7 @@
</tuple>
<state>
<tuple>
<float>1623847666.69</float>
<float>1624563807.32</float>
<string>UTC</string>
</tuple>
</state>
......@@ -200,7 +200,7 @@
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>draft</string> </value>
<value> <string>published_alive</string> </value>
</item>
</dictionary>
</list>
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>992.51136.35053.31863</string> </value>
<value> <string>992.64654.61905.22323</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1623847806.72</float>
<float>1624981565.02</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -269,7 +269,7 @@
</item>
<item>
<key> <string>configuration_cache_file</string> </key>
<value> <string>gadget_officejs_monitoring.appcache</string> </value>
<value> <string>WebSection_getPrecacheManifest</string> </value>
</item>
<item>
<key> <string>configuration_content_security_policy</string> </key>
......@@ -532,7 +532,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>992.50077.60742.52258</string> </value>
<value> <string>992.51134.29615.45363</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -550,7 +550,7 @@
</tuple>
<state>
<tuple>
<float>1623847587.11</float>
<float>1624634946.02</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -273,6 +273,16 @@
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>configuration_precache_manifest_script_list</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
......@@ -325,12 +335,18 @@
</item>
<item>
<key> <string>configuration_manifest_url</string> </key>
<value> <string>gadget_officejs_monitoring.appcache</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>configuration_panel_gadget_url</string> </key>
<value> <string>gadget_officejs_monitoring_panel.html</string> </value>
</item>
<item>
<key> <string>configuration_precache_manifest_script_list</string> </key>
<value> <string>WebSection_getMonitorPrecacheManifestList</string> </value>
</item>
<item>
<key> <string>configuration_router_gadget_url</string> </key>
<value> <string>gadget_officejs_monitoring_router.html</string> </value>
......@@ -554,7 +570,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.27666.8050.30907</string> </value>
<value> <string>992.64257.46798.35242</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -572,7 +588,7 @@
</tuple>
<state>
<tuple>
<float>1541168426.77</float>
<float>1625247788.8</float>
<string>UTC</string>
</tuple>
</state>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>business_template_skin_layer_priority</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>float</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>42.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_web_monitoring</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
url_list = [
"URI.js",
"dygraph.js",
"gadget_erp5_nojqm.css",
"gadget_global.js",
"gadget_field_graph_dygraph.html",
"gadget_field_graph_dygraph.js",
"gadget_jio.html",
"gadget_jio.js",
"gadget_translate.html",
"gadget_translate.js",
"gadget_translation.html",
"dygraph.js",
"handlebars.js",
"jiodev.js",
"erp5_launcher_nojqm.js",
"monitoring_jio_storage.js",
"monitoring_jio_web_storage.js",
"jsen.min.js",
"renderjs.js",
"rsvp.js",
"gadget_erp5_notification.html",
"gadget_erp5_notification.js",
"gadget_officejs_router.js",
"gadget_translation_data.js",
"gadget_translation.js",
"gadget_erp5_router.html",
"gadget_erp5_router.js",
"gadget_html5_input.html",
"gadget_html5_input.js",
"gadget_erp5_configure_editor.html",
"gadget_erp5_configure_editor.js",
"gadget_erp5_searchfield.html",
"gadget_erp5_searchfield.js",
"gadget_erp5_pt_form_list.html",
"gadget_erp5_pt_form_list.js",
"gadget_erp5_form.html",
"gadget_erp5_form.js",
"gadget_erp5_label_field.html",
"gadget_erp5_label_field.js",
"gadget_erp5_field_listbox.html",
"gadget_erp5_field_listbox.js",
"gadget_erp5_field_datetime.html",
"gadget_erp5_field_datetime.js",
"gadget_erp5_field_string.html",
"gadget_erp5_field_string.js",
"gadget_erp5_field_gadget.html",
"gadget_erp5_field_gadget.js",
"gadget_erp5_field_status.html",
"gadget_erp5_field_status.js",
"gadget_html5_element.html",
"gadget_html5_element.js",
"gadget_erp5_field_editor.html",
"gadget_erp5_field_editor.js",
"gadget_erp5_field_relationstring.html",
"gadget_erp5_field_relationstring.js",
"gadget_erp5_field_textarea.html",
"gadget_erp5_field_textarea.js",
"gadget_erp5_relation_input.html",
"gadget_erp5_relation_input.js",
"gadget_erp5_page_ojs_controller.html",
"gadget_erp5_page_ojs_controller.js",
"gadget_html5_textarea.html",
"gadget_html5_textarea.js",
"gadget_erp5_field_list.html",
"gadget_erp5_field_list.js",
"gadget_erp5_field_checkbox.html",
"gadget_erp5_field_checkbox.js",
"gadget_html5_select.html",
"gadget_html5_select.js",
"gadget_erp5_field_password.html",
"gadget_erp5_field_password.js",
"gadget_erp5_field_integer.html",
"gadget_erp5_field_integer.js",
"gadget_erp5_jio.html",
"gadget_erp5_jio.js",
"gadget_erp5_search_editor.html",
"gadget_erp5_search_editor.js",
"gadget_erp5_sort_editor.html",
"gadget_erp5_sort_editor.js",
"gadget_officejs_monitoring_jio.html",
"gadget_erp5_page_ojsm_hosting_subscription_list.html",
"gadget_officejs_monitoring_parameter_view.html",
"gadget_erp5_page_settings_configurator.html",
"gadget_erp5_page_ojsm_processes_view.html",
"gadget_officejs_jio_hosting_subscription_view.html",
"gadget_officejs_monitoring_sync.html",
"gadget_officejs_jio_software_instance_view.html",
"gadget_erp5_page_ojsm_software_instance_list.html",
"gadget_officejs_monitoring_router.html",
"gadget_officejs_jio_promise_view.html",
"gadget_erp5_page_ojsm_import_export.html",
"gadget_officejs_jio_opml_view.html",
"gadget_erp5_page_ojsm_opml_add.html",
"gadget_officejs_monitoring_panel.html",
"gadget_erp5_page_ojsm_resources_view.html",
"gadget_erp5_page_ojsm_opml_delete.html",
"gadget_officejs_monitoring_header.html",
"gadget_erp5_page_ojsm_status_list.html",
"gadget_erp5_page_ojsm_synchronize.html",
"gadget_erp5_page_ojsm_erp5_configurator.html",
"gadget_erp5_page_ojsm_jump.html",
"gadget_officejs_monitoring_opml_edit.html",
"gadget_erp5_page_ojsm_dispatch.html",
"gadget_ojsm_graph_field.html",
"gadget_officejs_monitoring_jio.js",
"gadget_erp5_page_ojsm_hosting_subscription_list.js",
"gadget_officejs_monitoring_parameter_view.js",
"gadget_erp5_page_settings_configurator.js",
"gadget_erp5_page_ojsm_processes_view.js",
"gadget_officejs_monitoring_custom.css",
"gadget_officejs_jio_hosting_subscription_view.js",
"gadget_erp5_global.js",
"gadget_officejs_monitoring_sync.js",
"gadget_erp5_page_ojsm_software_instance_list.js",
"gadget_officejs_monitoring_panel.js",
"gadget_officejs_jio_software_instance_view.js",
"gadget_erp5_page_ojsm_import_export.js",
"gadget_erp5_page_ojsm_resources_view.js",
"gadget_officejs_jio_promise_view.js",
"gadget_officejs_monitoring_header.js",
"gadget_erp5_page_ojsm_opml_add.js",
"gadget_erp5_page_ojsm_opml_delete.js",
"gadget_erp5_page_ojsm_status_list.js",
"gadget_officejs_jio_opml_view.js",
"gadget_erp5_page_ojsm_synchronize.js",
"gadget_erp5_page_ojsm_jump.js",
"gadget_erp5_page_ojsm_erp5_configurator.js",
"gadget_officejs_monitoring_opml_edit.js",
"gadget_erp5_page_ojsm_dispatch.js",
"gadget_ojsm_graph_field.js",
"gadget_officejs_monitor.json",
"NXD-Logo.Rapid.Space.png",
"gadget_erp5_editor_panel.html",
"gadget_erp5_editor_panel.js"
]
return url_list
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_getMonitorPrecacheManifestList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -16,4 +16,5 @@ web_page_module/monitoring_jio_storage_js
web_page_module/monitoring_jio_web_storage_js
web_page_module/ojsm_gadget_erp5_statusfield_*
web_site_module/officejs_monitoring
web_site_module/officejs_monitoring/**
\ No newline at end of file
web_site_module/officejs_monitoring/**
image_module/gadget_officejs_appstore_rapid_spage
\ No newline at end of file
......@@ -16,4 +16,5 @@ web_page_module/monitoring_jio_storage_js
web_page_module/monitoring_jio_web_storage_js
web_page_module/ojsm_gadget_erp5_statusfield_*
web_site_module/officejs_monitoring
web_site_module/officejs_monitoring/**
\ No newline at end of file
web_site_module/officejs_monitoring/**
image_module/gadget_officejs_appstore_rapid_spage
\ No newline at end of file
image_module/gadget_officejs_appstore_rapid_spage
web_page_module/gadget_erp5_field_status_*
web_page_module/gadget_erp5_page_ojsm_*
web_page_module/gadget_erp5_page_settings_configurator_*
......
erp5_web_monitoring
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testOfficeJSMonitoring</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test SlapOS Monitoring UI</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test SlapOS Monitoring UI</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Clean Up -->
<tr>
<td>open</td>
<td>${base_url}/bar_module/ListBoxZuite_reset</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Successfully.</td>
<td></td>
</tr>
<!-- Install offline and redirect to clone -->
<tr>
<td>open</td>
<td tal:content="python: '${base_url}/web_site_module/%s?ignore_layout:int=1&editable_mode:int=1' % 'officejs_monitoring'"></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>field_my_id
</tr>
<tr>
<td>clickAndWait</td>
<td>name=Base_createCloneDocument:method</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Created Clone Web Site</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>name=field_my_id</td>
<td>install_url</td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForOfficejsUi/macros/wait_install" />
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Software Instances']</td>
<td></td>
</tr>
<tr>
<td colspan="3"><b>Delete cloned web site on server</b></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/manage_main</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=ids:list</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=ids:list</td>
<td>${install_url}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>name=manage_delObjects:method</td>
<td></td>
</tr>
<tr>
<td colspan="3"><b>Redirect on cloned web site</b></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/${install_url}/</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>10000</td>
<td></td>
</tr>
<tr>
<td>waitForTextNotPresent</td>
<td>Office JS Monitor App is being prepared for 100 % offline mode</td>
<td></td>
</tr>
<tr>
<td>setTimeout</td>
<td>90000</td>
<td></td>
</tr>
<!-- Initialize -->
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Monitoring Configurations']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Monitoring Configurations']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@id="destroyOPML"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@name='check_online_access']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button[@data-i18n='Save']</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>500</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Add']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@data-i18n="Save"]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Change Password']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Monitoring Configurations']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//button[@id="destroyOPML"]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Hosting Subscriptions']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Hosting Subscriptions']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//h1[text()='Hosting Subscriptions ']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Software Instances']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Software Instances']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//h1[text()='Software Instances ']</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_page_module/Zuite_waitForActivities</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Done.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/${install_url}/app/#!display?n.page=settings_configurator</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@data-i18n='Monitoring Configurations']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
erp5_full_text_mroonga_catalog
\ No newline at end of file
erp5_full_text_mroonga_catalog
erp5_officejs_ui_test
\ No newline at end of file
......@@ -264,6 +264,7 @@ class RJS_Only(_ERP5):
def getTestList(self):
rjs_officejs_bt_list = ["erp5_officejs_",
"renderjs_ui_test",
"erp5_web_monitoring_ui_test",
"erp5_monaco_editor_ui_test",
"erp5_travel_expense_ui_test",
"erp5_gadget_interface_validator_ui_test",
......
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