diff options
author | Bessenyei Balázs Donát <bessbd@apache.org> | 2020-10-07 19:36:49 +0200 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2020-10-20 14:13:30 +0100 |
commit | 2afc67c38eb7a87dc808dfd6e9dbb51cbfe5234e (patch) | |
tree | d653a28cf20dfab68c08fac8677feeac5469441b /test | |
parent | 8fbf62843ad5ed17d1d331d2577c9922c89fc646 (diff) | |
download | couchdb-2afc67c38eb7a87dc808dfd6e9dbb51cbfe5234e.tar.gz |
Fix boolean POST to view-like endpoints
Diffstat (limited to 'test')
-rw-r--r-- | test/elixir/test/all_docs_test.exs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/elixir/test/all_docs_test.exs b/test/elixir/test/all_docs_test.exs index 5523565a4..7862f7825 100644 --- a/test/elixir/test/all_docs_test.exs +++ b/test/elixir/test/all_docs_test.exs @@ -445,4 +445,22 @@ defmodule AllDocsTest do assert resp.status_code == 200 end + + @tag :with_db + test "POST boolean", context do + db_name = context[:db_name] + + resp = Couch.post("/#{db_name}/_bulk_docs", body: %{docs: create_docs(0..3)}) + assert resp.status_code in [201, 202] + + resp = Couch.post( + "/#{db_name}/_all_docs", + body: %{ + :stable => true, + :update => true + } + ) + + assert resp.status_code == 200 + end end |