Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kvendingoldo committed Dec 28, 2023
1 parent 97dde9c commit a0d06ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions test/test_install_and_use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ if [[ "$(uname -s)" != Darwin* ]]; then
);

tests__kv+=(
'0.8.8,latest:^0.8'
'0.7.13,0.7.13'
'1.6.0-rc1,latest:^1.6'
);
else
log 'warn' "We're Darwin! Skipping legacy tests.";
Expand Down
2 changes: 1 addition & 1 deletion test/test_use_latestallowed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cleanup || log 'error' 'Cleanup failed?!';
log 'info' '### Install latest-allowed normal version (#.#.#)';

echo "terraform {
required_version = \"~> 1.1.0\"
required_version = \"~> 1.6.0-rc1\"
}" > latest_allowed.tf;

(
Expand Down
8 changes: 4 additions & 4 deletions test/test_use_minrequired.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ cleanup || log 'error' 'Cleanup failed?!';

log 'info' '### Install min-required normal version (#.#.#)';

minv='1.6.0';
minv='1.6.0-rc1';

echo "terraform {
required_version = \">=${minv}\"
Expand All @@ -72,7 +72,7 @@ cleanup || log 'error' 'Cleanup failed?!';

log 'info' '### Install min-required tagged version (#.#.#-tag#)'

minv='1.5.0-rc1'
minv='1.6.0-rc1'

echo "terraform {
required_version = \">=${minv}\"
Expand Down Expand Up @@ -106,7 +106,7 @@ cleanup || log 'error' 'Cleanup failed?!';

log 'info' '### Install min-required with TOFUENV_AUTO_INSTALL';

minv='1.2.0';
minv='1.6.0-rc1';

echo "terraform {
required_version = \">=${minv}\"
Expand All @@ -123,7 +123,7 @@ cleanup || log 'error' 'Cleanup failed?!';

log 'info' '### Install min-required with TOFUENV_AUTO_INSTALL & -chdir';

minv='1.1.0';
minv='1.6.0-rc1';

mkdir -p chdir-dir
echo "terraform {
Expand Down

0 comments on commit a0d06ce

Please sign in to comment.