Skip to content

Commit

Permalink
version bump, test with verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
danenania committed Mar 1, 2019
1 parent b354c2e commit a64c834
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions shell/shell_test/shell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ func TestSource(t *testing.T) {
validRes3 := shell.Source(VALID_ENVKEY, true, fetch.FetchOptions{false, "", "envkey-source", version.Version, false, 2.0, 1, 0.1}, false, true)
assert.Equal(t, "TEST='it'\nTEST_2='works!'\nTEST_INJECTION=''\"'\"'$(uname)'\nTEST_SINGLE_QUOTES='this'\"'\"' is ok'\nTEST_SPACES='it does work!'\nTEST_STRANGE_CHARS='with quotes ` '\"'\"' \\\" bäh'\n", validRes3)

// Test --verbose flag
assert.NotPanics(t, func() {
shell.Source(VALID_ENVKEY, true, fetch.FetchOptions{false, "", "envkey-source", version.Version, true, 2.0, 1, 0.1}, false, false)
})

// Test invalid
invalidRes := shell.Source(INVALID_ENVKEY, true, fetch.FetchOptions{false, "", "envkey-source", version.Version, false, 2.0, 1, 0.1}, false, false)
assert.Equal(t, "echo 'error: ENVKEY invalid'; false", invalidRes)
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.6
1.2.7

0 comments on commit a64c834

Please sign in to comment.