Ejemplo n.º 1
0
    def pre(self):
        self.group_name = self.make_uuid('group_name')
        self.group_desc = self.make_uuid('group_desc')

        self.group = ec2_conn.create_security_group(
            self.group_name,
            self.group_desc
        )

        groups = util.retry(
            lambda: ec2_conn.get_all_security_groups(
                groupnames=[self.group_name])
        )

        assert len(groups)
Ejemplo n.º 2
0
 def test_throw():
     ec2_conn.get_all_security_groups(groupnames=[self.group_name])