Merge "create ARQ with non-exist device profile"

This commit is contained in:
Zuul 2022-07-14 02:05:28 +00:00 committed by Gerrit Code Review
commit c0271b53bd

View File

@ -53,3 +53,12 @@ class AcceleratorRequestNegativeTest(base.BaseAPITest):
lib_exc.NotFound,
self.os_admin.cyborg_client.create_accelerator_request,
dp_mame)
@test.attr(type=['negative', 'gate'])
def test_create_accelerator_request_device_profile_name_non_exist(self):
# create the accelerator request with device profile name non_exist
dp_mame = {"device_profile_name": "fake_dp"}
self.assertRaises(
lib_exc.NotFound,
self.os_admin.cyborg_client.create_accelerator_request,
dp_mame)