Merge "Add failed test name for service sahara test"

This commit is contained in:
Jenkins 2014-06-06 19:05:00 +00:00 committed by Gerrit Code Review
commit 9c03a341ee
2 changed files with 7 additions and 3 deletions

View File

@ -522,13 +522,15 @@ class FuelWebClient(object):
@logwrap
def run_single_ostf_test(self, cluster_id,
test_sets=None, test_name=None, should_fail=0,
retries=None, timeout=15 * 60):
retries=None, timeout=15 * 60,
failed_test_name=None):
self.client.ostf_run_singe_test(cluster_id, test_sets, test_name)
if retries:
return self.return_ostf_results(cluster_id, timeout=timeout)
else:
self.assert_ostf_run(cluster_id, should_fail=should_fail,
timeout=timeout)
timeout=timeout,
failed_test_name=failed_test_name)
@logwrap
def task_wait(self, task, timeout, interval=5):

View File

@ -98,6 +98,8 @@ class SavannaSimple(TestBasic):
data['password'],
data['tenant'])
failed_test_name = ['Create volume and attach it to instance']
test_classes = ['fuel_health.tests.sanity.test_sanity_savanna.'
'SanitySavannaTests.test_sanity_savanna']
self.fuel_web.run_ostf(
@ -121,7 +123,7 @@ class SavannaSimple(TestBasic):
test_name=('fuel_health.tests.platform_tests.'
'test_platform_savanna.PlatformSavannaTests.'
'test_platform_savanna'), should_fail=1,
timeout=60 * 200)
timeout=60 * 200, failed_test_name=failed_test_name)
self.env.make_snapshot("deploy_sahara_simple")