Skip to content

Commit

Permalink
Add test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lightvector committed Jun 29, 2015
1 parent a2278e8 commit e2e69d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions getjson.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -eux
#Convenience script for sending queries to a test server
curl -i -H "Content-Type: application/json" -X GET "http://localhost:8080/$1"
{ set +x; } 2>/dev/null
echo ""
5 changes: 5 additions & 0 deletions postjson.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -eux
#Convenience script for sending queries to a test server
curl -i -H "Content-Type: application/json" -X POST -d "$2" "http://localhost:8080/$1"
{ set +x; } 2>/dev/null
echo ""

0 comments on commit e2e69d1

Please sign in to comment.