Skip to content

Commit

Permalink
Test Script Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dsandersAzure committed Sep 8, 2015
1 parent 599d7ed commit d72bddf
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion testWS.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,61 @@
echo " "
echo ">>> Test run starting "
echo ">>> Test run starting <<<"
echo " "
echo " "
echo "-----------------"
echo "Get list of tasks"
echo "-----------------"
echo " "
curl -i http://127.0.0.1:5000/tasks
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Get task 1"
echo "-----------------"
curl -i http://127.0.0.1:5000/tasks/1
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Get task 2"
echo "-----------------"
curl -i http://127.0.0.1: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://127.0.0.1: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://127.0.0.1:5000/tasks
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Delete task 4"
echo "-----------------"
curl -i -X DELETE http://127.0.0.1:5000/tasks/4
echo " "
echo "-----------------"
echo " "
echo " "
echo "-----------------"
echo "Get list of tasks"
echo "-----------------"
echo " "
curl -i http://127.0.0.1:5000/tasks
echo " "
echo "-----------------"
echo " "

0 comments on commit d72bddf

Please sign in to comment.