Commit 308aa7fd authored by Benjamin Blanc's avatar Benjamin Blanc

Rename isValidatedMaster->isMasterTestnode (client side)

parent d45e68c2
...@@ -478,7 +478,7 @@ branch = foo ...@@ -478,7 +478,7 @@ branch = foo
return '{"configuration_list": [], "involved_nodes_computer_guid"\ return '{"configuration_list": [], "involved_nodes_computer_guid"\
: [], "error_message": "No error.", "launcher_nodes_computer_guid": {}, \ : [], "error_message": "No error.", "launcher_nodes_computer_guid": {}, \
"launchable": false, "random_path" : "azertyuiop"}' "launchable": false, "random_path" : "azertyuiop"}'
def patch_isValidatedMaster(self, *args, **kw): def patch_isMasterTestnode(self, *args, **kw):
return (grade == 'master') return (grade == 'master')
test_self = self test_self = self
test_result_path_root = os.path.join(test_self._temp_dir,'test/results') test_result_path_root = os.path.join(test_self._temp_dir,'test/results')
...@@ -540,11 +540,11 @@ branch = foo ...@@ -540,11 +540,11 @@ branch = foo
original_getSlaposAccountKey = TaskDistributor.getSlaposAccountKey original_getSlaposAccountKey = TaskDistributor.getSlaposAccountKey
original_getSlaposAccountCertificate = TaskDistributor.getSlaposAccountCertificate original_getSlaposAccountCertificate = TaskDistributor.getSlaposAccountCertificate
original_generateConfiguration = TaskDistributor.generateConfiguration original_generateConfiguration = TaskDistributor.generateConfiguration
original_isValidatedMaster = TaskDistributor.isValidatedMaster original_isMasterTestnode = TaskDistributor.isMasterTestnode
TaskDistributor.getSlaposAccountKey = patch_getSlaposAccountKey TaskDistributor.getSlaposAccountKey = patch_getSlaposAccountKey
TaskDistributor.getSlaposAccountCertificate = patch_getSlaposAccountCertificate TaskDistributor.getSlaposAccountCertificate = patch_getSlaposAccountCertificate
TaskDistributor.generateConfiguration = patch_generateConfiguration TaskDistributor.generateConfiguration = patch_generateConfiguration
TaskDistributor.isValidatedMaster = patch_isValidatedMaster TaskDistributor.isMasterTestnode = patch_isMasterTestnode
original_startTestSuite = TaskDistributor.startTestSuite original_startTestSuite = TaskDistributor.startTestSuite
original_subscribeNode = TaskDistributor.subscribeNode original_subscribeNode = TaskDistributor.subscribeNode
original_getTestType = TaskDistributor.getTestType original_getTestType = TaskDistributor.getTestType
...@@ -576,7 +576,7 @@ branch = foo ...@@ -576,7 +576,7 @@ branch = foo
TaskDistributor.getSlaposAccountKey = original_getSlaposAccountKey TaskDistributor.getSlaposAccountKey = original_getSlaposAccountKey
TaskDistributor.getSlaposAccountCertificate = original_getSlaposAccountCertificate TaskDistributor.getSlaposAccountCertificate = original_getSlaposAccountCertificate
TaskDistributor.generateConfiguration = original_generateConfiguration TaskDistributor.generateConfiguration = original_generateConfiguration
TaskDistributor.isValidatedMaster = original_isValidatedMaster TaskDistributor.isMasterTestnode = original_isMasterTestnode
TaskDistributor.startTestSuite = original_startTestSuite TaskDistributor.startTestSuite = original_startTestSuite
TaskDistributionTool.createTestResult = original_createTestResult TaskDistributionTool.createTestResult = original_createTestResult
TaskDistributionTool.subscribeNode = original_subscribeNode TaskDistributionTool.subscribeNode = original_subscribeNode
...@@ -635,7 +635,7 @@ branch = foo ...@@ -635,7 +635,7 @@ branch = foo
return '{"configuration_list": [], "involved_nodes_computer_guid"\ return '{"configuration_list": [], "involved_nodes_computer_guid"\
: [], "error_message": "No error.", "launcher_nodes_computer_guid": {}, \ : [], "error_message": "No error.", "launcher_nodes_computer_guid": {}, \
"launchable": false, "random_path" : "azertyuiop"}' "launchable": false, "random_path" : "azertyuiop"}'
def patch_isValidatedMaster(self, *args, **kw): def patch_isMasterTestnode(self, *args, **kw):
return (grade == 'master') return (grade == 'master')
test_self = self test_self = self
test_result_path_root = os.path.join(test_self._temp_dir,'test/results') test_result_path_root = os.path.join(test_self._temp_dir,'test/results')
...@@ -686,11 +686,11 @@ branch = foo ...@@ -686,11 +686,11 @@ branch = foo
original_getSlaposAccountKey = TaskDistributor.getSlaposAccountKey original_getSlaposAccountKey = TaskDistributor.getSlaposAccountKey
original_getSlaposAccountCertificate = TaskDistributor.getSlaposAccountCertificate original_getSlaposAccountCertificate = TaskDistributor.getSlaposAccountCertificate
original_generateConfiguration = TaskDistributor.generateConfiguration original_generateConfiguration = TaskDistributor.generateConfiguration
original_isValidatedMaster = TaskDistributor.isValidatedMaster original_isMasterTestnode = TaskDistributor.isMasterTestnode
TaskDistributor.getSlaposAccountKey = patch_getSlaposAccountKey TaskDistributor.getSlaposAccountKey = patch_getSlaposAccountKey
TaskDistributor.getSlaposAccountCertificate = patch_getSlaposAccountCertificate TaskDistributor.getSlaposAccountCertificate = patch_getSlaposAccountCertificate
TaskDistributor.generateConfiguration = patch_generateConfiguration TaskDistributor.generateConfiguration = patch_generateConfiguration
TaskDistributor.isValidatedMaster = patch_isValidatedMaster TaskDistributor.isMasterTestnode = patch_isMasterTestnode
original_startTestSuite = TaskDistributor.startTestSuite original_startTestSuite = TaskDistributor.startTestSuite
original_subscribeNode = TaskDistributor.subscribeNode original_subscribeNode = TaskDistributor.subscribeNode
original_getTestType = TaskDistributor.getTestType original_getTestType = TaskDistributor.getTestType
...@@ -715,7 +715,7 @@ branch = foo ...@@ -715,7 +715,7 @@ branch = foo
TaskDistributor.getSlaposAccountKey = original_getSlaposAccountKey TaskDistributor.getSlaposAccountKey = original_getSlaposAccountKey
TaskDistributor.getSlaposAccountCertificate = original_getSlaposAccountCertificate TaskDistributor.getSlaposAccountCertificate = original_getSlaposAccountCertificate
TaskDistributor.generateConfiguration = original_generateConfiguration TaskDistributor.generateConfiguration = original_generateConfiguration
TaskDistributor.isValidatedMaster = original_isValidatedMaster TaskDistributor.isMasterTestnode = original_isMasterTestnode
TaskDistributor.startTestSuite = original_startTestSuite TaskDistributor.startTestSuite = original_startTestSuite
TaskDistributionTool.createTestResult = original_createTestResult TaskDistributionTool.createTestResult = original_createTestResult
TaskDistributionTool.subscribeNode = original_subscribeNode TaskDistributionTool.subscribeNode = original_subscribeNode
......
...@@ -469,11 +469,11 @@ class TaskDistributor(RPCRetry): ...@@ -469,11 +469,11 @@ class TaskDistributor(RPCRetry):
return self._retryRPC('generateConfiguration', (test_suite_title,)) return self._retryRPC('generateConfiguration', (test_suite_title,))
def isValidatedMaster(self, test_node_title): def isMasterTestnode(self, test_node_title):
""" """
Returns True or False if the testnode is the master Returns True or False if the testnode is the master
""" """
return self._retryRPC('isValidatedMaster', (test_node_title,)) return self._retryRPC('isMasterTestnode', (test_node_title,))
def getSlaposAccountKey(self): def getSlaposAccountKey(self):
""" """
......
...@@ -86,7 +86,7 @@ class ScalabilityTestRunner(): ...@@ -86,7 +86,7 @@ class ScalabilityTestRunner():
""" """
We will build slapos software needed by the testnode itself, We will build slapos software needed by the testnode itself,
""" """
if self.testnode.test_suite_portal.isValidatedMaster( if self.testnode.test_suite_portal.isMasterTestnode(
self.testnode.config['test_node_title']): self.testnode.config['test_node_title']):
pass pass
# software_path_list = [] # software_path_list = []
...@@ -143,7 +143,7 @@ class ScalabilityTestRunner(): ...@@ -143,7 +143,7 @@ class ScalabilityTestRunner():
interval_time = 30 interval_time = 30
start_time = time.time() start_time = time.time()
# Only master testnode must order software installation # Only master testnode must order software installation
if self.testnode.test_suite_portal.isValidatedMaster( if self.testnode.test_suite_portal.isMasterTestnode(
self.testnode.config['test_node_title']): self.testnode.config['test_node_title']):
# Get from ERP5 Master the configuration of the cluster for the test # Get from ERP5 Master the configuration of the cluster for the test
test_configuration = testnodeUtils.deunicodeData( test_configuration = testnodeUtils.deunicodeData(
......
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