You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by gi...@apache.org on 2013/11/15 06:45:49 UTC
git commit: updated refs/heads/master to 868e944
Updated Branches:
refs/heads/master bf22f6dfe -> 868e944bf
CLOUDSTACK-5166: Fixed test script issue related to egress
rules
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/868e944b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/868e944b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/868e944b
Branch: refs/heads/master
Commit: 868e944bf1194f0e54f08b02677b2ada66bfc9cf
Parents: bf22f6d
Author: Ashutosh K <as...@clogeny.com>
Authored: Fri Nov 15 11:14:44 2013 +0530
Committer: Girish Shilamkar <gi...@clogeny.com>
Committed: Fri Nov 15 11:14:44 2013 +0530
----------------------------------------------------------------------
test/integration/component/test_egress_rules.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/868e944b/test/integration/component/test_egress_rules.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_egress_rules.py b/test/integration/component/test_egress_rules.py
index 34995ff..983b7ce 100644
--- a/test/integration/component/test_egress_rules.py
+++ b/test/integration/component/test_egress_rules.py
@@ -523,7 +523,7 @@ class TestDefaultGroupEgress(cloudstackTestCase):
# CIDR: 0.0.0.0/0
# 5. deployVirtualMachine into this security group (ssh)
# 6. deployed VM should be Running, ssh should be allowed into the VM,
- # ping out to google.com from the VM should fail,
+ # ping out to google.com from the VM should be successful,
# ssh from within VM to mgt server should pass
security_group = SecurityGroup.create(
@@ -617,7 +617,7 @@ class TestDefaultGroupEgress(cloudstackTestCase):
result = str(res)
self.assertEqual(
- result.count("0 received"),
+ result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
@@ -625,8 +625,8 @@ class TestDefaultGroupEgress(cloudstackTestCase):
try:
self.debug("SSHing into management server from VM")
res = ssh.execute("ssh %s@%s" % (
- self.services["mgmt_server"]["username"],
- self.services["mgmt_server"]["ipaddress"]
+ self.apiclient.connection.user,
+ self.apiclient.connection.mgtSvr
))
self.debug("SSH result: %s" % str(res))
@@ -725,7 +725,7 @@ class TestDefaultGroupEgressAfterDeploy(cloudstackTestCase):
# 5. authorizeSecurityGroupEgress to allow ssh access only out to
# CIDR: 0.0.0.0/0
# 6. deployed VM should be Running, ssh should be allowed into the VM,
- # ping out to google.com from the VM should fail
+ # ping out to google.com from the VM should be successful
security_group = SecurityGroup.create(
self.apiclient,
@@ -819,7 +819,7 @@ class TestDefaultGroupEgressAfterDeploy(cloudstackTestCase):
result = str(res)
self.assertEqual(
- result.count("0 received"),
+ result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)