js_test.go should leave behind actuals

This commit is contained in:
Tom Limoncelli 2021-02-01 07:33:41 -05:00
parent 2d5a09f217
commit eaa382e58d
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@ integrationTest/env.sh
integrationTest/.env
/integrationTest/zones/*.zone
/integrationTest/config/*.yaml
/pkg/js/parse_tests/*.ACTUAL
env.sh
certs/
spfcache*

View file

@ -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: