From 9d26c610f8e6ee852cbbb355085d124f470d341e Mon Sep 17 00:00:00 2001 From: Tobias Lohr Date: Tue, 7 Apr 2020 20:59:04 +0200 Subject: [PATCH] Fix failed CLI tests Change execution order of instance:export commands during CLI testing --- bin/test-cli.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/test-cli.sh b/bin/test-cli.sh index 094f3990..23d9fdd2 100755 --- a/bin/test-cli.sh +++ b/bin/test-cli.sh @@ -885,8 +885,8 @@ fi ###### Testing ´sfcc-ci instance:export´ ############################################################################### -echo "Testing command ´sfcc-ci instance:export´:" -node ./cli.js instance:export --instance $ARG_HOST --data '{"global_data":{"meta_data":true}}' --file test_export_async.zip +echo "Testing command ´sfcc-ci instance:export´ with --sync flag:" +node ./cli.js instance:export --instance $ARG_HOST --data '{"global_data":{"meta_data":true}}' --file test_export_sync.zip --sync if [ $? -eq 0 ]; then echo -e "\t> OK" else @@ -894,17 +894,17 @@ else exit 1 fi -echo "Testing command ´sfcc-ci instance:export´ with --sync flag:" -node ./cli.js instance:export --instance $ARG_HOST --data '{"global_data":{"meta_data":true}}' --file test_export_sync.zip --sync -if [ $? -eq 0 ]; then +echo "Testing command ´sfcc-ci instance:export´ with --sync and --failfast flag (expected to fail):" +node ./cli.js instance:export --instance $ARG_HOST --data '{"global_data":{"meta_data":true},"does_not_exis":true}}' --file test_export_sync.zip --sync --failfast +if [ $? -eq 1 ]; then echo -e "\t> OK" else echo -e "\t> FAILED" exit 1 fi -echo "Testing command ´sfcc-ci instance:export´ with --failfast flag (expected to fail):" -node ./cli.js instance:export --instance $ARG_HOST --data '{"global_data":{"meta_data":true}}' --file test_export_sync.zip --failfast +echo "Testing command ´sfcc-ci instance:export´ without --sync flag:" +node ./cli.js instance:export --instance $ARG_HOST --data '{"global_data":{"meta_data":true}}' --file test_export_async.zip if [ $? -eq 1 ]; then echo -e "\t> OK" else @@ -997,4 +997,4 @@ if [ $? -eq 1 ]; then else echo -e "\t> FAILED" exit 1 -fi \ No newline at end of file +fi