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 @@
"id": "put1",
"method": "put",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Update the document");
}).then(function () {
......@@ -731,8 +731,8 @@
"id": "inexistent",
"method": "check",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Check inexistent document");
}).then(function () {
......@@ -750,32 +750,32 @@
"id": "war",
"method": "repair",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Repair a document with one missing attachment");
deepEqual(answers[1], {
"id": "meta",
"method": "repair",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Repair document with wrong metadata");
deepEqual(answers[2], {
"id": "cor",
"method": "repair",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Repair corrupted document");
deepEqual(answers[3], {
"id": "inexistent",
"method": "repair",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Repair inexistent document");
}).then(function () {
......@@ -856,8 +856,8 @@
deepEqual(answer, {
"method": "repair",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Repair all the database");
}).then(function () {
......
......@@ -847,8 +847,8 @@
"id": "a",
"method": "put",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "First put respond");
});
......@@ -862,8 +862,8 @@
"id": "a",
"method": "put",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "Second put respond");
});
......@@ -895,8 +895,8 @@
"id": "a",
"method": "put",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "First put respond");
});
......@@ -910,8 +910,8 @@
"id": "a",
"method": "put",
"result": "success",
"status": 200,
"statusText": "Ok"
"status": 204,
"statusText": "No Content"
}, "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