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

Commit b303394

Browse files
committed
Add Bash script to run a complete suite while the REST service is running #1
1 parent 6b310ab commit b303394

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

scripts/delete-test-suite.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
curl -H "Content-Type: application/json" -X DELETE http://localhost:8888/application/0/test-suite/0

scripts/runcompleterestservicetest.sh

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#!/bin/bash
2+
echo "List applications, should be empty:"
3+
bash applications.sh
4+
echo ""
5+
echo "Request application, should not be found:"
6+
bash application.sh
7+
echo ""
8+
echo "Request test suites, should not be found:"
9+
bash test-suites.sh
10+
echo ""
11+
echo "Request test suite, should not be found:"
12+
bash test-suite.sh
13+
14+
echo ""
15+
echo "Create application, should work:"
16+
bash create-application.sh
17+
echo ""
18+
echo "List applications, should contain one element:"
19+
bash applications.sh
20+
echo ""
21+
echo "Request application, should be found and contain test suites:"
22+
bash application.sh
23+
echo ""
24+
echo "Request test suites, should be found and empty:"
25+
bash test-suites.sh
26+
echo ""
27+
echo "Request test suite, should not be found:"
28+
bash test-suite.sh
29+
30+
echo ""
31+
echo "Create test suite, should work:"
32+
bash create-test-suite.sh
33+
echo ""
34+
echo "Request test suites, should be found and contain one test suite:"
35+
bash test-suites.sh
36+
echo ""
37+
echo "Request test suite, should be found:"
38+
bash test-suite.sh
39+
40+
echo ""
41+
echo "Delete test suite, should work:"
42+
bash delete-test-suite.sh
43+
echo ""
44+
echo "Request test suite, should not be found:"
45+
bash test-suite.sh
46+
47+
echo ""
48+
echo "Delete application suite, should work:"
49+
bash delete-application.sh
50+
echo ""
51+
echo "Request test suite, should not be found:"
52+
bash application.sh

0 commit comments

Comments
 (0)