From 8bf59b53933f5c287caf5ad44cc5147caeb03d65 Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Tue, 2 Jun 2015 12:39:11 +0530 Subject: [PATCH] CLOUDSTACK-8521: Improving logging in test case - test_egress_fw_rules.py Signed-off-by: Gaurav Aradhye This closes #345 --- test/integration/component/test_egress_fw_rules.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/integration/component/test_egress_fw_rules.py b/test/integration/component/test_egress_fw_rules.py index 4082981f73c..f3624211973 100755 --- a/test/integration/component/test_egress_fw_rules.py +++ b/test/integration/component/test_egress_fw_rules.py @@ -217,8 +217,7 @@ class TestEgressFWRules(cloudstackTestCase): self.debug("Deploying instance in the account: %s" % self.account.name) project = None - try: - self.virtual_machine = VirtualMachine.create(self.apiclient, + self.virtual_machine = VirtualMachine.create(self.apiclient, self.services["virtual_machine"], accountid=self.account.name, domainid=self.domain.id, @@ -226,8 +225,6 @@ class TestEgressFWRules(cloudstackTestCase): mode=self.zone.networktype if pfrule else 'basic', networkids=[str(self.network.id)], projectid=project.id if project else None) - except Exception as e: - self.fail("Virtual machine deployment failed with exception: %s" % e) self.debug("Deployed instance %s in account: %s" % (self.virtual_machine.id,self.account.name)) # Checking if VM is running or not, in case it is deployed in error state, test case fails