Skip to content
Snippets Groups Projects
Commit f98790ac authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix 200/202 test

parent 7a7b7fbe
No related branches found
No related tags found
No related merge requests found
......@@ -209,8 +209,9 @@
:type :native
:native {:query "SELECT * FROM XYZ"}}}]
;; since results are keepalive-streamed for normal queries (i.e., not CSV, JSON, or XLSX) we have to return a
;; status code right away, so streaming responses always return 200
(http/client :get (if (seq response-format) 400 200) (card-query-url card response-format))))))
;; status code right away, so streaming responses always return 202 and the actual status code is returned
;; in the _status property of the response body
(http/client :get (if (seq response-format) 400 202) (card-query-url card response-format))))))
;; check that the endpoint doesn't work if embedding isn't enabled
(expect-for-response-formats [response-format]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment