summaryrefslogtreecommitdiff
path: root/test/etap
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2009-11-13 20:38:45 +0000
committerDamien F. Katz <damien@apache.org>2009-11-13 20:38:45 +0000
commit627481ee0ade53d0ceed2e29cbb4e312ecbe3340 (patch)
tree7ebc9d3b490b670103fca359e47c6aff284922ef /test/etap
parentdbf062b847922c8bffa43915324d8f75646a3dce (diff)
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
Diffstat (limited to 'test/etap')
-rwxr-xr-xtest/etap/031-doc-to-json.t17
1 files changed, 10 insertions, 7 deletions
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==">>}
]}}
]}}