mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Include the exception from urllib in wget test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
d31fe92169
commit
eb5099a2a2
@ -339,14 +339,14 @@ class TestVPCNetworkLBRules(cloudstackTestCase):
|
|||||||
try:
|
try:
|
||||||
urllib.urlretrieve("http://%s/test.html" % public_ip.ipaddress.ipaddress, filename="test.html")
|
urllib.urlretrieve("http://%s/test.html" % public_ip.ipaddress.ipaddress, filename="test.html")
|
||||||
if not testnegative:
|
if not testnegative:
|
||||||
self.debug("Successesfull to wget from VM=%s http server on public_ip=%s" % (vm.name, public_ip.ipaddress.ipaddress))
|
self.debug("Successful to wget from VM=%s http server on public_ip=%s" % (vm.name, public_ip.ipaddress.ipaddress))
|
||||||
else:
|
else:
|
||||||
self.fail("Successesfull to wget from VM=%s http server on public_ip=%s" % (vm.name, public_ip.ipaddress.ipaddress))
|
self.fail("Successful to wget from VM=%s http server on public_ip=%s" % (vm.name, public_ip.ipaddress.ipaddress))
|
||||||
except:
|
except Exception, e:
|
||||||
if not testnegative:
|
if not testnegative:
|
||||||
self.fail("Failed to wget from VM=%s http server on public_ip=%s" % (vm.name, public_ip.ipaddress.ipaddress))
|
self.fail("Failed to wget from VM=%s http server on public_ip=%s because of %s" % (vm.name, public_ip.ipaddress.ipaddress, e))
|
||||||
else:
|
else:
|
||||||
self.debug("Failed to wget from VM=%s http server on public_ip=%s" % (vm.name, public_ip.ipaddress.ipaddress))
|
self.debug("Failed to wget from VM=%s http server on public_ip=%s because of %s" % (vm.name, public_ip.ipaddress.ipaddress, e))
|
||||||
|
|
||||||
def create_StaticNatRule_For_VM(self, vm, public_ip, network):
|
def create_StaticNatRule_For_VM(self, vm, public_ip, network):
|
||||||
self.debug("Enabling static NAT for IP: %s" %
|
self.debug("Enabling static NAT for IP: %s" %
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user