tests/callback: ensure missing conf causes errors

This commit is contained in:
3hhh 2020-07-19 09:06:23 +02:00
parent 287a4a0429
commit fdceb064fe
No known key found for this signature in database
GPG Key ID: EB03A691DB2F0833

View File

@ -388,3 +388,9 @@ class TC_92_CallbackPool(LoggingCallbackBase, qubes.tests.storage_lvm.ThinPoolBa
#missing bdriver args
with self.assertRaises(TypeError):
cb = qubes.storage.callback.CallbackPool(name='some-name', conf_id='testing-fail-missing-bdriver-args')
class TC_93_CallbackPool(qubes.tests.QubesTestCase):
def test_001_missing_conf(self):
''' A missing config file must cause errors. '''
with self.assertRaises(FileNotFoundError):
cb = qubes.storage.callback.CallbackPool(name='some-name', conf_id='nonexisting-id')