Skip to content

Commit 959fa15

Browse files
committed
Update tests following prereq check change
1 parent 817667e commit 959fa15

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/exit_code_if_docker_missing_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test_exit_code_if_docker_missing() {
55
# terraform-repl should exit with exit code 1
66
output=$(terraform-repl -docker-container-backend)
77
exitcode=$?
8-
assertEquals "docker is not installed" "$output"
8+
assertContains "docker is not installed" "$output"
99
assertEquals 1 "$exitcode"
1010
}
1111

test/exit_code_if_hcl2json_missing_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test_exit_code_if_hcl2json_missing() {
44
# If hcl2json is missing, terraform-repl should exit with exit code 1
55
output=$(terraform-repl)
66
exitcode=$?
7-
assertEquals "hcl2json is not installed" "$output"
7+
assertContains "hcl2json is not installed" "$output"
88
assertEquals 1 "$exitcode"
99
}
1010

test/exit_code_if_jq_missing_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test_exit_code_if_jq_missing() {
44
# If jq is missing, terraform-repl should exit with exit code 1
55
output=$(terraform-repl)
66
exitcode=$?
7-
assertEquals "jq is not installed" "$output"
7+
assertContains "jq is not installed" "$output"
88
assertEquals 1 "$exitcode"
99
}
1010

test/exit_code_if_tf_missing_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test_exit_code_if_tf_missing() {
44
# If terraform is not installed, terraform-repl should exit with exit code 1
55
output=$(terraform-repl)
66
exitcode=$?
7-
assertEquals "terraform is not installed" "$output"
7+
assertContains "terraform is not installed" "$output"
88
assertEquals 1 "$exitcode"
99
}
1010

0 commit comments

Comments
 (0)