~oubiwann/txaws/461139-image-attributes

« back to all changes in this revision

Viewing changes to txaws/ec2/tests/test_client.py

  • Committer: Thomas Hervé
  • Date: 2009-10-22 17:14:38 UTC
  • Revision ID: thomas@canonical.com-20091022171438-zbbdu9d3ujervafo
Fix a logic problem in describe_security_groups, where the allowed IPs
were reported for allowed groups (with ranges from 0-65535 for all protocols).
We now filter those permissions and only report the group [r=oubiwann]

Show diffs side-by-side

added added

removed removed

Lines of Context:
387
387
            self.assertEquals(
388
388
                [(ip.ip_protocol, ip.from_port, ip.to_port, ip.cidr_ip)
389
389
                 for ip in security_group.allowed_ips],
390
 
                [("tcp", 80, 80, "0.0.0.0/0"), ("udp", 81, 81, "0.0.0.0/16")])
 
390
                [("tcp", 80, 80, "0.0.0.0/0")])
391
391
 
392
392
        creds = AWSCredentials("foo", "bar")
393
393
        ec2 = client.EC2Client(creds, query_factory=StubQuery)