Remove test_unsupported_default_store
Config option 'default_store' in group 'glance_store' only allows value in [file, filesystem, http, https, swift, swift+http, swift+https, swift+config, rbd, sheepdog, cinder, vsphere] due to the parameter choices, oslo.config will ensure that, other value will lead ValueError. So don't need test this case. Related-Bug: #1517839 Change-Id: I3459a8e9f07ed9464073133931fadc77f8186602
This commit is contained in:
parent
54d9f448dd
commit
e1155a0a46
|
@ -68,12 +68,6 @@ class TestGlanceApiCmd(test_utils.BaseTestCase):
|
|||
self.config(group='glance_store', default_store='file')
|
||||
glance.cmd.api.main()
|
||||
|
||||
def test_unsupported_default_store(self):
|
||||
self.stubs.UnsetAll()
|
||||
self.config(group='glance_store', default_store='shouldnotexist')
|
||||
exit = self.assertRaises(SystemExit, glance.cmd.api.main)
|
||||
self.assertEqual(1, exit.code)
|
||||
|
||||
def test_worker_creation_failure(self):
|
||||
failure = exc.WorkerCreationFailure(reason='test')
|
||||
self.stubs.Set(glance.common.wsgi.Server, 'start',
|
||||
|
|
Loading…
Reference in New Issue