Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
'Error generating params' error when using JSON array in Git files ge…
Browse files Browse the repository at this point in the history
…nerator file
  • Loading branch information
jgwest committed Mar 1, 2021
1 parent c87e0c3 commit 74a0b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/generators/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func TestGitGenerateParamsFromFiles(t *testing.T) {
"cluster-config/staging/config.json": fmt.Errorf("staging config file get content error"),
},
expected: []map[string]string{},
expectedError: fmt.Errorf("Unable to process file 'cluster-config/staging/config.json': staging config file get content error"),
expectedError: fmt.Errorf("unable to process file 'cluster-config/staging/config.json': staging config file get content error"),
},
{
name: "test invalid JSON file returns error",
Expand All @@ -250,7 +250,7 @@ func TestGitGenerateParamsFromFiles(t *testing.T) {
repoPathsError: nil,
repoFileContentsErrors: map[string]error{},
expected: []map[string]string{},
expectedError: fmt.Errorf("Unable to process file 'cluster-config/production/config.json': Unable to parse JSON file: invalid character 'i' looking for beginning of value"),
expectedError: fmt.Errorf("unable to process file 'cluster-config/production/config.json': unable to parse JSON file: invalid character 'i' looking for beginning of value"),
},
{
name: "test JSON array",
Expand Down

0 comments on commit 74a0b5f

Please sign in to comment.