 
 (def base-request
   "A basic request to feed into the tests"
-  (request "/" :get "127.0.0.1" (create-certificate "test.domain.org") ))
+  (testutils/request "/" :get "127.0.0.1" (testutils/create-certificate "test.domain.org") ))
 
 (def unauthenticated-request
   "A basic unauthenticated request to feed into the tests"
-  (request "/" :get "127.0.0.1"))
+  (testutils/request "/" :get "127.0.0.1"))
 
 (defprotocol EchoReverseService
   (echo-reverse [this msg]))

    [puppetlabs.ssl-utils.core :as ssl-utils]
    [puppetlabs.trapperkeeper.app :refer [get-service]]
    [puppetlabs.trapperkeeper.authorization.rules :as rules]
    [puppetlabs.trapperkeeper.authorization.testutils :as testutils :refer :all]
    [puppetlabs.trapperkeeper.services :refer [defservice]]
    [puppetlabs.trapperkeeper.services.authorization.authorization-service
     :refer [authorization-service]]

          [plumbing-service authorization-service]
          (assoc-in minimal-config [:authorization :rules] rules-w-exts)
          (testing "allowed request via extensions"
            (let [req (testutils/request "/puppet/v4/catalog" :get "127.0.0.1" allowable-cert)]
              (is (-> (get-service app :PlumbingService)
                      (call-authorization-check req {:oid-map oid-map})
                      rules/authorized?))))
          (testing "denied request via extensions"
            (let [req (testutils/request "/puppet/v4/catalog" :get "127.0.0.1" deniable-cert)]
              (is (not (-> (get-service app :PlumbingService)
                           (call-authorization-check req {:oid-map oid-map})
                           rules/authorized?)))))
