{"action":"opened","issue":{"url":"https://api.github.com/repos/pedestal/pedestal/issues/366","labels_url":"https://api.github.com/repos/pedestal/pedestal/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/pedestal/pedestal/issues/366/comments","events_url":"https://api.github.com/repos/pedestal/pedestal/issues/366/events","html_url":"https://github.com/pedestal/pedestal/issues/366","id":107588210,"number":366,"title":"Pedestal server creation could be more extensible","user":{"login":"briprowe","id":134571,"avatar_url":"https://avatars.githubusercontent.com/u/134571?v=3","gravatar_id":"","url":"https://api.github.com/users/briprowe","html_url":"https://github.com/briprowe","followers_url":"https://api.github.com/users/briprowe/followers","following_url":"https://api.github.com/users/briprowe/following{/other_user}","gists_url":"https://api.github.com/users/briprowe/gists{/gist_id}","starred_url":"https://api.github.com/users/briprowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briprowe/subscriptions","organizations_url":"https://api.github.com/users/briprowe/orgs","repos_url":"https://api.github.com/users/briprowe/repos","events_url":"https://api.github.com/users/briprowe/events{/privacy}","received_events_url":"https://api.github.com/users/briprowe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T20:05:01Z","updated_at":"2015-09-21T20:05:01Z","closed_at":null,"body":"**Problem**: I'm trying to use Pedestal in a system built on Stuart Sierra's Lifecycle protocol. I would like to reuse the system startup logic as much as possible at test-time. To achieve this, being able to write a fixture something like the following would be helpful:\r\n\r\n```clj\r\n(ns my-service.fixtures.sysetm\r\n  (:require [com.stuartsierra.component :as comp]\r\n            [my-service.routing :as routing-table]\r\n            [my-service.core :refer [->system]]))\r\n\r\n(def *system* nil)\r\n\r\n(defn make-system-fixture\r\n  [config]\r\n  (fn [test]\r\n    (binding [*system* (-> (->system :dev\r\n                                     (routing-table/routes config)\r\n                                     \"/public\"\r\n                                     8080)\r\n                           (assoc-in [:http-service :spec :io.pedestal.http/type]\r\n                                     :testing)\r\n                           (comp/start-system))]\r\n      (try\r\n        (test)\r\n        (finally\r\n          (comp/stop-system *system*))))))\r\n```\r\n\r\n**Possible Soln**: Implement `io.pedestal.http/server` as a multimethod."}}