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(test-terraform.sh): remove fragile, redundant file contents check #671

Merged
merged 1 commit into from
Sep 30, 2019
Merged
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
fix(test-terraform.sh): remove fragile, redundant file contents check
vdice committed Sep 30, 2019
commit 95411e7a03ef50a89c80e7ec2675ad5dc3fc2532
9 changes: 1 addition & 8 deletions scripts/test/test-terraform.sh
Original file line number Diff line number Diff line change
@@ -20,16 +20,9 @@ cp ${REPO_DIR}/build/testdata/bundles/terraform/porter.yaml .
sed -i "s/porter-terraform:latest/${REGISTRY}\/porter-terraform:latest/g" porter.yaml
sed -i "s/deislabs\/porter-terraform-bundle/${REGISTRY}\/porter-terraform-bundle/g" porter.yaml

porter_output=$(mktemp)

${PORTER_HOME}/porter build

${PORTER_HOME}/porter install --insecure --debug --param file_contents='foo!' 2>&1 | tee ${porter_output}

if ! cat ${porter_output} | grep -q 'content: "" => "foo!"'; then
echo "ERROR: File contents not created properly"
exit 1
fi
${PORTER_HOME}/porter install --insecure --debug --param file_contents='foo!'

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