From c4255236dd2dd4366f4b3eea817fc1171ea6c1df Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 31 Jul 2023 14:50:54 -0600 Subject: [PATCH] Test deploy create command --- tests/deploy/run-deploy-test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/deploy/run-deploy-test.sh b/tests/deploy/run-deploy-test.sh index 9054384f..f8677a56 100755 --- a/tests/deploy/run-deploy-test.sh +++ b/tests/deploy/run-deploy-test.sh @@ -91,6 +91,19 @@ if [ ! -d "$test_deployment_dir" ]; then echo "deploy create test: FAILED" exit 1 fi +# Check the file writted by the create command in the stack now exists +if [ ! -f "$test_deployment_dir/create-file" ]; then + echo "deploy create test: create output file not present" + echo "deploy create test: FAILED" + exit 1 +fi +# And has the right content +create_file_content=$(<$test_deployment_dir/create-file) +if [ ! "$create_file_content" == "create-command-output-data" ]; then + echo "deploy create test: create output file contents not correct" + echo "deploy create test: FAILED" + exit 1 +fi # Try to start the deployment $TEST_TARGET_SO deployment --dir $test_deployment_dir start # Stop and clean up