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

Fix JSON API tests

parent e768c7a8
No related branches found
No related tags found
No related merge requests found
......@@ -349,7 +349,7 @@
(do-with-temp-native-card
(fn [database-id card]
(perms/grant-native-read-permissions! (perms-group/all-users) database-id)
((user->client :rasta) :get 200 (format "card/%d/json" (u/get-id card))))))
((user->client :rasta) :post 200 (format "card/%d/query/json" (u/get-id card))))))
;;; Test GET /api/card/:id/query/csv & GET /api/card/:id/json **WITH PARAMETERS**
......@@ -385,4 +385,4 @@
[{(keyword "COUNT(*)") 8}]
(do-with-temp-native-card-with-params
(fn [database-id card]
((user->client :rasta) :get 200 (format "card/%d/json?parameters=%s" (u/get-id card) encoded-params)))))
((user->client :rasta) :post 200 (format "card/%d/query/json?parameters=%s" (u/get-id card) encoded-params)))))
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