Commit 215f95d7 authored by Rafael Monnerat's avatar Rafael Monnerat

[TestDistributor] Include computer_guid parameter on startTestSuite

  This parameter has been passed always by the erp5.util implementation. Introduce
  this parameter makes the API compatible for future implementation with support
  to scalability tests even if the current code is not ready yet.
parent 83d20591
...@@ -69,7 +69,7 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor): ...@@ -69,7 +69,7 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor):
test_node.setAggregateList(test_suite_list) test_node.setAggregateList(test_suite_list)
security.declarePublic("startTestSuite") security.declarePublic("startTestSuite")
def startTestSuite(self,title): def startTestSuite(self,title, computer_guid=None):
""" """
give the list of test suite to start. We will take all test suites give the list of test suite to start. We will take all test suites
associated to the testnode. Then we add the test node title to the associated to the testnode. Then we add the test node title to the
...@@ -81,4 +81,4 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor): ...@@ -81,4 +81,4 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor):
self).startTestSuite(title, batch_mode=1) self).startTestSuite(title, batch_mode=1)
for config in config_list: for config in config_list:
config["test_suite_title"] = config["test_suite_title"] + "-%s" % title config["test_suite_title"] = config["test_suite_title"] + "-%s" % title
return json.dumps(config_list) return json.dumps(config_list)
\ No newline at end of file
...@@ -258,7 +258,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject): ...@@ -258,7 +258,7 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
return test_suite_list return test_suite_list
security.declarePublic("startTestSuite") security.declarePublic("startTestSuite")
def startTestSuite(self,title, batch_mode=0): def startTestSuite(self,title, computer_guid=None, batch_mode=0):
""" """
startTestSuite doc startTestSuite doc
""" """
......
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