Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update install_and_use test for latest version installation #50

Merged
merged 4 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/45.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
fix: update latest opentofu version in tests
```
2 changes: 1 addition & 1 deletion test/test_install_and_use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ tests__kv=(
"$(tofuenv list-remote | grep 'beta' | head -n 1),latest:beta"
"$(tofuenv list-remote | grep 'rc' | head -n 1),latest:rc"
"$(tofuenv list-remote | grep '^1\.6\.' | head -n 1),latest:^1.6."
'1.6.0,latest:^1\.6'
'1.6.1,latest:^1\.6'
'1.6.0-alpha5'
'1.6.0-rc1,v1.6.0-rc1'
);
Expand Down
8 changes: 4 additions & 4 deletions test/test_use_latestallowed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ echo "terraform {
(
tofuenv install latest-allowed;
tofuenv use latest-allowed;
check_active_version 1.6.0;
check_active_version 1.6.1;
) || error_and_proceed 'Latest allowed version does not match';

cleanup || log 'error' 'Cleanup failed?!';
Expand Down Expand Up @@ -92,7 +92,7 @@ echo "terraform {
(
tofuenv install latest-allowed;
tofuenv use latest-allowed;
check_active_version 1.6.0;
check_active_version 1.6.1;
) || error_and_proceed 'Latest allowed incomplete-version does not match';

cleanup || log 'error' 'Cleanup failed?!';
Expand All @@ -107,7 +107,7 @@ echo 'latest-allowed' > .opentofu-version;

(
TOFUENV_AUTO_INSTALL=true tofu version;
check_active_version 1.6.0;
check_active_version 1.6.1;
) || error_and_proceed 'Latest allowed auto-installed version does not match';

cleanup || log 'error' 'Cleanup failed?!';
Expand All @@ -123,7 +123,7 @@ echo 'latest-allowed' > chdir-dir/.opentofu-version

(
TOFUENV_AUTO_INSTALL=true tofu -chdir=chdir-dir version;
check_active_version 1.6.0 chdir-dir;
check_active_version 1.6.1 chdir-dir;
) || error_and_proceed 'Latest allowed version from -chdir does not match';

cleanup || log 'error' 'Cleanup failed?!';
Expand Down