Test other http verbs: get, put, post, delete, options, trace, head.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
module.exports = function (context, callback) {
|
||||
console.log("Test function");
|
||||
callback(200, "Hello, world!");
|
||||
console.log("Test function entered");
|
||||
callback(200, "Hello, world!\n");
|
||||
console.log("Test function exit");
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# TODO placeholder until we have better tests :)
|
||||
|
||||
set +x
|
||||
set -e
|
||||
set -e
|
||||
|
||||
DIR=$(dirname $0)
|
||||
|
||||
@@ -17,7 +17,15 @@ trap cleanup EXIT
|
||||
sleep 2
|
||||
|
||||
echo "-- Specializing"
|
||||
curl -f -X POST http://localhost:8888/specialize
|
||||
curl -f -X POST http://localhost:8888/specialize
|
||||
|
||||
echo "-- Running user function"
|
||||
curl -f http://localhost:8888 ; echo
|
||||
curl -f -X GET http://localhost:8888
|
||||
curl -f -X POST http://localhost:8888
|
||||
curl -f -X PUT http://localhost:8888
|
||||
curl -f -X DELETE http://localhost:8888
|
||||
curl -f -X TRACE http://localhost:8888
|
||||
curl -f -X OPTIONS http://localhost:8888
|
||||
|
||||
# -I causes curl to make a HEAD request.
|
||||
curl -f -I http://localhost:8888
|
||||
|
||||
Reference in New Issue
Block a user