From f83b624ea13400291740c8deff4a45c9a88c1448 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Wed, 19 Dec 2018 10:19:50 -0500 Subject: [PATCH] BUG: parse_tests: Fix (revert) earlier reformatting (#431) --- pkg/js/parse_tests/001-basic.json | 54 ++++++------ pkg/js/parse_tests/002-ttl.json | 24 +++--- pkg/js/parse_tests/003-meta.json | 38 ++++----- pkg/js/parse_tests/004-ips.json | 32 +++---- pkg/js/parse_tests/006-transforms.json | 28 +++---- .../parse_tests/007-importTransformTTL.json | 20 ++--- pkg/js/parse_tests/008-import.json | 16 ++-- pkg/js/parse_tests/009-reverse.json | 12 +-- pkg/js/parse_tests/010-alias.json | 16 ++-- pkg/js/parse_tests/011-cfRedirect.json | 20 ++--- pkg/js/parse_tests/012-duration.json | 32 +++---- pkg/js/parse_tests/013-mx.json | 16 ++-- pkg/js/parse_tests/014-caa.json | 36 ++++---- pkg/js/parse_tests/015-tlsa.json | 18 ++-- pkg/js/parse_tests/016-backslash.json | 16 ++-- pkg/js/parse_tests/017-txt.json | 28 +++---- pkg/js/parse_tests/018-dkim.json | 16 ++-- pkg/js/parse_tests/019-ignored-records.json | 14 ++-- pkg/js/parse_tests/019-r53-alias.json | 84 +++++++++---------- pkg/js/parse_tests/020-nameserver-ttl.json | 18 ++-- pkg/js/parse_tests/021-srv.json | 40 ++++----- 21 files changed, 289 insertions(+), 289 deletions(-) diff --git a/pkg/js/parse_tests/001-basic.json b/pkg/js/parse_tests/001-basic.json index 2c51187e4..173814f9d 100644 --- a/pkg/js/parse_tests/001-basic.json +++ b/pkg/js/parse_tests/001-basic.json @@ -1,30 +1,30 @@ { - "dns_providers": [ - { - "name": "Cloudflare", - "type": "CLOUDFLAREAPI" - } - ], - "domains": [ - { - "dnsProviders": { - "Cloudflare": -1 - }, - "name": "foo.com", - "records": [ + "registrars": [ { - "name": "@", - "target": "1.2.3.4", - "type": "A" + "name": "Third-Party", + "type": "NONE" } - ], - "registrar": "Third-Party" - } - ], - "registrars": [ - { - "name": "Third-Party", - "type": "NONE" - } - ] -} + ], + "dns_providers": [ + { + "name": "Cloudflare", + "type": "CLOUDFLAREAPI" + } + ], + "domains": [ + { + "name": "foo.com", + "registrar": "Third-Party", + "dnsProviders": { + "Cloudflare": -1 + }, + "records": [ + { + "type": "A", + "name": "@", + "target": "1.2.3.4" + } + ] + } + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/002-ttl.json b/pkg/js/parse_tests/002-ttl.json index 9345073c2..709055ba2 100644 --- a/pkg/js/parse_tests/002-ttl.json +++ b/pkg/js/parse_tests/002-ttl.json @@ -1,4 +1,10 @@ { + "registrars": [ + { + "name": "Third-Party", + "type": "NONE" + } + ], "dns_providers": [ { "name": "Cloudflare", @@ -7,25 +13,19 @@ ], "domains": [ { + "name": "foo.com", + "registrar": "Third-Party", "dnsProviders": { "Cloudflare": -1 }, - "name": "foo.com", "records": [ { + "type": "A", "name": "@", "target": "1.2.3.4", - "ttl": 42, - "type": "A" + "ttl": 42 } - ], - "registrar": "Third-Party" - } - ], - "registrars": [ - { - "name": "Third-Party", - "type": "NONE" + ] } ] -} +} \ No newline at end of file diff --git a/pkg/js/parse_tests/003-meta.json b/pkg/js/parse_tests/003-meta.json index 19d058f6a..3dde27cb9 100644 --- a/pkg/js/parse_tests/003-meta.json +++ b/pkg/js/parse_tests/003-meta.json @@ -1,26 +1,26 @@ { - "dns_providers": [], - "domains": [ - { - "dnsProviders": {}, - "name": "foo.com", - "records": [ - { - "meta": { - "cloudflare_proxy": "ON" - }, - "name": "@", - "target": "1.2.3.4", - "type": "A" - } - ], - "registrar": "Cloudflare" - } - ], "registrars": [ { "name": "Cloudflare", "type": "CLOUDFLAREAPI" } + ], + "dns_providers": [], + "domains": [ + { + "name": "foo.com", + "registrar": "Cloudflare", + "dnsProviders": {}, + "records": [ + { + "type": "A", + "name": "@", + "target": "1.2.3.4", + "meta": { + "cloudflare_proxy": "ON" + } + } + ] + } ] -} +} \ No newline at end of file diff --git a/pkg/js/parse_tests/004-ips.json b/pkg/js/parse_tests/004-ips.json index edfb91364..d61277dbb 100644 --- a/pkg/js/parse_tests/004-ips.json +++ b/pkg/js/parse_tests/004-ips.json @@ -1,4 +1,10 @@ { + "registrars": [ + { + "name": "Third-Party", + "type": "NONE" + } + ], "dns_providers": [ { "name": "Cloudflare", @@ -7,34 +13,28 @@ ], "domains": [ { + "name": "foo.com", + "registrar": "Third-Party", "dnsProviders": { "Cloudflare": 0 }, - "name": "foo.com", "records": [ { + "type": "A", "name": "@", - "target": "1.2.3.4", - "type": "A" + "target": "1.2.3.4" }, { + "type": "A", "name": "p1", - "target": "1.2.3.5", - "type": "A" + "target": "1.2.3.5" }, { + "type": "A", "name": "p255", - "target": "1.2.4.3", - "type": "A" + "target": "1.2.4.3" } - ], - "registrar": "Third-Party" - } - ], - "registrars": [ - { - "name": "Third-Party", - "type": "NONE" + ] } ] -} +} \ No newline at end of file diff --git a/pkg/js/parse_tests/006-transforms.json b/pkg/js/parse_tests/006-transforms.json index 324ef94d6..7d95d009e 100644 --- a/pkg/js/parse_tests/006-transforms.json +++ b/pkg/js/parse_tests/006-transforms.json @@ -1,4 +1,10 @@ { + "registrars": [ + { + "name": "Third-Party", + "type": "NONE" + } + ], "dns_providers": [ { "name": "Cloudflare", @@ -7,27 +13,21 @@ ], "domains": [ { + "name": "foo.com", + "registrar": "Third-Party", "dnsProviders": { "Cloudflare": -1 }, - "name": "foo.com", "records": [ { - "meta": { - "transform": "0.0.0.0 ~ 1.1.1.1 ~ 2.2.2.2 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ 3.3.3.3,4.4.4.4,5.5.5.5 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ ~ 3.3.3.3,4.4.4.4,5.5.5.5" - }, + "type": "A", "name": "@", "target": "1.2.3.4", - "type": "A" + "meta": { + "transform": "0.0.0.0 ~ 1.1.1.1 ~ 2.2.2.2 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ 3.3.3.3,4.4.4.4,5.5.5.5 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ ~ 3.3.3.3,4.4.4.4,5.5.5.5" + } } - ], - "registrar": "Third-Party" - } - ], - "registrars": [ - { - "name": "Third-Party", - "type": "NONE" + ] } ] -} +} \ No newline at end of file diff --git a/pkg/js/parse_tests/007-importTransformTTL.json b/pkg/js/parse_tests/007-importTransformTTL.json index 6023f00ce..fb04a3850 100644 --- a/pkg/js/parse_tests/007-importTransformTTL.json +++ b/pkg/js/parse_tests/007-importTransformTTL.json @@ -1,22 +1,22 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "reg", + "dnsProviders": {}, "records": [ { - "meta": { - "transform_table": "0.0.0.0 ~ 1.1.1.1 ~ 2.2.2.2 ~ " - }, + "type": "IMPORT_TRANSFORM", "name": "@", "target": "foo2.com", "ttl": 60, - "type": "IMPORT_TRANSFORM" + "meta": { + "transform_table": "0.0.0.0 ~ 1.1.1.1 ~ 2.2.2.2 ~ " + } } - ], - "registrar": "reg" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/008-import.json b/pkg/js/parse_tests/008-import.json index b1b4fb02f..60266965f 100644 --- a/pkg/js/parse_tests/008-import.json +++ b/pkg/js/parse_tests/008-import.json @@ -1,18 +1,18 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "A", "name": "@", - "target": "1.2.3.4", - "type": "A" + "target": "1.2.3.4" } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/009-reverse.json b/pkg/js/parse_tests/009-reverse.json index f1b895339..35ad23065 100644 --- a/pkg/js/parse_tests/009-reverse.json +++ b/pkg/js/parse_tests/009-reverse.json @@ -1,12 +1,12 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "2.1.in-addr.arpa", - "records": [], - "registrar": "none" + "registrar": "none", + "dnsProviders": {}, + "records": [] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/010-alias.json b/pkg/js/parse_tests/010-alias.json index c4985bfe0..ee21ba093 100644 --- a/pkg/js/parse_tests/010-alias.json +++ b/pkg/js/parse_tests/010-alias.json @@ -1,18 +1,18 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "ALIAS", "name": "@", - "target": "foo.com.", - "type": "ALIAS" + "target": "foo.com." } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/011-cfRedirect.json b/pkg/js/parse_tests/011-cfRedirect.json index b36005369..193c45077 100644 --- a/pkg/js/parse_tests/011-cfRedirect.json +++ b/pkg/js/parse_tests/011-cfRedirect.json @@ -1,23 +1,23 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "CF_REDIRECT", "name": "@", - "target": "test.foo.com,https://goo.com/$1", - "type": "CF_REDIRECT" + "target": "test.foo.com,https://goo.com/$1" }, { + "type": "CF_TEMP_REDIRECT", "name": "@", - "target": "test.foo.com,https://goo.com/$1", - "type": "CF_TEMP_REDIRECT" + "target": "test.foo.com,https://goo.com/$1" } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/012-duration.json b/pkg/js/parse_tests/012-duration.json index 84c10d940..a74ffc4e5 100644 --- a/pkg/js/parse_tests/012-duration.json +++ b/pkg/js/parse_tests/012-duration.json @@ -1,43 +1,43 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "A", "name": "@", "target": "1.2.3.4", - "ttl": 300, - "type": "A" + "ttl": 300 }, { + "type": "A", "name": "@", "target": "1.2.3.4", - "ttl": 300, - "type": "A" + "ttl": 300 }, { + "type": "A", "name": "@", "target": "1.2.3.4", - "ttl": 180, - "type": "A" + "ttl": 180 }, { + "type": "A", "name": "@", "target": "1.2.3.4", - "ttl": 10800, - "type": "A" + "ttl": 10800 }, { + "type": "A", "name": "@", "target": "1.2.3.4", - "ttl": 259200, - "type": "A" + "ttl": 259200 } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/013-mx.json b/pkg/js/parse_tests/013-mx.json index d1476069c..cfae88d92 100644 --- a/pkg/js/parse_tests/013-mx.json +++ b/pkg/js/parse_tests/013-mx.json @@ -1,19 +1,19 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { - "mxpreference": 15, + "type": "MX", "name": "@", "target": "foo.com.", - "type": "MX" + "mxpreference": 15 } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/014-caa.json b/pkg/js/parse_tests/014-caa.json index bc6bc125d..40800c1e4 100644 --- a/pkg/js/parse_tests/014-caa.json +++ b/pkg/js/parse_tests/014-caa.json @@ -1,45 +1,45 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { - "caatag": "issue", + "type": "CAA", "name": "@", "target": "letsencrypt.org", - "type": "CAA" + "caatag": "issue" }, { - "caatag": "issuewild", + "type": "CAA", "name": "@", "target": ";", - "type": "CAA" + "caatag": "issuewild" }, { - "caaflag": 128, - "caatag": "iodef", + "type": "CAA", "name": "@", "target": "mailto:test@example.com", - "type": "CAA" + "caatag": "iodef", + "caaflag": 128 }, { - "caatag": "iodef", + "type": "CAA", "name": "@", "target": "http://example.com", - "type": "CAA" + "caatag": "iodef" }, { - "caaflag": 128, - "caatag": "iodef", + "type": "CAA", "name": "@", "target": "https://example.com", - "type": "CAA" + "caatag": "iodef", + "caaflag": 128 } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/015-tlsa.json b/pkg/js/parse_tests/015-tlsa.json index 0306453af..197895869 100644 --- a/pkg/js/parse_tests/015-tlsa.json +++ b/pkg/js/parse_tests/015-tlsa.json @@ -1,21 +1,21 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "TLSA", "name": "_443._tcp", "target": "MDFiYTQ3MTljODBiNmZlOTExYjA5MWE3YzA1MTI0YjY0ZWVlY2U5NjRlMDljMDU4ZWY4Zjk4MDVkYWNhNTQ2YiAgLQo=", - "tlsamatchingtype": 1, - "tlsaselector": 1, "tlsausage": 3, - "type": "TLSA" + "tlsaselector": 1, + "tlsamatchingtype": 1 } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/016-backslash.json b/pkg/js/parse_tests/016-backslash.json index 82cc3f951..9f3a972b8 100644 --- a/pkg/js/parse_tests/016-backslash.json +++ b/pkg/js/parse_tests/016-backslash.json @@ -1,22 +1,22 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "TXT", "name": "_dmarc", "target": "v=DMARC1\\; p=reject\\; sp=reject\\; pct=100\\; rua=mailto:xx...@yyyy.com\\; ruf=mailto:xx...@yyyy.com\\; fo=1", "ttl": 300, "txtstrings": [ "v=DMARC1\\; p=reject\\; sp=reject\\; pct=100\\; rua=mailto:xx...@yyyy.com\\; ruf=mailto:xx...@yyyy.com\\; fo=1" - ], - "type": "TXT" + ] } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/017-txt.json b/pkg/js/parse_tests/017-txt.json index 70620f5e9..f8fbd7efa 100644 --- a/pkg/js/parse_tests/017-txt.json +++ b/pkg/js/parse_tests/017-txt.json @@ -1,48 +1,48 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "TXT", "name": "@", "target": "simple", "txtstrings": [ "simple" - ], - "type": "TXT" + ] }, { + "type": "TXT", "name": "@", "target": "one", "txtstrings": [ "one" - ], - "type": "TXT" + ] }, { + "type": "TXT", "name": "@", "target": "bonie", "txtstrings": [ "bonie", "clyde" - ], - "type": "TXT" + ] }, { + "type": "TXT", "name": "@", "target": "straw", "txtstrings": [ "straw", "wood", "brick" - ], - "type": "TXT" + ] } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/018-dkim.json b/pkg/js/parse_tests/018-dkim.json index c1bad95ed..9c5563c84 100644 --- a/pkg/js/parse_tests/018-dkim.json +++ b/pkg/js/parse_tests/018-dkim.json @@ -1,22 +1,22 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "TXT", "name": "dkimtest2", "target": "this string is 255 bytes long.hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnKZogtjOlHoeY8iZ5o5brlPOsj/a2Q9Bopu1kHxlxrdw7tZVL9FzUMngiIYGrl8dbP7Rvk7TLMoxHxVkRZPBtIpsKIab/gOUoPLQVYbrAmzyguHYBwAApi3H/pvjUsK8+XF0dKY17AR96lokAPqvfBaUb+DSx8zNw2hrYWYVqvCtnxHUGEUhT1bTlEZBptH3j", "txtstrings": [ "this string is 255 bytes long.hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnKZogtjOlHoeY8iZ5o5brlPOsj/a2Q9Bopu1kHxlxrdw7tZVL9FzUMngiIYGrl8dbP7Rvk7TLMoxHxVkRZPBtIpsKIab/gOUoPLQVYbrAmzyguHYBwAApi3H/pvjUsK8+XF0dKY17AR96lokAPqvfBaUb+DSx8zNw2hrYWYVqvCtnxHUGEUhT1bTlEZBptH3j", "this is the remainder. it is 156 bytes long.mOhl2JmbsFKy+RoMTwbkk0/meRvcEFWLHkr4MSgbnie6OpQvM4Y51+kO6DUVr3rwjrdVO9wpFt+n/hdQ92TNif17RMJtE5AGaQ6BN3yJQIDAQAB;" - ], - "type": "TXT" + ] } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/019-ignored-records.json b/pkg/js/parse_tests/019-ignored-records.json index 1ec504e20..a198a89b1 100644 --- a/pkg/js/parse_tests/019-ignored-records.json +++ b/pkg/js/parse_tests/019-ignored-records.json @@ -1,15 +1,15 @@ { + "registrars": [], "dns_providers": [], "domains": [ { + "name": "foo.com", + "registrar": "none", "dnsProviders": {}, + "records": [], "ignored_labels": [ "testignore" - ], - "name": "foo.com", - "records": [], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/019-r53-alias.json b/pkg/js/parse_tests/019-r53-alias.json index 17042784a..a2dee4070 100644 --- a/pkg/js/parse_tests/019-r53-alias.json +++ b/pkg/js/parse_tests/019-r53-alias.json @@ -1,111 +1,111 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "R53_ALIAS", "name": "mxtest", + "target": "foo.com.", "r53_alias": { "type": "MX" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "atest", + "target": "foo.com.", "r53_alias": { "type": "A" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "atest", + "target": "foo.com.", "r53_alias": { "type": "A", "zone_id": "Z2FTEDLFRTF" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "aaaatest", + "target": "foo.com.", "r53_alias": { "type": "AAAA" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "aaaatest", + "target": "foo.com.", "r53_alias": { "type": "AAAA", "zone_id": "ERERTFGFGF" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "cnametest", + "target": "foo.com.", "r53_alias": { "type": "CNAME" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "ptrtest", + "target": "foo.com.", "r53_alias": { "type": "PTR" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "txttest", + "target": "foo.com.", "r53_alias": { "type": "TXT" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "srvtest", + "target": "foo.com.", "r53_alias": { "type": "SRV" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "spftest", + "target": "foo.com.", "r53_alias": { "type": "SPF" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "caatest", + "target": "foo.com.", "r53_alias": { "type": "CAA" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } }, { + "type": "R53_ALIAS", "name": "naptrtest", + "target": "foo.com.", "r53_alias": { "type": "NAPTR" - }, - "target": "foo.com.", - "type": "R53_ALIAS" + } } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/020-nameserver-ttl.json b/pkg/js/parse_tests/020-nameserver-ttl.json index 9672e2cf4..d15a2919b 100644 --- a/pkg/js/parse_tests/020-nameserver-ttl.json +++ b/pkg/js/parse_tests/020-nameserver-ttl.json @@ -1,24 +1,24 @@ { + "registrars": [], "dns_providers": [], "domains": [ { + "name": "foo.com", + "registrar": "none", "dnsProviders": {}, "meta": { "ns_ttl": "86400" }, - "name": "foo.com", - "records": [], - "registrar": "none" + "records": [] }, { + "name": "bar.com", + "registrar": "none", "dnsProviders": {}, "meta": { "ns_ttl": "300" }, - "name": "bar.com", - "records": [], - "registrar": "none" + "records": [] } - ], - "registrars": [] -} + ] +} \ No newline at end of file diff --git a/pkg/js/parse_tests/021-srv.json b/pkg/js/parse_tests/021-srv.json index 4dce2e09a..e17006416 100644 --- a/pkg/js/parse_tests/021-srv.json +++ b/pkg/js/parse_tests/021-srv.json @@ -1,51 +1,51 @@ { + "registrars": [], "dns_providers": [], "domains": [ { - "dnsProviders": {}, "name": "foo.com", + "registrar": "none", + "dnsProviders": {}, "records": [ { + "type": "SRV", "name": "_ntp._udp", - "srvport": 123, + "target": "one.foo.com.", "srvpriority": 1, "srvweight": 100, - "target": "one.foo.com.", - "type": "SRV" + "srvport": 123 }, { + "type": "SRV", "name": "_ntp._udp", - "srvport": 123, + "target": "two", "srvpriority": 2, "srvweight": 100, - "target": "two", - "type": "SRV" + "srvport": 123 }, { + "type": "SRV", "name": "_ntp._udp", - "srvport": 123, + "target": "localhost", "srvpriority": 3, "srvweight": 100, - "target": "localhost", - "type": "SRV" + "srvport": 123 }, { + "type": "SRV", "name": "_ntp._udp", - "srvport": 123, + "target": "three.example.com.", "srvpriority": 4, "srvweight": 100, - "target": "three.example.com.", - "type": "SRV" + "srvport": 123 }, { + "type": "SRV", "name": "_ntp._udp", - "srvport": 1, "target": "zeros", - "type": "SRV" + "srvport": 1 } - ], - "registrar": "none" + ] } - ], - "registrars": [] -} + ] +} \ No newline at end of file