diff options
author | Sylvain Bauza <sbauza@redhat.com> | 2021-07-22 11:23:52 +0200 |
---|---|---|
committer | Sean Mooney <work@seanmooney.info> | 2021-08-27 14:52:01 +0100 |
commit | 9be996c696e91e82d11d81db72ffb4cc151598b6 (patch) | |
tree | 2eeb705ce6ca5bbe543a7372a52312ea61951cf8 /nova/tests/unit/conf | |
parent | 2b847085c8aa19a8fee9bed471e2b609482f67e7 (diff) | |
download | nova-9be996c696e91e82d11d81db72ffb4cc151598b6.tar.gz |
Expose the mdev class
It's the last functional change for the series,
we will expose this new option after using it.
doc changes will be addressed in a follow up patch.
Change-Id: Ibccbb93352f93dba7e15e1f77be9ee0fc466fee0
Implements: blueprint generic-mdevs
Diffstat (limited to 'nova/tests/unit/conf')
-rw-r--r-- | nova/tests/unit/conf/test_devices.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/tests/unit/conf/test_devices.py b/nova/tests/unit/conf/test_devices.py index 24536d9bad..5b8f023dde 100644 --- a/nova/tests/unit/conf/test_devices.py +++ b/nova/tests/unit/conf/test_devices.py @@ -32,3 +32,5 @@ class DevicesConfTestCase(test.NoDBTestCase): self.assertIn('mdev_nvidia-12', CONF) self.assertEqual([], getattr(CONF, 'mdev_nvidia-11').device_addresses) self.assertEqual([], getattr(CONF, 'mdev_nvidia-12').device_addresses) + self.assertEqual('VGPU', getattr(CONF, 'mdev_nvidia-11').mdev_class) + self.assertEqual('VGPU', getattr(CONF, 'mdev_nvidia-12').mdev_class) |