From 7aa9ea231529fbc582ad5ad5a535bff2174eb824 Mon Sep 17 00:00:00 2001 From: Cam Saul <cam@geotip.com> Date: Mon, 9 Mar 2015 21:38:22 -0700 Subject: [PATCH] unit test for GET /api/meta/db/form_input --- test/metabase/api/meta/db_test.clj | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test/metabase/api/meta/db_test.clj b/test/metabase/api/meta/db_test.clj index 4e3d924d5bd..f9d709bb088 100644 --- a/test/metabase/api/meta/db_test.clj +++ b/test/metabase/api/meta/db_test.clj @@ -14,7 +14,25 @@ :name db-name :details {:conn_str "host=localhost port=5432 dbname=fakedb user=cam"}})) -;; DB LIFECYCLE ENDPOINTS +;; # FORM INPUT + +;; ## GET /api/meta/db/form_input +(expect + {:engines [["h2" "H2"] + ["postgres" "PostgreSQL"]] + :timezones ["GMT" + "UTC" + "US/Alaska" + "US/Arizona" + "US/Central" + "US/Eastern" + "US/Hawaii" + "US/Mountain" + "US/Pacific" + "America/Costa_Rica"]} + ((user->client :crowberto) :get 200 "meta/db/form_input")) + +;; # DB LIFECYCLE ENDPOINTS ;; ## GET /api/meta/db/:id (expect -- GitLab