 
 ;; ## GET /api/org/:id/members
 (expect
-    #{(match-$ (user->org-perm :crowberto)
-        {:id $
-         :admin true
-         :user_id (user->id :crowberto)
-         :organization_id @org-id
-         :user (match-$ (fetch-user :crowberto)
-                 {:common_name "Crowberto Corv"
-                  :date_joined $
-                  :last_name "Corv"
-                  :id $
-                  :is_superuser true
-                  :last_login $
-                  :first_name "Crowberto"
-                  :email "crowberto@metabase.com"})})
-      (match-$ (user->org-perm :trashbird)
-        {:id $
-         :admin false
-         :user_id (user->id :trashbird)
-         :organization_id @org-id
-         :user (match-$ (fetch-user :trashbird)
-                 {:common_name "Trash Bird"
-                  :date_joined $
-                  :last_name "Bird"
-                  :id $
-                  :is_superuser false
-                  :last_login $
-                  :first_name "Trash"
-                  :email "trashbird@metabase.com"})})
-      (match-$ (user->org-perm :lucky)
-        {:id $
-         :admin false
-         :user_id (user->id :lucky)
-         :organization_id @org-id
-         :user (match-$ (fetch-user :lucky)
-                 {:common_name "Lucky Pigeon"
-                  :date_joined $
-                  :last_name "Pigeon"
-                  :id $
-                  :is_superuser false
-                  :last_login $
-                  :first_name "Lucky"
-                  :email "lucky@metabase.com"})})
-      (match-$ (user->org-perm :rasta)
-        {:id $
-         :admin true
-         :user_id (user->id :rasta)
-         :organization_id @org-id
-         :user (match-$ (fetch-user :rasta)
-                 {:common_name "Rasta Toucan"
-                  :date_joined $
-                  :last_name "Toucan"
-                  :id $
-                  :is_superuser false
-                  :last_login $
-                  :first_name "Rasta"
-                  :email "rasta@metabase.com"})})}
+  #{(match-$ (user->org-perm :crowberto)
+      {:id $
+       :admin true
+       :user_id (user->id :crowberto)
+       :organization_id @org-id
+       :user (match-$ (fetch-user :crowberto)
+               {:common_name "Crowberto Corv"
+                :date_joined $
+                :last_name "Corv"
+                :id $
+                :is_superuser true
+                :last_login $
+                :first_name "Crowberto"
+                :email "crowberto@metabase.com"})})
+    (match-$ (user->org-perm :trashbird)
+      {:id $
+       :admin false
+       :user_id (user->id :trashbird)
+       :organization_id @org-id
+       :user (match-$ (fetch-user :trashbird)
+               {:common_name "Trash Bird"
+                :date_joined $
+                :last_name "Bird"
+                :id $
+                :is_superuser false
+                :last_login $
+                :first_name "Trash"
+                :email "trashbird@metabase.com"})})
+    (match-$ (user->org-perm :lucky)
+      {:id $
+       :admin false
+       :user_id (user->id :lucky)
+       :organization_id @org-id
+       :user (match-$ (fetch-user :lucky)
+               {:common_name "Lucky Pigeon"
+                :date_joined $
+                :last_name "Pigeon"
+                :id $
+                :is_superuser false
+                :last_login $
+                :first_name "Lucky"
+                :email "lucky@metabase.com"})})
+    (match-$ (user->org-perm :rasta)
+      {:id $
+       :admin true
+       :user_id (user->id :rasta)
+       :organization_id @org-id
+       :user (match-$ (fetch-user :rasta)
+               {:common_name "Rasta Toucan"
+                :date_joined $
+                :last_name "Toucan"
+                :id $
+                :is_superuser false
+                :last_login $
+                :first_name "Rasta"
+                :email "rasta@metabase.com"})})}
   (set ((user->client :rasta) :get 200 (format "org/%d/members" @org-id))))
 
 ;; Check that users without any org perms cannot list members

;; authentication test on every single individual endpoint

(expect (get auth/response-unauthentic :body) (http/client :get 401 "org"))
(expect (get auth/response-unauthentic :body) (http/client :get 401 (format "org/%d" (:id @test-org))))


;; # GENERAL ORG ENDPOINTS

      :inherits true}]
    (do
      ;; Delete all the random test Orgs we've created
      (cascade-delete Org :id [not= @org-id])
      ;; Create a random Org so we ensure there is an Org that should NOT show up in our list
      (create-org org-name)
      ;; Now perform the API request
