delete device profile name is null
delete device profile by name and name is null Change-Id: I32587ae01e612aa2dc1a4c7b85af40684c265c03
This commit is contained in:
parent
9f095b87ad
commit
e1f61cb1f6
|
@ -54,6 +54,15 @@ class DeviceProfileNegativeTest(base.BaseAPITest):
|
|||
delete_multiple_device_profile_by_names,
|
||||
'fake_device_name1', 'fake_device_name2')
|
||||
|
||||
@test.attr(type=['negative', 'gate'])
|
||||
def test_delete_device_profile_name_null(self):
|
||||
# delete the device_profile name is null
|
||||
name = ""
|
||||
self.assertRaises(
|
||||
lib_exc.BadRequest,
|
||||
self.os_admin.cyborg_client.delete_device_profile,
|
||||
name)
|
||||
|
||||
@test.attr(type=['negative', 'gate'])
|
||||
def test_create_device_profile_server_fault(self):
|
||||
# create device profile using an existing dp uuid
|
||||
|
|
Loading…
Reference in New Issue