           (doseq [path valid-paths]
             (let [response (get-static-file-content (str path "?code_id=foobar&environment=production"))]
               (is (= 200 (:status response)))
-              (is (= (str "production foobar " path "\n") (slurp (:body response)))))))
+              (is (= (str "production foobar " path "\n") (:body response))))))
         (testing "invalid requests return 403 and the error message"
           (doseq [path invalid-paths]
             (let [response (get-static-file-content (str path "?code_id=foobar&environment=production"))]
               (is (= 403 (:status response)))
-              (is (= error-message (slurp (:body response))))))))))))
+              (is (= error-message (:body response)))))))))))
 
 (deftest ^:integration static-file-content-endpoint-test-no-code-content-command
   (logging/with-test-logging

      (let [response (get-static-file-content "modules/foo/files/bar/?code_id=foobar&environment=test")]
        (is (= 500 (:status response)))
        (is (re-matches #".*Cannot retrieve code content because the \"versioned-code\.code-content-command\" setting is not present in configuration.*"
                        (slurp (:body response)))))))))

  [url-end]
  (http-client/get (str "https://localhost:8140/puppet/v3/static_file_content/" url-end)
                   (assoc testutils/ssl-request-options
                     :as :text)))

(deftest ^:integration test-external-command-execution
  (testing "puppet functions can call external commands successfully"
