mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
js_test.go should leave behind actuals
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,6 +12,7 @@ integrationTest/env.sh
|
|||||||
integrationTest/.env
|
integrationTest/.env
|
||||||
/integrationTest/zones/*.zone
|
/integrationTest/zones/*.zone
|
||||||
/integrationTest/config/*.yaml
|
/integrationTest/config/*.yaml
|
||||||
|
/pkg/js/parse_tests/*.ACTUAL
|
||||||
env.sh
|
env.sh
|
||||||
certs/
|
certs/
|
||||||
spfcache*
|
spfcache*
|
||||||
|
@@ -47,6 +47,9 @@ func TestParsedFiles(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
// for _, dc := range conf.Domains {
|
||||||
|
// normalize.UpdateNameSplitHorizon(dc)
|
||||||
|
// }
|
||||||
|
|
||||||
// Initialize any DNS providers mentioned.
|
// Initialize any DNS providers mentioned.
|
||||||
for _, dProv := range conf.DNSProviders {
|
for _, dProv := range conf.DNSProviders {
|
||||||
@@ -77,6 +80,8 @@ func TestParsedFiles(t *testing.T) {
|
|||||||
es := string(expectedJSON)
|
es := string(expectedJSON)
|
||||||
as := string(actualJSON)
|
as := string(actualJSON)
|
||||||
_, _ = es, as
|
_, _ = es, as
|
||||||
|
// When debugging, leave behind the actual result:
|
||||||
|
//ioutil.WriteFile(expectedFile+".ACTUAL", []byte(es), 0644)
|
||||||
testifyrequire.JSONEqf(t, es, as, "EXPECTING %q = \n```\n%s\n```", expectedFile, as)
|
testifyrequire.JSONEqf(t, es, as, "EXPECTING %q = \n```\n%s\n```", expectedFile, as)
|
||||||
|
|
||||||
// For each domain, if there is a zone file, test against it:
|
// For each domain, if there is a zone file, test against it:
|
||||||
|
Reference in New Issue
Block a user