Skip to content

Commit

Permalink
add a test for env file with expanded os env
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Mar 24, 2024
1 parent 3e407e6 commit 0ca203d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/spot/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,17 @@ func TestEnvVars(t *testing.T) {
key1: fileValue1
key2: fileValue2
key3: fileValue3
key4: "${ENV_VAR}"
key5: "${ENV_VAR_NOT_FOUND}"
key6: "$ENV_VAR"
`,
expectedVars: map[string]string{
"key1": "cliValue1",
"key2": "cliValue2",
"key3": "fileValue3",
"key4": "envValue",
"key5": "",
"key6": "envValue",
},
expectedError: false,
},
Expand Down

0 comments on commit 0ca203d

Please sign in to comment.