From 3f6c62188044e47e45fe5f5310bb547469b403d6 Mon Sep 17 00:00:00 2001 From: rallytime Date: Wed, 8 Aug 2018 09:14:10 -0400 Subject: [PATCH] Update expected return value in boto test The expected return from moto has changed from `-1` to `None` in the latest version of moto (1.3.4). This PR updates the test to be in line with the return from moto. --- tests/unit/modules/test_boto_secgroup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/modules/test_boto_secgroup.py b/tests/unit/modules/test_boto_secgroup.py index 71df77fda312..a59f830a5221 100644 --- a/tests/unit/modules/test_boto_secgroup.py +++ b/tests/unit/modules/test_boto_secgroup.py @@ -210,7 +210,7 @@ def test_get_config_single_rule_group_name(self): from_port = 22 to_port = 22 cidr_ip = u'0.0.0.0/0' - rules_egress = [{'to_port': -1, 'from_port': -1, 'ip_protocol': u'-1', 'cidr_ip': u'0.0.0.0/0'}] + rules_egress = [{'to_port': None, 'from_port': None, 'ip_protocol': u'-1', 'cidr_ip': u'0.0.0.0/0'}] conn = boto.ec2.connect_to_region(region, **boto_conn_parameters) group = conn.create_security_group(name=group_name, description=group_name)