Fix unittest in tempest sendmail tool

This patch adds the missing fixtures files and fix the
test_get_console test.

Change-Id: Iaa457da7072bca7bcf9f45958126ade8b3904b91
Closes-Bug: 1739419
Closes-Bug: 1739420
This commit is contained in:
Arx Cruz 2018-01-02 10:21:14 +01:00 committed by Emilien Macchi
parent c4d263c3f2
commit f31bedca94
3 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,3 @@
2017-01-18 08:51:03.877973 | {0} tempest.api.object_storage.test_container_quotas.ContainerQuotasTest.test_upload_valid_object [0.263364s] ... FAILED
2017-01-18 08:51:46.676254 | {1} tempest.api.orchestration.stacks.test_soft_conf.TestSoftwareConfig.test_get_deployment_metadata [0.899338s] ... FAILED

View File

@ -0,0 +1,2 @@
2017-01-18 08:47:46.883811 | {3} tempest.api.compute.flavors.test_flavors.FlavorsV2TestJSON.test_get_flavor [0.576186s] ... ok
2017-01-18 08:47:47.016820 | {3} tempest.api.compute.flavors.test_flavors.FlavorsV2TestJSON.test_list_flavors [0.132801s] ... ok

View File

@ -199,8 +199,7 @@ class TestTempestMailCmd(unittest.TestCase):
console, date, log_path = tmc.get_console()
self.assertEquals(console, self.console_ok)
self.assertEquals(log_path, 'Not available yet. '
'Check https://logs.openstack.org')
self.assertEquals(log_path, None)
tmc.parse_arguments(['-c', 'tests/fixtures/config.yaml', '--job',
'periodic-tripleo-ci-centos-7-ovb-nonha-tempest-'
@ -241,7 +240,7 @@ class TestTempestMailCmd(unittest.TestCase):
self.assertEquals(data['date'], None)
self.assertEquals(data['run'], True)
self.assertEquals(data['link'], 'http://logs.openstack.org')
self.assertEquals(len(data['ok']), 99)
self.assertEquals(len(data['ok']), 2)
self.assertEquals(data.get('failed'), None)
self.assertEquals(data.get('covered'), None)
self.assertEquals(data.get('new'), None)