Merge "create the accelerator request with special characters"

This commit is contained in:
Zuul 2022-11-25 01:47:38 +00:00 committed by Gerrit Code Review
commit 6ca035585f
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)