       (select-keys [:metabase-userid]))))
 
 
-;;; expired sessionid
+;; expired sessionid
 (let [sessionid (.toString (java.util.UUID/randomUUID))
       user-id (test-data/user->id :rasta)]
   (assert sessionid)

    (auth-enforced-handler (request-with-sessionid sessionid))))


;;; inactive user sessionid
(let [sessionid (.toString (java.util.UUID/randomUUID))
      user-id (test-data/user->id :trashbird)]              ; NOTE that :trashbird is our INACTIVE test user
  (assert sessionid)

(ns metabase.middleware.auth-test
  (:require [expectations :refer :all]
            [korma.core :as korma]
            [metabase.api.common :refer [*current-user-id* *current-user*]]
            [metabase.middleware.auth :refer :all]
            [metabase.models.session :refer [Session]]
            [metabase.test-data :as test-data]
