mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 15:12:57 +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/zones/*.zone
|
||||
/integrationTest/config/*.yaml
|
||||
/pkg/js/parse_tests/*.ACTUAL
|
||||
env.sh
|
||||
certs/
|
||||
spfcache*
|
||||
|
|
|
@ -47,6 +47,9 @@ func TestParsedFiles(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// for _, dc := range conf.Domains {
|
||||
// normalize.UpdateNameSplitHorizon(dc)
|
||||
// }
|
||||
|
||||
// Initialize any DNS providers mentioned.
|
||||
for _, dProv := range conf.DNSProviders {
|
||||
|
@ -77,6 +80,8 @@ func TestParsedFiles(t *testing.T) {
|
|||
es := string(expectedJSON)
|
||||
as := string(actualJSON)
|
||||
_, _ = 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)
|
||||
|
||||
// For each domain, if there is a zone file, test against it:
|
||||
|
|
Loading…
Reference in a new issue