From b30339487bec66933bd490d72110b0d571e5da38 Mon Sep 17 00:00:00 2001 From: Tamino Dauth Date: Fri, 26 Oct 2018 13:02:35 +0200 Subject: [PATCH] Add Bash script to run a complete suite while the REST service is running #1 --- scripts/delete-test-suite.sh | 2 ++ scripts/runcompleterestservicetest.sh | 52 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 scripts/delete-test-suite.sh create mode 100644 scripts/runcompleterestservicetest.sh diff --git a/scripts/delete-test-suite.sh b/scripts/delete-test-suite.sh new file mode 100644 index 0000000..0648c0f --- /dev/null +++ b/scripts/delete-test-suite.sh @@ -0,0 +1,2 @@ +#!/bin/bash +curl -H "Content-Type: application/json" -X DELETE http://localhost:8888/application/0/test-suite/0 \ No newline at end of file diff --git a/scripts/runcompleterestservicetest.sh b/scripts/runcompleterestservicetest.sh new file mode 100644 index 0000000..2f796d1 --- /dev/null +++ b/scripts/runcompleterestservicetest.sh @@ -0,0 +1,52 @@ +#!/bin/bash +echo "List applications, should be empty:" +bash applications.sh +echo "" +echo "Request application, should not be found:" +bash application.sh +echo "" +echo "Request test suites, should not be found:" +bash test-suites.sh +echo "" +echo "Request test suite, should not be found:" +bash test-suite.sh + +echo "" +echo "Create application, should work:" +bash create-application.sh +echo "" +echo "List applications, should contain one element:" +bash applications.sh +echo "" +echo "Request application, should be found and contain test suites:" +bash application.sh +echo "" +echo "Request test suites, should be found and empty:" +bash test-suites.sh +echo "" +echo "Request test suite, should not be found:" +bash test-suite.sh + +echo "" +echo "Create test suite, should work:" +bash create-test-suite.sh +echo "" +echo "Request test suites, should be found and contain one test suite:" +bash test-suites.sh +echo "" +echo "Request test suite, should be found:" +bash test-suite.sh + +echo "" +echo "Delete test suite, should work:" +bash delete-test-suite.sh +echo "" +echo "Request test suite, should not be found:" +bash test-suite.sh + +echo "" +echo "Delete application suite, should work:" +bash delete-application.sh +echo "" +echo "Request test suite, should not be found:" +bash application.sh \ No newline at end of file