summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Avdey <eiri@eiri.ca>2019-11-22 15:15:45 -0400
committerPaul J. Davis <paul.joseph.davis@gmail.com>2020-03-02 12:26:22 -0600
commit5aeb21ce1d86c8e0e5c0c4b7bd8c188816a5de75 (patch)
tree5605e26934a72be2d6d65d07dd830d48384870fc /test
parent6ff0a112899a8a04d65fb3155b69540862be8c0a (diff)
downloadcouchdb-5aeb21ce1d86c8e0e5c0c4b7bd8c188816a5de75.tar.gz
Change end-point /_up to check fdb connectivity
Diffstat (limited to 'test')
-rw-r--r--test/elixir/test/basics_test.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/elixir/test/basics_test.exs b/test/elixir/test/basics_test.exs
index 21e05dfcf..f4f95689a 100644
--- a/test/elixir/test/basics_test.exs
+++ b/test/elixir/test/basics_test.exs
@@ -18,6 +18,12 @@ defmodule BasicsTest do
assert Couch.get("/").body["couchdb"] == "Welcome", "Should say welcome"
end
+ test "Ready endpoint" do
+ resp = Couch.get("/_up")
+ assert resp.status_code == 200
+ assert resp.body["status"] == "ok"
+ end
+
@tag :with_db
test "PUT on existing DB should return 412 instead of 500", context do
db_name = context[:db_name]