     context))
 
 (deftest rollup-status-endpoint-test
-  (with-app-with-config
+  (with-status-service
     app
-    [jetty9-service/jetty9-service
-     webrouting-service/webrouting-service
-     status-service
-     foo-service
+    [foo-service
      bar-service]
-    {:webserver {:port 8180
-                 :host "0.0.0.0"}
-     :web-router-service {:puppetlabs.trapperkeeper.services.status.status-service/status-service "/status"}}
     (testing "returns latest status for all services"
       (let [req (http-client/get "http://localhost:8180/status/v1/services")
             body (json/parse-string (slurp (:body req)))]

            [puppetlabs.trapperkeeper.services.webserver.jetty9-service :as jetty9-service]))

(use-fixtures :once schema-test/validate-schemas)

(defservice foo-service
  [[:StatusService register-status]]

               (json/parse-string (slurp (:body req)))))))))

(deftest error-handling-test
  (with-status-service app []
    (testing "returns a 400 when an invalid level is queried for"
      (let [req (http-client/get "http://localhost:8180/status/v1/services?level=bar")]
        (is (= 400 (:status req)))
