add delete multiple non_existent device_profile testcase

add delete multiple non_existent device_profile testcase

Change-Id: If6a586a473a9956b4cf48784ea5da2f2fab67f9f
This commit is contained in:
wangzhiguang 2022-06-22 14:53:09 +08:00
parent d76222b77b
commit 0f22ee3072

View File

@ -45,6 +45,15 @@ class DeviceProfileNegativeTest(base.BaseAPITest):
self.os_admin.cyborg_client.delete_device_profile_by_uuid,
non_existent_id)
@test.attr(type=['negative', 'gate'])
def test_delete_multiple_non_existent_device_profile(self):
# delete multiple non_existent device_profile
self.assertRaises(
lib_exc.NotFound,
self.os_admin.cyborg_client.
delete_multiple_device_profile_by_names,
'fake_device_name1', 'fake_device_name2')
@test.attr(type=['negative', 'gate'])
def test_create_device_profile_server_fault(self):
# create device profile using an existing dp uuid