create the accelerator request with special characters

create the accelerator request with special characters

Change-Id: I04df834d56fc29a9cc1c15e292fbfbbe858368e5
This commit is contained in:
wangzhiguang 2022-10-11 17:48:40 +08:00
parent d011e419ab
commit d602ec90be
1 changed files with 9 additions and 0 deletions

View File

@ -62,3 +62,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_with_special_characters(self):
# create the accelerator request with special characters
dp_mame = {"device_profile_name": "!@#$%^&*()=-[]"}
self.assertRaises(
lib_exc.NotFound,
self.os_admin.cyborg_client.create_accelerator_request,
dp_mame)