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:
parent
c4d263c3f2
commit
f31bedca94
3
roles/validate-tempest/files/tempestmail/tests/fixtures/console_fail.log
vendored
Normal file
3
roles/validate-tempest/files/tempestmail/tests/fixtures/console_fail.log
vendored
Normal 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
|
||||
|
2
roles/validate-tempest/files/tempestmail/tests/fixtures/console_ok.log
vendored
Normal file
2
roles/validate-tempest/files/tempestmail/tests/fixtures/console_ok.log
vendored
Normal 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
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user