   (let [master-service-test-runtime-ssl-dir
         (str master-service-test-runtime-dir "/ssl")]
     (http-client/put (str "https://localhost:8140" url)
+                     {:ssl-cert (str master-service-test-runtime-ssl-dir
+                                     "/certs/localhost.pem")
+                      :ssl-key (str master-service-test-runtime-ssl-dir
+                                    "/private_keys/localhost.pem")
+                      :ssl-ca-cert (str master-service-test-runtime-ssl-dir
+                                        "/certs/ca.pem")
+                      :body body
+                      :headers {"Accept" "application/json"
+                                "Content-type" "application/json"}
+                      :as :text})))
+
+(defn http-post
+  [url body]
+  (let [master-service-test-runtime-ssl-dir
+        (str master-service-test-runtime-dir "/ssl")]
+    (http-client/post (str "https://localhost:8140" url)
                      {:ssl-cert (str master-service-test-runtime-ssl-dir
                                      "/certs/localhost.pem")
                       :ssl-key (str master-service-test-runtime-ssl-dir

              (is (= "bar" (get-in stored-facts ["values" "foo"]))))))
        (finally
          (jruby-testutils/return-instance jruby-service jruby-instance :facts-upload-endpoint-test))))))

    [clojure.set :as setutils]
    [puppetlabs.services.master.master-service :refer :all]
    [puppetlabs.services.jruby.jruby-puppet-service :as jruby]
    [puppetlabs.services.protocols.jruby-metrics :as jruby-metrics]
    [puppetlabs.puppetserver.bootstrap-testutils :as bootstrap-testutils]
    [puppetlabs.trapperkeeper.app :as tk-app]
    [puppetlabs.trapperkeeper.testutils.logging :as logutils]
