diff options
author | Robert Newson <rnewson@apache.org> | 2023-05-06 14:40:22 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2023-05-06 14:40:22 +0100 |
commit | 4aef4ebaf080a4f5f9a8dd64751a63c9d6e5300d (patch) | |
tree | 3f44f43a05fea2e7b8ba6f8a6c6b1544b0cf2fc5 /test/elixir/test/attachments_test.exs | |
parent | 90ca838cd3f3e2f03b2ee4d433d700a1459b0a84 (diff) | |
parent | 141eb3d19cca2552fff7dc453a65fefebc00b8ce (diff) | |
download | couchdb-4aef4ebaf080a4f5f9a8dd64751a63c9d6e5300d.tar.gz |
Merge remote-tracking branch 'origin/remove-content-md5-header' into remove-md5-entirelyremove-md5-more
Diffstat (limited to 'test/elixir/test/attachments_test.exs')
-rw-r--r-- | test/elixir/test/attachments_test.exs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/elixir/test/attachments_test.exs b/test/elixir/test/attachments_test.exs index f1dd3ef61..13a5c84f9 100644 --- a/test/elixir/test/attachments_test.exs +++ b/test/elixir/test/attachments_test.exs @@ -431,29 +431,6 @@ defmodule AttachmentsTest do end @tag :with_db - test "md5 header for attachments", context do - db_name = context[:db_name] - md5 = "MntvB0NYESObxH4VRDUycw==" - - bin_data = "foo bar" - - resp = - Couch.put( - "/#{db_name}/bin_doc8/attachment.txt", - body: bin_data, - headers: ["Content-Type": "application/octet-stream", "Content-MD5": md5], - query: %{w: 3} - ) - - assert resp.status_code in [201, 202] - assert resp.body["ok"] - - resp = Couch.get("/#{db_name}/bin_doc8/attachment.txt") - assert resp.status_code == 200 - assert md5 == resp.headers["Content-MD5"] - end - - @tag :with_db test "attachment via multipart/form-data", context do db_name = context[:db_name] |