From 4781602528cb9e3b87e46090b04f31532555a3e1 Mon Sep 17 00:00:00 2001 From: Roque <roqueporchetto@gmail.com> Date: Thu, 28 Sep 2017 11:54:09 +0200 Subject: [PATCH] testnode: code cleanup Variable name changed from jsonData to json_data. Old comment deleted. --- erp5/util/testnode/ScalabilityTestRunner.py | 10 ---------- erp5/util/testnode/testnode.py | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/erp5/util/testnode/ScalabilityTestRunner.py b/erp5/util/testnode/ScalabilityTestRunner.py index 1cae006b45..29d0b89fd1 100644 --- a/erp5/util/testnode/ScalabilityTestRunner.py +++ b/erp5/util/testnode/ScalabilityTestRunner.py @@ -423,16 +423,6 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)) self._waitInstance(self.instance_title, SlapOSMasterCommunicator.INSTANCE_STATE_STARTED) self.slapos_communicator._request(SlapOSMasterCommunicator.INSTANCE_STATE_STARTED) - ''' - # ROQUE: for now, this old hack is not needed - # XXX: Dirty hack used to force haproxy to restart in time with all zope informations. - self._waitInstance(self.instance_title, SlapOSMasterCommunicator.INSTANCE_STATE_STARTED) - self.slapos_communicator._request(SlapOSMasterCommunicator.INSTANCE_STATE_STOPPED) - self._waitInstance(self.instance_title, SlapOSMasterCommunicator.INSTANCE_STATE_STOPPED) - self.slapos_communicator._request(SlapOSMasterCommunicator.INSTANCE_STATE_STARTED) - ########################################################## - ''' - self._waitInstance(self.instance_title, SlapOSMasterCommunicator.INSTANCE_STATE_STARTED) self.log("[DEBUG] INSTANCE CORRECTLY STARTED") diff --git a/erp5/util/testnode/testnode.py b/erp5/util/testnode/testnode.py index 4ff8d855ef..46cfee00bf 100644 --- a/erp5/util/testnode/testnode.py +++ b/erp5/util/testnode/testnode.py @@ -406,8 +406,8 @@ shared = true # know slapos parameters to user for creating instances log("Getting configuration from test suite " + str(node_test_suite.test_suite_title)) generated_config = self.test_suite_portal.generateConfiguration(node_test_suite.test_suite_title) - jsonData = json.loads(generated_config) - cluster_configuration = Utils.deunicodeData(jsonData['configuration_list'][0]) + json_data = json.loads(generated_config) + cluster_configuration = Utils.deunicodeData(json_data['configuration_list'][0]) node_test_suite.edit(cluster_configuration=cluster_configuration) # Now prepare the installation of SlapOS and create instance status_dict = runner.prepareSlapOSForTestSuite(node_test_suite) -- 2.30.9