Skip to content

Commit 1a5ae4b

Browse files
authored
fix(test-terraform.sh): remove fragile, redundant file contents check (#671)
1 parent f21f395 commit 1a5ae4b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/test/test-terraform.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,9 @@ cp ${REPO_DIR}/build/testdata/bundles/terraform/porter.yaml .
2020
sed -i "s/porter-terraform:latest/${REGISTRY}\/porter-terraform:latest/g" porter.yaml
2121
sed -i "s/deislabs\/porter-terraform-bundle/${REGISTRY}\/porter-terraform-bundle/g" porter.yaml
2222

23-
porter_output=$(mktemp)
24-
2523
${PORTER_HOME}/porter build
2624

27-
${PORTER_HOME}/porter install --insecure --debug --param file_contents='foo!' 2>&1 | tee ${porter_output}
28-
29-
if ! cat ${porter_output} | grep -q 'content: "" => "foo!"'; then
30-
echo "ERROR: File contents not created properly"
31-
exit 1
32-
fi
25+
${PORTER_HOME}/porter install --insecure --debug --param file_contents='foo!'
3326

3427
echo "Verifying instance output(s) via 'porter instance outputs list' after install"
3528
list_outputs=$(${PORTER_HOME}/porter instance outputs list)

0 commit comments

Comments
 (0)