-
Notifications
You must be signed in to change notification settings - Fork 0
/
testWS.sh
executable file
·61 lines (61 loc) · 1.41 KB
/
testWS.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
echo " "
echo ">>> Test run starting <<<"
echo " "
echo " "
echo "-----------------"
echo "Get list of tasks"
echo "-----------------"
echo " "
curl -i http://0.0.0.0:5000/tasks
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Get task 1"
echo "-----------------"
curl -i http://0.0.0.0:5000/tasks/1
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Get task 2"
echo "-----------------"
curl -i http://0.0.0.0:5000/tasks/2
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Add task 3"
echo "-----------------"
curl -i -H "Content-Type: application/json" -X POST -d '{"title":"Read a book", "description":"Read Harry Potter and the Philosphers Stone"}' http://0.0.0.0:5000/tasks
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Add task 4"
echo "-----------------"
curl -i -H "Content-Type: application/json" -X POST -d '{"title":"TV", "description":"Watch some Red Dwarf to chill out", "done":true}' http://0.0.0.0:5000/tasks
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Delete task 4"
echo "-----------------"
curl -i -X DELETE http://0.0.0.0:5000/tasks/4
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Get list of tasks"
echo "-----------------"
echo " "
curl -i http://0.0.0.0:5000/tasks
echo " "
echo "-----------------"
echo " "