From 0f22ee3072b117796b0ddaab63a9a2185124a562 Mon Sep 17 00:00:00 2001 From: wangzhiguang Date: Wed, 22 Jun 2022 14:53:09 +0800 Subject: [PATCH] add delete multiple non_existent device_profile testcase add delete multiple non_existent device_profile testcase Change-Id: If6a586a473a9956b4cf48784ea5da2f2fab67f9f --- .../tests/api/test_device_profile_negative.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cyborg_tempest_plugin/tests/api/test_device_profile_negative.py b/cyborg_tempest_plugin/tests/api/test_device_profile_negative.py index 1001b7d..b5bc08b 100644 --- a/cyborg_tempest_plugin/tests/api/test_device_profile_negative.py +++ b/cyborg_tempest_plugin/tests/api/test_device_profile_negative.py @@ -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