Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Add Bash script to run a complete suite while the REST service is run…
Browse files Browse the repository at this point in the history
…ning #1
  • Loading branch information
tdauth committed Oct 26, 2018
1 parent 6b310ab commit b303394
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/delete-test-suite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
curl -H "Content-Type: application/json" -X DELETE http://localhost:8888/application/0/test-suite/0
52 changes: 52 additions & 0 deletions scripts/runcompleterestservicetest.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b303394

Please sign in to comment.