-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
get_3rd_parties_versions
& update print_usage
- Loading branch information
Showing
4 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bats | ||
|
||
setup() { | ||
load 'test_helper/common-setup' | ||
_common_setup | ||
|
||
unset DASEL_VER | ||
unset ENVSUBST_VER | ||
unset RSYNC_PROTOCOL_VER | ||
unset RSYNC_VER | ||
unset YQ_VER | ||
} | ||
|
||
@test "get_3rd_parties_versions" { | ||
# MOCK | ||
dasel() { echo 'lorem ipsum 42'; } | ||
envsubst() { echo 'lorem ipsum 42'; } | ||
rsync() { echo 'lorem ipsum foo bar 42'; } | ||
yq() { echo 'lorem ipsum 42'; } | ||
|
||
# WHEN | ||
get_3rd_parties_versions | ||
|
||
# THEN | ||
assert_equal $? 0 | ||
assert_equal "${DASEL_VER:?}" '42' | ||
assert_equal "${ENVSUBST_VER:?}" '42' | ||
assert_equal "${RSYNC_PROTOCOL_VER:?}" '42' | ||
assert_equal "${RSYNC_VER:?}" 'foo' | ||
assert_equal "${YQ_VER:?}" '42' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters