Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanoogian committed Nov 20, 2024
1 parent cc2ca62 commit a8de76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/secrets-substitute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ output="$("$DOPPLER_BINARY" secrets substitute /dev/stdin --use-env override <<<
[[ "$output" == "e2e 123 foo" ]] || error "ERROR: secrets substitute output was incorrect (env:override)"

output="$("$DOPPLER_BINARY" secrets substitute /dev/stdin --use-env only <<<'{{.DOPPLER_CONFIG}} {{.MY_ENV_VAR}} {{.TEST}}')"
[[ "$output" == "<no value> 123 foo" ]] || error "ERROR: secrets substitute output was incorrect (env:only)"
[[ "$output" == "<no value> 123 foo" ]] || error "ERROR: secrets substitute output was incorrect (env:only) '$output'"

output="$(DOPPLER_TOKEN="invalid" "$DOPPLER_BINARY" secrets substitute /dev/stdin --use-env only <<<'{{.DOPPLER_CONFIG}} {{.MY_ENV_VAR}} {{.TEST}}')"
[[ "$output" == "<no value> 123 foo" ]] || error "ERROR: secrets substitute output was incorrect (env:only token:cleared)"
Expand Down

0 comments on commit a8de76f

Please sign in to comment.