Merge pull request #864 from cloudskiff/feat/emptyResultsGoldenfile

Avoid the need of golden files for empty results in remote testing
main
Raphaël 2021-07-21 18:36:56 +02:00 committed by GitHub
commit 134f8dce18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
142 changed files with 20 additions and 93 deletions

View File

@ -140,7 +140,7 @@ func TestTerraformStateReader_AWS_Resources(t *testing.T) {
}
got, err := r.Resources()
resGoldenName := "result.golden.json"
resGoldenName := goldenfile.ResultsFilename
if shouldUpdate {
unm, err := json.Marshal(got)
if err != nil {
@ -224,7 +224,7 @@ func TestTerraformStateReader_Github_Resources(t *testing.T) {
}
got, err := r.Resources()
resGoldenName := "result.golden.json"
resGoldenName := goldenfile.ResultsFilename
if shouldUpdate {
unm, err := json.Marshal(got)
if err != nil {

Some files were not shown because too many files have changed in this diff Show More