From: Aki Tuomi Date: Sat, 20 Feb 2016 14:31:10 +0000 (+0200) Subject: test that API accepts wildcard name X-Git-Tag: auth-4.0.0-alpha2~30^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3407%2Fhead;p=thirdparty%2Fpdns.git test that API accepts wildcard name --- diff --git a/regression-tests.api/test_Zones.py b/regression-tests.api/test_Zones.py index 9415ac136c..fc42e0a68c 100644 --- a/regression-tests.api/test_Zones.py +++ b/regression-tests.api/test_Zones.py @@ -109,6 +109,22 @@ class AuthZones(ApiTestCase, AuthZonesHelperMixin): # check our record has appeared self.assertEquals([r for r in data['records'] if r['type'] == records[0]['type']], records) + def test_create_zone_with_wildcard_records(self): + name = unique_zone_name() + records = [ + { + "name": "*."+name, + "type": "A", + "ttl": 3600, + "content": "4.3.2.1", + "disabled": False + } + ] + payload, data = self.create_zone(name=name, records=records) + # check our record has appeared + self.assertEquals([r for r in data['records'] if r['type'] == records[0]['type']], records) + + def test_create_zone_with_comments(self): name = unique_zone_name() comments = [