From ed3ab343af3c982798baa6ac55947c5007891e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 29 Aug 2019 08:58:02 +0000 Subject: [PATCH] configurator_standard_ui_test: drop Zuite_getConfiguratorFilenameLocation we are now using setFile selenium command to upload file from an URL. --- .../extension.erp5.ConfiguratorTestUtils.py | 40 ------- .../extension.erp5.ConfiguratorTestUtils.xml | 111 ------------------ .../Zuite_getConfiguratorFilenameLocation.xml | 28 ----- .../bt/template_extension_id_list | 1 - 4 files changed, 180 deletions(-) delete mode 100644 bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.py delete mode 100644 bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.xml delete mode 100644 bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorFilenameLocation.xml delete mode 100644 bt5/erp5_configurator_standard_ui_test/bt/template_extension_id_list diff --git a/bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.py b/bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.py deleted file mode 100644 index 5dd14b5cca..0000000000 --- a/bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Copyright (c) 2002-2010 Nexedi SA and Contributors. All Rights Reserved. -# Ivan Tyagov <ivan@nexedi.com> -# Rafael Monenrat <rafael@nexedi.com> -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsability of assessing all potential -# consequences resulting from its eventual inadequacies and bugs -# End users who are looking for a ready-to-use solution with commercial -# garantees and support are strongly adviced to contract a Free Software -# Service Company -# -# This program is Free Software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -############################################################################## - -import os -from Products.ERP5Configurator import tests - -def Zuite_getTestDocumentPath(self, filename): - """ - Get the full path of the document to be used into the test. - """ - return os.path.join( - os.path.abspath( - os.path.dirname(tests.__file__)),'test_data/%s' % filename) diff --git a/bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.xml b/bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.xml deleted file mode 100644 index f4db10ee94..0000000000 --- a/bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.ConfiguratorTestUtils.xml +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Extension Component" module="erp5.portal_type"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>default_reference</string> </key> - <value> <string>ConfiguratorTestUtils</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>extension.erp5.ConfiguratorTestUtils</string> </value> - </item> - <item> - <key> <string>portal_type</string> </key> - <value> <string>Extension Component</string> </value> - </item> - <item> - <key> <string>sid</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>version</string> </key> - <value> <string>erp5</string> </value> - </item> - <item> - <key> <string>workflow_history</string> </key> - <value> - <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> - <item> - <key> <string>component_validation_workflow</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> - </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> - </pickle> - <pickle> - <tuple> - <none/> - <list> - <dictionary> - <item> - <key> <string>action</string> </key> - <value> <string>validate</string> </value> - </item> - <item> - <key> <string>actor</string> </key> - <value> <string>ERP5TypeTestCase</string> </value> - </item> - <item> - <key> <string>comment</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>1377844617.99</float> - <string>GMT+9</string> - </tuple> - </state> - </object> - </value> - </item> - <item> - <key> <string>validation_state</string> </key> - <value> <string>validated</string> </value> - </item> - </dictionary> - </list> - </tuple> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorFilenameLocation.xml b/bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorFilenameLocation.xml deleted file mode 100644 index 49aef1bcd8..0000000000 --- a/bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorFilenameLocation.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_function</string> </key> - <value> <string>Zuite_getTestDocumentPath</string> </value> - </item> - <item> - <key> <string>_module</string> </key> - <value> <string>ConfiguratorTestUtils</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Zuite_getConfiguratorFilenameLocation</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_configurator_standard_ui_test/bt/template_extension_id_list b/bt5/erp5_configurator_standard_ui_test/bt/template_extension_id_list deleted file mode 100644 index a78b4774b7..0000000000 --- a/bt5/erp5_configurator_standard_ui_test/bt/template_extension_id_list +++ /dev/null @@ -1 +0,0 @@ -extension.erp5.ConfiguratorTestUtils \ No newline at end of file -- 2.30.9