mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-10 09:12:47 +08:00
js_test.go should leave behind actuals
This commit is contained in:
parent
2d5a09f217
commit
eaa382e58d
2 changed files with 6 additions and 0 deletions
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:
|
||||||
|
|
Loading…
Reference in a new issue