Skip to content

Commit

Permalink
Add regression test for multienv output with comma in values
Browse files Browse the repository at this point in the history
See runatlantis#2765 for an issue report.

Signed-off-by: Leandro López (inkel) <[email protected]>
  • Loading branch information
inkel committed Jun 26, 2023
1 parent 80c49b8 commit 7d06bdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/core/runtime/multienv_step_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ func TestMultiEnvStepRunner_Run(t *testing.T) {
ExpErr: "Invalid environment variable definition: TF_VAR_REPODEFINEDVARIABLE_NO_VALUE",
Version: "v1.2.3",
},
{
Command: `echo 'TF_VAR1_MULTILINE="foo\\nbar",TF_VAR2_VALUEWITHCOMMA="one,two",TF_VAR3_CONTROL=true'`,
ExpOut: "Dynamic environment variables added:\nTF_VAR1_MULTILINE\nTF_VAR2_VALUEWITHCOMMA\nTF_VAR3_CONTROL\n",
Version: "v1.2.3",
},
}
RegisterMockTestingT(t)
tfClient := mocks.NewMockClient()
Expand Down

0 comments on commit 7d06bdd

Please sign in to comment.