From 627481ee0ade53d0ceed2e29cbb4e312ecbe3340 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Fri, 13 Nov 2009 20:38:45 +0000 Subject: Initial check-in of APIs for multiple/related supported and incremental replication of only changed attachments. Needs more far more testing and to be hooked up the replicator. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@835981 13f79535-47bb-0310-9956-ffa450edef68 --- test/etap/031-doc-to-json.t | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/etap/031-doc-to-json.t b/test/etap/031-doc-to-json.t index 4e0c3f74..955422af 100755 --- a/test/etap/031-doc-to-json.t +++ b/test/etap/031-doc-to-json.t @@ -114,13 +114,15 @@ test_to_json_success() -> #att{ name = <<"big.xml">>, type = <<"xml/sucks">>, - data = fun() -> ok end, + data = fun() -> ok end, + revpov = 1, len = 400 }, #att{ name = <<"fast.json">>, type = <<"json/ftw">>, data = <<"{\"so\": \"there!\"}">>, + revpos = 1, len = 16 } ]}, @@ -128,16 +130,16 @@ test_to_json_success() -> {<<"_id">>, <<>>}, {<<"_attachments">>, {[ {<<"big.xml">>, {[ - {<<"stub">>, true}, {<<"content_type">>, <<"xml/sucks">>}, + {<<"revpos">>, 1}, {<<"length">>, 400}, - {<<"revpos">>, 0} + {<<"stub">>, true} ]}}, {<<"fast.json">>, {[ - {<<"stub">>, true}, {<<"content_type">>, <<"json/ftw">>}, + {<<"revpos">>, 1}, {<<"length">>, 16}, - {<<"revpos">>, 0} + {<<"stub">>, true} ]}} ]}} ]}, @@ -150,6 +152,7 @@ test_to_json_success() -> name = <<"stuff.txt">>, type = <<"text/plain">>, data = fun() -> <<"diet pepsi">> end, + revpos = 1 len = 10 }, #att{ @@ -163,12 +166,12 @@ test_to_json_success() -> {<<"_attachments">>, {[ {<<"stuff.txt">>, {[ {<<"content_type">>, <<"text/plain">>}, - {<<"revpos">>, 0}, + {<<"revpos">>, 1}, {<<"data">>, <<"ZGlldCBwZXBzaQ==">>} ]}}, {<<"food.now">>, {[ {<<"content_type">>, <<"application/food">>}, - {<<"revpos">>, 0}, + {<<"revpos">>, 1}, {<<"data">>, <<"c2FtbWljaA==">>} ]}} ]}} -- cgit v1.2.3