Commit 5aad664f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

clean up. we no longer use 'release' and 'product' in upgrade signature.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43260 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 019f2ef7
......@@ -64,9 +64,6 @@ ALARM_DICT = {\n
"finalize_upgrader" : True\n
}\n
\n
# The destination release provided by this upgrader\n
DESTINATION_RELEASE = \'5.4.7\'\n
\n
# A list of bt5 which the upgrader can upgrade\n
# ie. a bt5 not in this list will not be upgraded\n
# by having an explicit list we can handle dedicate\n
......@@ -254,7 +251,6 @@ CATALOG_FILTER_DICT = None\n
#\n
\n
INTEGRITY_VERIFICATION_SCRIPT_ID_LIST = (\'ERP5Site_verifyUpgradeIntegrity\',\n
\'ERP5Site_verifyBT5UpgradeIntegrity\',\n
\'ERP5Site_verifyMemcachedIntegrity\',\n
\'ERP5Site_verifySQLCatalogFilterIntegrity\',\n
\'ERP5Site_verifyActivityIntegrity\')\n
......@@ -309,10 +305,6 @@ RECATALOG = False\n
signature_dict = {\n
# Defines the alarms enabled for the upgrade\n
\'alarm_dict\' : ALARM_DICT\n
# Defines the default release for bt5\n
, \'release\': DESTINATION_RELEASE\n
# Defines the default release for products\n
, \'product\': DESTINATION_RELEASE\n
# Provides a snapshot of how workflow chains should be configured\n
, \'workflow_chain_dict\': WORKFLOW_CHAIN_DICT\n
# Provides a list of required bt5 (without which upgrader wont\'t work)\n
......
<?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>_body</string> </key>
<value> <string>"""\n
Verify if this instance is a properly configured one.\n
This script could be used in functional tests\n
"""\n
portal = context.getPortalObject()\n
message_list = []\n
\n
def assertEquals(value1, value2):\n
if value1 == value2:\n
return True\n
return False\n
\n
def assertNotEquals(value1, value2):\n
if value1 != value2:\n
return True\n
return False\n
\n
\n
# BT5 must contain a minimum set of installed ones having current ERP5 instance version\n
# Hardcoded Version from now.\n
signature = context.ERP5Site_getUpgraderSignature()\n
erp5_instance_version = signature[\'release\']\n
# XXX It should be generic at someday in future and use Signature Script.\n
\n
\n
minimum_bt5_title_list = list(signature[\'required_bt5_id_list\']) + \\\n
[\'express_customisation\']\n
\n
for bt5_title in minimum_bt5_title_list:\n
bt5 = portal.portal_templates.getInstalledBusinessTemplate(bt5_title)\n
if bt5 is not None:\n
if not assertEquals(bt5.getVersion(), erp5_instance_version):\n
message_list.append("False %s (%s != %s)" % (bt5_title, bt5.getVersion(), erp5_instance_version)) \n
else:\n
message_list.append("False (bt5 %s not found)" % (bt5_title))\n
\n
return [ i for i in message_list if i is not True]\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ERP5Site_verifyBT5UpgradeIntegrity</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -74,8 +74,6 @@ class TestLiveUpgrader(ERP5TypeLiveTestCase):
or change API Definition.
"""
signature_key_list = ('alarm_dict',
'release',
'product',
'workflow_chain_dict',
'required_bt5_id_list',
'upgradable_bt5_id_list',
......
577
\ No newline at end of file
578
\ 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