Commit 65ce21aa authored by Tristan Cavelier's avatar Tristan Cavelier

jiotests updated

parent bba708a2
...@@ -1687,6 +1687,15 @@ test("Put Attachment", function () { ...@@ -1687,6 +1687,15 @@ test("Put Attachment", function () {
), ),
"", "Check attachment" "", "Check attachment"
); );
// adding a metadata to the document
o.doc = localstorage.getItem(
"jio/localstorage/urevputattmt/arevputattmt/doc1." + o.rev
);
o.doc.title = "My Title";
localstorage.setItem(
"jio/localstorage/urevputattmt/arevputattmt/doc1." + o.rev,
o.doc
);
// update attachment // update attachment
o.prev_rev = o.rev; o.prev_rev = o.rev;
...@@ -1713,6 +1722,7 @@ test("Put Attachment", function () { ...@@ -1713,6 +1722,7 @@ test("Put Attachment", function () {
), ),
{ {
"_id": "doc1." + o.rev, "_id": "doc1." + o.rev,
"title": "My Title",
"_attachments": { "_attachments": {
"attmt1": { "attmt1": {
"length": 3, "length": 3,
...@@ -1758,6 +1768,7 @@ test("Put Attachment", function () { ...@@ -1758,6 +1768,7 @@ test("Put Attachment", function () {
), ),
{ {
"_id": "doc1." + o.rev, "_id": "doc1." + o.rev,
"title": "My Title",
"_attachments": { "_attachments": {
"attmt1": { "attmt1": {
"length": 3, "length": 3,
...@@ -2549,7 +2560,8 @@ module ("JIO Replicate Revision Storage"); ...@@ -2549,7 +2560,8 @@ module ("JIO Replicate Revision Storage");
"content_type": "text/plain", "content_type": "text/plain",
"digest": "md5-0505c1fb6aae02dd1695d33841726564" "digest": "md5-0505c1fb6aae02dd1695d33841726564"
} }
} },
"title": "put new revision"
}; };
o.spy(o, "value", o.doc, "Get document, the winner"); o.spy(o, "value", o.doc, "Get document, the winner");
o.jio.get({"_id": "doc1"}, { o.jio.get({"_id": "doc1"}, {
......
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