Skip to content

Commit 6f60a1a

Browse files
committed
test fix : remove terraform versions prior to 0.11.9
1 parent 5db1cd2 commit 6f60a1a

File tree

5 files changed

+17
-19
lines changed

5 files changed

+17
-19
lines changed

test/test_install_and_use.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ tests__kv=(
105105
"$(tfenv list-remote | grep 'rc' | head -n 1),latest:rc"
106106
"$(tfenv list-remote | grep '^0\.11\.' | head -n 1),latest:^0.11."
107107
'0.11.15-oci,0.11.15-oci'
108-
'0.8.8,latest:^0.8'
109-
'0.7.13,0.7.13'
108+
'0.11.14,latest:^0.11'
109+
'0.11.9,0.11.9'
110110
'0.14.6,v0.14.6'
111111
);
112112

test/test_list.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ declare -a errors=();
5353
log 'info' '### List local versions';
5454
cleanup || log 'error' "Cleanup failed?!";
5555

56-
for v in 0.7.2 0.7.13 0.9.1 0.9.2 v0.9.11 0.14.6; do
56+
for v in 0.11.9 0.11.11 v0.11.13 0.14.6; do
5757
log 'info' "## Installing version ${v} to construct list";
5858
tfenv install "${v}" \
5959
&& log 'debug' "Install of version ${v} succeeded" \
@@ -71,11 +71,9 @@ log 'info' '## Comparing "tfenv list" with default set';
7171
result="$(tfenv list)";
7272
expected="$(cat << EOS
7373
* 0.14.6 (set by $(tfenv version-file))
74-
0.9.11
75-
0.9.2
76-
0.9.1
77-
0.7.13
78-
0.7.2
74+
0.11.13
75+
0.11.11
76+
0.11.9
7977
EOS
8078
)";
8179

test/test_symlink.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ ln -s "${PWD}"/bin/* "${TFENV_BIN_DIR}";
6060

6161
cleanup || log 'error' 'Cleanup failed?!';
6262

63-
log 'info' '## Installing 0.8.2';
64-
${TFENV_BIN_DIR}/tfenv install 0.8.2 || error_and_proceed 'Install failed';
63+
log 'info' '## Installing 0.11.14';
64+
${TFENV_BIN_DIR}/tfenv install 0.11.14 || error_and_proceed 'Install failed';
6565

66-
log 'info' '## Using 0.8.2';
67-
${TFENV_BIN_DIR}/tfenv use 0.8.2 || error_and_proceed 'Use failed';
66+
log 'info' '## Using 0.11.14';
67+
${TFENV_BIN_DIR}/tfenv use 0.11.14 || error_and_proceed 'Use failed';
6868

69-
log 'info' '## Check-Version for 0.8.2';
70-
check_active_version 0.8.2 || error_and_proceed 'Version check failed';
69+
log 'info' '## Check-Version for 0.11.14';
70+
check_active_version 0.11.14 || error_and_proceed 'Version check failed';
7171

7272
if [ "${#errors[@]}" -gt 0 ]; then
7373
log 'warn' '===== The following symlink tests failed =====';

test/test_uninstall.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ log 'info' '### Test Suite: Uninstall Local Versions';
6363
cleanup || log 'error' 'Cleanup failed?!';
6464

6565
tests__keywords=(
66-
'0.9.1'
66+
'0.11.10'
6767
'0.11.15-oci'
6868
'latest'
69-
'latest:^0.8'
69+
'latest:^0.11'
7070
'v0.14.6'
7171
);
7272

7373
tests__versions=(
74-
'0.9.1'
74+
'0.11.10'
7575
'0.11.15-oci'
7676
"$(tfenv list-remote | head -n1)"
77-
"$(tfenv list-remote | grep -e "^0.8" | head -n1)"
77+
"$(tfenv list-remote | grep -e "^0.11" | head -n1)"
7878
'0.14.6'
7979
);
8080

test/test_use_minrequired.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cleanup || log 'error' 'Cleanup failed?!';
5555

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

58-
minv='0.8.0';
58+
minv='0.11.9';
5959

6060
echo "terraform {
6161
required_version = \">=${minv}\"

0 commit comments

Comments
 (0)