Commit b4ea555e authored by Tristan Cavelier's avatar Tristan Cavelier

When no data is returned, No Content status is expected

parent 796bdef5
...@@ -186,8 +186,8 @@ ...@@ -186,8 +186,8 @@
"id": "put1", "id": "put1",
"method": "put", "method": "put",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Update the document"); }, "Update the document");
}).then(function () { }).then(function () {
...@@ -731,8 +731,8 @@ ...@@ -731,8 +731,8 @@
"id": "inexistent", "id": "inexistent",
"method": "check", "method": "check",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Check inexistent document"); }, "Check inexistent document");
}).then(function () { }).then(function () {
...@@ -750,32 +750,32 @@ ...@@ -750,32 +750,32 @@
"id": "war", "id": "war",
"method": "repair", "method": "repair",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Repair a document with one missing attachment"); }, "Repair a document with one missing attachment");
deepEqual(answers[1], { deepEqual(answers[1], {
"id": "meta", "id": "meta",
"method": "repair", "method": "repair",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Repair document with wrong metadata"); }, "Repair document with wrong metadata");
deepEqual(answers[2], { deepEqual(answers[2], {
"id": "cor", "id": "cor",
"method": "repair", "method": "repair",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Repair corrupted document"); }, "Repair corrupted document");
deepEqual(answers[3], { deepEqual(answers[3], {
"id": "inexistent", "id": "inexistent",
"method": "repair", "method": "repair",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Repair inexistent document"); }, "Repair inexistent document");
}).then(function () { }).then(function () {
...@@ -856,8 +856,8 @@ ...@@ -856,8 +856,8 @@
deepEqual(answer, { deepEqual(answer, {
"method": "repair", "method": "repair",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Repair all the database"); }, "Repair all the database");
}).then(function () { }).then(function () {
......
...@@ -847,8 +847,8 @@ ...@@ -847,8 +847,8 @@
"id": "a", "id": "a",
"method": "put", "method": "put",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "First put respond"); }, "First put respond");
}); });
...@@ -862,8 +862,8 @@ ...@@ -862,8 +862,8 @@
"id": "a", "id": "a",
"method": "put", "method": "put",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Second put respond"); }, "Second put respond");
}); });
...@@ -895,8 +895,8 @@ ...@@ -895,8 +895,8 @@
"id": "a", "id": "a",
"method": "put", "method": "put",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "First put respond"); }, "First put respond");
}); });
...@@ -910,8 +910,8 @@ ...@@ -910,8 +910,8 @@
"id": "a", "id": "a",
"method": "put", "method": "put",
"result": "success", "result": "success",
"status": 200, "status": 204,
"statusText": "Ok" "statusText": "No Content"
}, "Second put respond"); }, "Second put respond");
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment