diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2021-11-04 23:30:23 -0400 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2021-11-09 18:21:03 -0500 |
commit | 87bff05100b293fe71e1f28a5858fdff4483f1a5 (patch) | |
tree | 9b177cd62f582467ab0d0624b9503c84d09f61a5 | |
parent | dd42737ba1df96f1202b938ccce25d97e68573c5 (diff) | |
download | couchdb-87bff05100b293fe71e1f28a5858fdff4483f1a5.tar.gz |
Exclude _show/_list/_rewrite tests
-rw-r--r-- | test/elixir/test/list_views_test.exs | 25 | ||||
-rw-r--r-- | test/elixir/test/rewrite_js_test.exs | 5 | ||||
-rw-r--r-- | test/elixir/test/rewrite_test.exs | 3 | ||||
-rw-r--r-- | test/elixir/test/show_documents_test.exs | 21 |
4 files changed, 54 insertions, 0 deletions
diff --git a/test/elixir/test/list_views_test.exs b/test/elixir/test/list_views_test.exs index 8e6314dfb..209fabfc4 100644 --- a/test/elixir/test/list_views_test.exs +++ b/test/elixir/test/list_views_test.exs @@ -253,6 +253,7 @@ defmodule ListViewsTest do [db_name: db_name, db_name_cross: db_name_cross, db_name_erlang: db_name_erlang]} end + @tag :pending # Not supported on 4.x test "standard GET", context do db_name = context[:db_name] resp = Rawresp.get("/#{db_name}/_design/lists/_list/basicBasic/basicView") @@ -260,6 +261,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/head0123456789tail/) end + @tag :pending # Not supported on 4.x test "standard OPTIONS", context do db_name = context[:db_name] resp = Rawresp.options("/#{db_name}/_design/lists/_list/basicBasic/basicView") @@ -267,6 +269,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/head0123456789tail/) end + @tag :pending # Not supported on 4.x test "the richness of the arguments", context do db_name = context[:db_name] @@ -298,6 +301,7 @@ defmodule ListViewsTest do "/#{db_name}/_design/lists/_list/basicJSON/basicView?update_seq=true" end + @tag :pending # Not supported on 4.x test "get with query params", context do db_name = context[:db_name] @@ -312,6 +316,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/LastKey: 8/) end + @tag :pending # Not supported on 4.x test "with 0 rows", context do db_name = context[:db_name] @@ -321,6 +326,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/<\/ul>/) end + @tag :pending # Not supported on 4.x test "too many Get Rows", context do db_name = context[:db_name] @@ -330,6 +336,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/9after row: null/) end + @tag :pending # Not supported on 4.x test "reduce with 0 rows", context do db_name = context[:db_name] @@ -340,6 +347,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/LastKey: undefined/) end + @tag :pending # Not supported on 4.x test "when there is a reduce present, but not used", context do db_name = context[:db_name] @@ -350,6 +358,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/Key: 1/) end + @tag :pending # Not supported on 4.x test "when there is a reduce present, and used", context do db_name = context[:db_name] @@ -359,6 +368,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/Key: 1/) end + @tag :pending # Not supported on 4.x test "empty list", context do db_name = context[:db_name] @@ -369,6 +379,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/^ $/) end + @tag :pending # Not supported on 4.x test "multi-key fetch with POST", context do db_name = context[:db_name] @@ -384,6 +395,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/LastKey: 7/) end + @tag :pending # Not supported on 4.x test "multi-key fetch with GET", context do db_name = context[:db_name] @@ -397,6 +409,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/LastKey: 7/) end + @tag :pending # Not supported on 4.x test "no multi-key fetch allowed when group=false", context do db_name = context[:db_name] @@ -412,6 +425,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/ReferenceError/) end + @tag :pending # Not supported on 4.x test "with include_docs and a reference to the doc", context do db_name = context[:db_name] @@ -423,12 +437,14 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/head0tail/) end + @tag :pending # Not supported on 4.x test "extra qs params", context do db_name = context[:db_name] resp = Rawresp.get("/#{db_name}/_design/lists/_list/qsParams/basicView?foo=blam") assert String.match?(resp.body, ~r/blam/) end + @tag :pending # Not supported on 4.x test "stop iteration", context do db_name = context[:db_name] resp = Rawresp.get("/#{db_name}/_design/lists/_list/stopIter/basicView") @@ -442,6 +458,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/^head 0 1 2 tail$/) end + @tag :pending # Not supported on 4.x test "abort iteration with reduce", context do db_name = context[:db_name] @@ -456,6 +473,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/^head 0 1 2 tail$/) end + @tag :pending # Not supported on 4.x test "with accept headers for HTML", context do db_name = context[:db_name] @@ -469,6 +487,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/Value/) end + @tag :pending # Not supported on 4.x test "we can run lists and views from separate docs", context do db_name = context[:db_name_cross] @@ -483,6 +502,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/LastKey: 0/) end + @tag :pending # Not supported on 4.x test "we do multi-key requests on lists and views in separate docs", context do db_name = context[:db_name_cross] @@ -499,6 +519,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/LastKey: -7/) end + @tag :pending # Not supported on 4.x test "secObj is available", context do db_name = context[:db_name] @@ -507,6 +528,7 @@ defmodule ListViewsTest do assert is_map(resp.body) end + @tag :pending # Not supported on 4.x test "multiple languages in design docs", context do db_name = context[:db_name_erlang] @@ -522,6 +544,7 @@ defmodule ListViewsTest do end @tag :with_db + @tag :pending # Not supported on 4.x test "COUCHDB-1113", context do db_name = context[:db_name] @@ -556,6 +579,7 @@ defmodule ListViewsTest do assert resp.status_code == 200 end + @tag :pending # Not supported on 4.x test "HTTP header response set after getRow() called in _list function", context do db_name = context[:db_name] @@ -565,6 +589,7 @@ defmodule ListViewsTest do assert String.match?(resp.body, ~r/^bad request$/) end + @tag :pending # Not supported on 4.x test "handling _all_docs by _list functions. the result should be equal", context do db_name = context[:db_name] diff --git a/test/elixir/test/rewrite_js_test.exs b/test/elixir/test/rewrite_js_test.exs index a3adb3e7d..720dbc64c 100644 --- a/test/elixir/test/rewrite_js_test.exs +++ b/test/elixir/test/rewrite_js_test.exs @@ -212,6 +212,7 @@ defmodule RewriteJSTest do Enum.each( ["test_rewrite_suite_db", "test_rewrite_suite_db%2Fwith_slashes"], fn db_name -> + @tag :pending # Not supported on 4.x @tag with_random_db: db_name test "Test basic js rewrites on #{db_name}", context do db_name = context[:db_name] @@ -314,6 +315,7 @@ defmodule RewriteJSTest do assert Map.has_key?(resp.body, "_revs_info") end + @tag :pending # Not supported on 4.x @tag with_random_db: db_name test "early response on #{db_name}", context do db_name = context[:db_name] @@ -345,6 +347,7 @@ defmodule RewriteJSTest do assert resp.status_code == 500 end + @tag :pending # Not supported on 4.x @tag with_random_db: db_name test "path relative to server on #{db_name}", context do db_name = context[:db_name] @@ -364,6 +367,7 @@ defmodule RewriteJSTest do assert length(resp.body["uuids"]) == 1 end + @tag :pending # Not supported on 4.x @tag with_random_db: db_name test "loop on #{db_name}", context do db_name = context[:db_name] @@ -382,6 +386,7 @@ defmodule RewriteJSTest do assert resp.status_code == 400 end + @tag :pending # Not supported on 4.x @tag with_random_db: db_name test "requests with body preserve the query string rewrite on #{db_name}", context do diff --git a/test/elixir/test/rewrite_test.exs b/test/elixir/test/rewrite_test.exs index 16db1fec2..b491e7e0d 100644 --- a/test/elixir/test/rewrite_test.exs +++ b/test/elixir/test/rewrite_test.exs @@ -449,6 +449,7 @@ defmodule RewriteTest do assert resp.body["error"] == "insecure_rewrite_rule" end + @tag :pending # Not supported on 4.x @tag with_random_db: db_name @tag config: [ {"chttpd", "secure_rewrites", "false"} @@ -473,6 +474,7 @@ defmodule RewriteTest do assert length(resp.body["uuids"]) == 1 end + @tag :pending # Not supported on 4.x @tag with_random_db: db_name @tag config: [ {"chttpd", "rewrite_limit", "2"} @@ -491,6 +493,7 @@ defmodule RewriteTest do assert resp.status_code == 400 end + @tag :pending # Not supported on 4.x @tag with_random_db: db_name @tag config: [ {"chttpd", "rewrite_limit", "2"}, diff --git a/test/elixir/test/show_documents_test.exs b/test/elixir/test/show_documents_test.exs index a574c72b1..53fe3837f 100644 --- a/test/elixir/test/show_documents_test.exs +++ b/test/elixir/test/show_documents_test.exs @@ -198,6 +198,7 @@ defmodule ShowDocumentsTest do {:ok, [db_name: db_name]} end + @tag :pending # Not supported on 4.x test "show error", context do db_name = context[:db_name] @@ -206,6 +207,7 @@ defmodule ShowDocumentsTest do assert resp.body["reason"] == "Invalid path." end + @tag :pending # Not supported on 4.x test "show with existing doc", context do db_name = context[:db_name] @@ -217,6 +219,7 @@ defmodule ShowDocumentsTest do assert String.match?(resp.headers["Server"], ~r/^CouchDB/) end + @tag :pending # Not supported on 4.x test "show without docid", context do db_name = context[:db_name] resp = Rawresp.get("/#{db_name}/_design/template/_show/hello") @@ -226,6 +229,7 @@ defmodule ShowDocumentsTest do assert resp.body == "" end + @tag :pending # Not supported on 4.x test "show fail with non-existing docid", context do db_name = context[:db_name] resp = Couch.get("/#{db_name}/_design/template/_show/fail/nonExistingDoc") @@ -233,12 +237,14 @@ defmodule ShowDocumentsTest do assert resp.body["error"] == "not_found" end + @tag :pending # Not supported on 4.x test "show with doc", context do db_name = context[:db_name] resp = Rawresp.get("/#{db_name}/_design/template/_show/just-name/test-doc-id") assert resp.body == "Just Rusty" end + @tag :pending # Not supported on 4.x test "show with missing doc", context do db_name = context[:db_name] resp = Rawresp.get("/#{db_name}/_design/template/_show/just-name/missingdoc") @@ -246,6 +252,7 @@ defmodule ShowDocumentsTest do assert resp.body == "No such doc" end + @tag :pending # Not supported on 4.x test "missing design doc", context do db_name = context[:db_name] resp = Couch.get("/#{db_name}/_design/missingddoc/_show/just-name/test-doc-id") @@ -253,6 +260,7 @@ defmodule ShowDocumentsTest do assert resp.body["error"] == "not_found" end + @tag :pending # Not supported on 4.x test "show query parameters", context do db_name = context[:db_name] @@ -268,6 +276,7 @@ defmodule ShowDocumentsTest do assert resp.body["info"]["db_name"] == db_name end + @tag :pending # Not supported on 4.x test "accept header switching - different mime has different etag", context do db_name = context[:db_name] @@ -294,6 +303,7 @@ defmodule ShowDocumentsTest do assert etag != etag2 end + @tag :pending # Not supported on 4.x test "show with doc - etags", context do db_name = context[:db_name] @@ -322,6 +332,7 @@ defmodule ShowDocumentsTest do assert resp.status_code == 200 end + @tag :pending # Not supported on 4.x test "JS can't set etag", context do db_name = context[:db_name] @@ -329,6 +340,7 @@ defmodule ShowDocumentsTest do assert resp.headers["etag"] != "skipped" end + @tag :pending # Not supported on 4.x test "the provides mime matcher", context do db_name = context[:db_name] @@ -342,6 +354,7 @@ defmodule ShowDocumentsTest do assert resp.body == "Ha ha, you said \"plankton\"." end + @tag :pending # Not supported on 4.x test "registering types works", context do db_name = context[:db_name] @@ -354,6 +367,7 @@ defmodule ShowDocumentsTest do assert String.match?(resp.body, ~r/foofoo/) end + @tag :pending # Not supported on 4.x test "the provides mime matcher without a match", context do db_name = context[:db_name] @@ -365,6 +379,7 @@ defmodule ShowDocumentsTest do assert resp.body["error"] == "not_acceptable" end + @tag :pending # Not supported on 4.x test "id with slash", context do db_name = context[:db_name] @@ -374,6 +389,7 @@ defmodule ShowDocumentsTest do assert resp.status_code == 200 end + @tag :pending # Not supported on 4.x test "show with non-existing docid", context do db_name = context[:db_name] @@ -381,6 +397,7 @@ defmodule ShowDocumentsTest do assert resp.body == "New World" end + @tag :pending # Not supported on 4.x test "list() compatible API", context do db_name = context[:db_name] @@ -389,6 +406,7 @@ defmodule ShowDocumentsTest do assert resp.headers["X-Couch-Test-Header"] == "Yeah" end + @tag :pending # Not supported on 4.x test "list() compatible API with provides function", context do db_name = context[:db_name] @@ -398,6 +416,7 @@ defmodule ShowDocumentsTest do assert resp.body == "foo, bar, baz!" end + @tag :pending # Not supported on 4.x test "should keep next result order: chunks + return value + provided chunks + provided return value", context do db_name = context[:db_name] @@ -419,6 +438,7 @@ defmodule ShowDocumentsTest do assert resp.headers["X-Couch-Test-Header-Awesome"] == "Oh Yeah!" end + @tag :pending # Not supported on 4.x test "deleted docs", context do db_name = context[:db_name] @@ -433,6 +453,7 @@ defmodule ShowDocumentsTest do end @tag :with_db + @tag :pending # Not supported on 4.x test "security object", context do db_name = context[:db_name] {:ok, _} = create_doc(db_name, @ddoc) |