mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-3841: Fixed test case issue. The exception raised earlier was valid behaviour, added missing assertRaiss statement
Signed-off-by: Prasanna Santhanam <tsp@apache.org> (cherry picked from commit 67c96d419d08f5a2702eee0aa64958e486f74703)
This commit is contained in:
parent
1b398aa3fc
commit
3a3145507d
@ -1111,7 +1111,8 @@ class TestDeleteSecurityGroup(cloudstackTestCase):
|
||||
self.debug("Deploying VM in account: %s" % self.account.name)
|
||||
|
||||
# Deleting Security group should raise exception
|
||||
security_group.delete(self.apiclient)
|
||||
with self.assertRaises(Exception):
|
||||
security_group.delete(self.apiclient)
|
||||
|
||||
#sleep to ensure that Security group is deleted properly
|
||||
time.sleep(self.services["sleep"])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user