From: Andrew Plunk Date: Wed, 1 May 2013 16:02:11 +0000 (-0500) Subject: Enhance testcase for failed resource deletion X-Git-Tag: 2014.1~662^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e082629400c0bec63925c162e93826ef3649578b;p=openstack-build%2Fheat-build.git Enhance testcase for failed resource deletion Verified that the test_access_key_no_user testcase was valid for bug/1155824 and made a small enhancement to verify the final resource state. Change-Id: I63c6d1b37166b24cedd18bf6cae3d0aae0b18fa6 Implements: failed resource deletion testcase Fixes: bug #1156375 --- diff --git a/heat/tests/test_user.py b/heat/tests/test_user.py index 4656da75..b9bee092 100644 --- a/heat/tests/test_user.py +++ b/heat/tests/test_user.py @@ -325,6 +325,7 @@ class AccessKeyTest(UserPolicyTestCase): resource.state) self.assertEqual(None, resource.delete()) + self.assertEqual(user.AccessKey.DELETE_COMPLETE, resource.state) self.m.VerifyAll()