예제 #1
0
 def test_share_type_extra_specs_not_found(self):
     # verify response code for exception.ShareTypeExtraSpecsNotFound
     share_type_id = "fake_share_type_id"
     extra_specs_key = "fake_extra_specs_key"
     e = exception.ShareTypeExtraSpecsNotFound(
         share_type_id=share_type_id, extra_specs_key=extra_specs_key)
     self.assertEqual(404, e.code)
     self.assertIn(share_type_id, e.msg)
     self.assertIn(extra_specs_key, e.msg)
예제 #2
0
def delete_share_type_extra_specs_not_found(context, share_type_id, key):
    raise exception.ShareTypeExtraSpecsNotFound("Not Found")