diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index dc2bf58a..a2a12a0e 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -1084,7 +1084,10 @@ class FakeNeutronClient(object): def create_subnet(self, data): subnet = setup_dict(data["subnet"], required=["network_id", "cidr", "ip_version"], - defaults={"name": generate_name("subnet_")}) + defaults={ + "name": generate_name("subnet_"), + "dns_nameservers": ["8.8.8.8", "8.8.4.4"] + }) if subnet["network_id"] not in self.__networks: raise neutron_exceptions.NeutronClientException @@ -1092,7 +1095,6 @@ class FakeNeutronClient(object): subnet.update({"id": subnet_id, "enable_dhcp": True, "tenant_id": self.__tenant_id, - "dns_nameservers": [], "ipv6_ra_mode": None, "allocation_pools": [], "gateway_ip": re.sub("./.*$", "1", subnet["cidr"]),