dnscontrol/pkg/js/parse_tests
Brice Figureau 7b8d608019 ROUTE53: Support Route53's ALIAS record type (#239) (#301)
* Stable comparison of metadata (#239)

Iterating over a map in Go never produces twice the same ordering.
Thus when comparing two metadata map with more than one key, the
`differ` is always finding differences.

To properly compare records metadata, we need to iterate the maps
in a deterministic way.

Signed-off-by: Brice Figureau <brice@daysofwonder.com>

* Support for Route53 ALIAS record type (#239)

Route53 ALIAS doesn't behave like a regular ALIAS, and is much more
limited as its target can only be some specific AWS resources or
another record in the same zone.

According to #239, this change adds a new directive R53_ALIAS which
implements this specific alias. This record type can only be used
with the Route53 provider.

This directive usage looks like this:
```js
D("example.com", REGISTRAR, DnsProvider("ROUTE53"),
R53_ALIAS("foo1", "A", "bar") // record in same zone
R53_ALIAS("foo2", "A",
  "blahblah.elasticloadbalancing.us-west-1.amazonaws.com",
   R53_ZONE('Z368ELLRRE2KJ0')) // ELB in us-west-1

```

Unfortunately, Route53 requires indicating the hosted zone id
where the target is defined (those are listed in AWS documentation,
see the R53_ALIAS documentation for links).
2018-01-16 05:53:12 -05:00
..
001-basic.js
001-basic.json
002-ttl.js
002-ttl.json
003-meta.js
003-meta.json
004-ips.js
004-ips.json
006-transforms.js
006-transforms.json tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
007-importTransformTTL.js Refactor addRecord to recordBuilder (#157) (#163) 2017-08-11 14:48:43 -04:00
007-importTransformTTL.json Refactor addRecord to recordBuilder (#157) (#163) 2017-08-11 14:48:43 -04:00
008-import.js
008-import.json tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
009-reverse.js
009-reverse.json tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
010-alias.js
010-alias.json tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
011-cfRedirect.js
011-cfRedirect.json tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
012-duration.js
012-duration.json tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
013-mx.js tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
013-mx.json tests that would have caught tag renaming bug. js tests now don't marahsl expected through the go object. Instead minify both sides to compare 2017-07-20 17:41:15 -04:00
014-caa.js Add CAA support (#161) 2017-07-25 14:59:40 -04:00
014-caa.json Refactor addRecord to recordBuilder (#157) (#163) 2017-08-11 14:48:43 -04:00
015-tlsa.js Add TLSA record support (#165) (#203) 2017-09-15 09:03:29 -04:00
015-tlsa.json Add TLSA record support (#165) (#203) 2017-09-15 09:03:29 -04:00
016-backslash.js add some backslash parse tests 2017-09-15 10:29:28 -04:00
016-backslash.json Add support for TXT records with multiple strings (BIND, ROUTE53) (#293) 2018-01-04 19:19:35 -05:00
017-txt.js Add support for TXT records with multiple strings (BIND, ROUTE53) (#293) 2018-01-04 19:19:35 -05:00
017-txt.json Add support for TXT records with multiple strings (BIND, ROUTE53) (#293) 2018-01-04 19:19:35 -05:00
018-dkim.js Add syntax for very long DKIM strings (#295) 2018-01-04 21:17:08 -05:00
018-dkim.json Add syntax for very long DKIM strings (#295) 2018-01-04 21:17:08 -05:00
019-ignored-records.js Add IGNORE(label) which ignores label at the provider (#183) (#300) 2018-01-15 15:39:29 -05:00
019-ignored-records.json Add IGNORE(label) which ignores label at the provider (#183) (#300) 2018-01-15 15:39:29 -05:00
019-r53-alias.js ROUTE53: Support Route53's ALIAS record type (#239) (#301) 2018-01-16 05:53:12 -05:00
019-r53-alias.json ROUTE53: Support Route53's ALIAS record type (#239) (#301) 2018-01-16 05:53:12 -05:00
import.js