mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
"get zones" js/djs format should generate double quotes, not single (#2526)
This commit is contained in:
@ -16,7 +16,7 @@ func TestR53Test_1(t *testing.T) {
|
||||
rec.SetTarget("bar")
|
||||
rec.R53Alias = make(map[string]string)
|
||||
rec.R53Alias["type"] = "A"
|
||||
w := `R53_ALIAS('foo', 'A', 'bar')`
|
||||
w := `R53_ALIAS("foo", "A", "bar")`
|
||||
if g := makeR53alias(&rec, 0); g != w {
|
||||
t.Errorf("makeR53alias failure: got `%s` want `%s`", g, w)
|
||||
}
|
||||
@ -31,7 +31,7 @@ func TestR53Test_1ttl(t *testing.T) {
|
||||
rec.SetTarget("bar")
|
||||
rec.R53Alias = make(map[string]string)
|
||||
rec.R53Alias["type"] = "A"
|
||||
w := `R53_ALIAS('foo', 'A', 'bar', TTL(321))`
|
||||
w := `R53_ALIAS("foo", "A", "bar", TTL(321))`
|
||||
if g := makeR53alias(&rec, 321); g != w {
|
||||
t.Errorf("makeR53alias failure: got `%s` want `%s`", g, w)
|
||||
}
|
||||
@ -47,7 +47,7 @@ func TestR53Test_2(t *testing.T) {
|
||||
rec.R53Alias = make(map[string]string)
|
||||
rec.R53Alias["type"] = "A"
|
||||
rec.R53Alias["zone_id"] = "blarg"
|
||||
w := `R53_ALIAS('foo', 'A', 'bar', R53_ZONE('blarg'))`
|
||||
w := `R53_ALIAS("foo", "A", "bar", R53_ZONE("blarg"))`
|
||||
if g := makeR53alias(&rec, 0); g != w {
|
||||
t.Errorf("makeR53alias failure: got `%s` want `%s`", g, w)
|
||||
}
|
||||
@ -63,7 +63,7 @@ func TestR53Test_2ttl(t *testing.T) {
|
||||
rec.R53Alias = make(map[string]string)
|
||||
rec.R53Alias["type"] = "A"
|
||||
rec.R53Alias["zone_id"] = "blarg"
|
||||
w := `R53_ALIAS('foo', 'A', 'bar', R53_ZONE('blarg'), TTL(123))`
|
||||
w := `R53_ALIAS("foo", "A", "bar", R53_ZONE("blarg"), TTL(123))`
|
||||
if g := makeR53alias(&rec, 123); g != w {
|
||||
t.Errorf("makeR53alias failure: got `%s` want `%s`", g, w)
|
||||
}
|
||||
|
Reference in New Issue
Block a user