From eaa382e58ddb450ab046570704593b392d6d45bd Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Mon, 1 Feb 2021 07:33:41 -0500 Subject: [PATCH] js_test.go should leave behind actuals --- .gitignore | 1 + pkg/js/js_test.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 50e75a3a4..72056cc51 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ integrationTest/env.sh integrationTest/.env /integrationTest/zones/*.zone /integrationTest/config/*.yaml +/pkg/js/parse_tests/*.ACTUAL env.sh certs/ spfcache* diff --git a/pkg/js/js_test.go b/pkg/js/js_test.go index d25a7261f..1845d6e84 100644 --- a/pkg/js/js_test.go +++ b/pkg/js/js_test.go @@ -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: