Commit a4040310 authored by Romain Courteaud's avatar Romain Courteaud

Migrate Skin Selection test

parent 8ff7552e
......@@ -6,12 +6,33 @@
</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>60.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>slapos_cache</string> </value>
......
5
\ No newline at end of file
6
\ No newline at end of file
......@@ -6,12 +6,33 @@
</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>60.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>slapos_cloud_promise</string> </value>
......
181
\ No newline at end of file
182
\ No newline at end of file
......@@ -27,15 +27,16 @@
#
##############################################################################
import unittest
from VifibMixin import testVifibMixin
from Products.SlapOS.tests.testSlapOSMixin import \
testSlapOSMixin
import difflib
class TestVifibSkinSelection(testVifibMixin):
class TestSlaposSkinSelection(testSlapOSMixin):
run_all_test = 1
def getTitle(self):
return "Vifib Skin Selection"
return "Slapos Skin Selection"
def test_01_defaultSkin(self, quiet=0, run=run_all_test):
"""
......@@ -55,15 +56,10 @@ class TestVifibSkinSelection(testVifibMixin):
self.assertSameSet(
[x[0] for x in portal.portal_skins.getSkinPaths()],
[
'Cash',
'Download',
'Hosting',
'KM',
'Multiflex',
'ODS',
'ODT',
'Outdated',
'RSS',
'SHACACHE',
'SHADIR',
'View',
......@@ -101,111 +97,6 @@ class TestVifibSkinSelection(testVifibMixin):
message += '\t + %s\n' % i
self.fail(message)
def test_03_Cash_selection(self, quiet=0, run=run_all_test):
"""
Check the skin folder order
"""
if not run: return
skin_name = 'Cash'
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cloud
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_cash
vifib_core
vifib_jauks_theme
vifib_jauks_widget_library
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web
vifib_web_ui_test
vifib_configurator
erp5_km
erp5_km_theme
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
erp5_configurator
erp5_configurator_wizard
erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
erp5_forge_release
erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_jquery
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
erp5_web_minimal_theme
erp5_web_widget_library
erp5_workflow
erp5_xhtml_jquery_style
erp5_xhtml_style
external_method
Images
activity
zpt_content
zpt_control
zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
def test_05_Hosting_selection(self, quiet=0, run=run_all_test):
"""
Check the skin folder order
......@@ -216,40 +107,29 @@ zpt_generic
selection_string_list = \
"""
custom
vifib_upgrader
vifib_hosting
slapos_cache
slapos_cloud
slapos_cloud_promise
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
slapos_slap_tool
vifib_hosting_theme
vifib_jauks_theme
vifib_jauks_widget_library
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web
vifib_web_ui_test
vifib_configurator
slapos_configurator
erp5_km
erp5_km_theme
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
......@@ -259,11 +139,9 @@ erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
......@@ -272,29 +150,14 @@ erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_jquery
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_promise
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
......@@ -309,204 +172,6 @@ activity
zpt_content
zpt_control
zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
def test_06_ODS_selection(self, quiet=0, run=run_all_test):
"""
Check the skin folder order
"""
if not run: return
skin_name = 'ODS'
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cloud
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web_ui_test
vifib_configurator
erp5_km
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_ods_style
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
erp5_configurator
erp5_configurator_wizard
erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
erp5_forge_release
erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
erp5_web_minimal_theme
erp5_web_widget_library
erp5_workflow
erp5_xhtml_jquery_style
external_method
Images
activity
zpt_content
zpt_control
zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
def test_07_ODT_selection(self, quiet=0, run=run_all_test):
"""
Check the skin folder order
"""
if not run: return
skin_name = 'ODT'
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cloud
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web_ui_test
vifib_configurator
erp5_km
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_odt_style
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
erp5_configurator
erp5_configurator_wizard
erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
erp5_forge_release
erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
erp5_web_minimal_theme
erp5_web_widget_library
erp5_workflow
erp5_xhtml_jquery_style
external_method
Images
activity
zpt_content
zpt_control
zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
......@@ -520,35 +185,23 @@ zpt_generic
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cache
slapos_cloud
slapos_cloud_promise
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web
vifib_web_ui_test
vifib_configurator
slapos_slap_tool
slapos_configurator
erp5_km
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
......@@ -558,11 +211,9 @@ erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
......@@ -572,29 +223,14 @@ erp5_glossary
erp5_html_compatibility
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_jquery
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_promise
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
......@@ -622,35 +258,24 @@ zpt_generic
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cache
slapos_cloud
slapos_cloud_promise
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web_ui_test
vifib_configurator
slapos_slap_tool
slapos_configurator
erp5_km
erp5_km_theme
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
......@@ -660,11 +285,9 @@ erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
......@@ -673,30 +296,15 @@ erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_jquery
erp5_km_widget_library
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_promise
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
......@@ -724,35 +332,24 @@ zpt_generic
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cache
slapos_cloud
slapos_cloud_promise
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web_ui_test
vifib_configurator
slapos_slap_tool
slapos_configurator
erp5_commerce_multiflex_layout
erp5_km
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
......@@ -762,11 +359,9 @@ erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
......@@ -775,28 +370,13 @@ erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_promise
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
......@@ -823,35 +403,24 @@ zpt_generic
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cache
slapos_cloud
slapos_cloud_promise
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web_ui_test
vifib_configurator
slapos_slap_tool
slapos_configurator
erp5_km
erp5_web_download_theme
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
......@@ -861,11 +430,9 @@ erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
......@@ -874,28 +441,13 @@ erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_promise
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
......@@ -910,207 +462,10 @@ activity
zpt_content
zpt_control
zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
def test_13_RSS_selection(self):
"""
Check the skin folder order
"""
skin_name = 'RSS'
selection_string_list = \
"""
custom
vifib_upgrader
slapos_cloud
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web_ui_test
vifib_configurator
erp5_rss_style
erp5_km
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
erp5_configurator
erp5_configurator_wizard
erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
erp5_forge_release
erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
erp5_web_minimal_theme
erp5_web_widget_library
erp5_workflow
erp5_xhtml_jquery_style
external_method
Images
activity
zpt_content
zpt_control
zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
def test_14_Outdated_selection(self):
"""
Check the skin folder order
"""
skin_name = 'Outdated'
selection_string_list = \
"""
custom
vifib_upgrader
vifib_upgrader_20120423
vifib_upgrader_201210
vifib_upgrader_before_201208
vifib_upgrader_before_201209
slapos_cloud
slapos_core
slapos_pdm
slapos_rest_api
slapos_subscription
vifib_base
vifib_core
vifib_payzen
vifib_promise
vifib_simulation
vifib_slap
vifib_test
vifib_web_ui_test
vifib_configurator
erp5_km
erp5_knowledge_pad
erp5_simulation
erp5_dms_base
erp5_dms_web
erp5_accounting_l10n_fr
erp5_upgrader
erp5_access_tab
erp5_accounting
erp5_accounting_bbb
erp5_administration
erp5_base
erp5_bearer_token
erp5_commerce
erp5_commerce_widget_library
erp5_computer_immobilisation
erp5_configurator
erp5_configurator_wizard
erp5_content_translation
erp5_core
erp5_core_proxy_field_legacy
erp5_credential
erp5_credential_oauth2
erp5_crm
erp5_data_set
erp5_dhtml_style
erp5_discount_resource
erp5_dms
erp5_fckeditor
erp5_forge
erp5_forge_release
erp5_gadget
erp5_glossary
erp5_ingestion
erp5_ingestion_test
erp5_integration
erp5_invoicing
erp5_item
erp5_item_trade
erp5_ods_core
erp5_odt_core
erp5_ooo_import
erp5_open_trade
erp5_payzen_secure_payment
erp5_pdm
erp5_project
erp5_project_trade
erp5_rss_core
erp5_secure_payment
erp5_simplified_invoicing
erp5_software_pdm
erp5_system_event
erp5_tax_resource
erp5_toolbox
erp5_trade
erp5_ui_test
erp5_ui_test_core
erp5_vcs
erp5_web
erp5_web_crm
erp5_web_minimal_theme
erp5_web_widget_library
erp5_workflow
erp5_xhtml_jquery_style
external_method
Images
activity
zpt_content
zpt_control
zpt_generic
"""
self.assertSameSkinSelection(skin_name, selection_string_list)
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestVifibSkinSelection))
suite.addTest(unittest.makeSuite(TestSlaposSkinSelection))
return suite
35
\ No newline at end of file
36
\ No newline at end of file
testSlapOSSkinSelection
\ 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