     (is (= 200 (:status (app (-> {:request-method :post
                                   :uri "/v3/catalog/bar"
                                   :content-type "application/x-www-form-urlencoded"}
-                                 (mock/body "environment=environment1234"))))))
+                                 (ring-mock/body "environment=environment1234"))))))
     (is (nil? (request "/foo")))
     (is (nil? (request "/foo/bar")))
     (doseq [[method paths]

            [clojure.string :refer [split]]
            [cheshire.core :as json]
            [puppetlabs.services.master.master-core :refer :all]
            [ring.mock.request :as mock]
            [schema.test :as schema-test]
            [puppetlabs.comidi :as comidi]
            [puppetlabs.services.protocols.jruby-puppet :as jruby]


(defn app-request
  ([app path] (app-request app :get path))
  ([app method path] (app (ring-mock/request method path))))

(deftest test-master-routes
  (let [handler     (fn ([req] {:request req}))
