             [icecap.handlers.core :refer [execute]]
             [icecap.schema :refer [check-plan]]
             [icecap.handlers.http]
+            [icecap.test-data :refer [simple-http-step simple-https-step]]
             [aleph.http :as h]
             [clojure.test :refer :all]))
-
-(def url
-  "http://www.example.com")
-
-(def step
-  {:type :http
-   :url url
-   :method :GET})
 
 (deftest schema-tests
   (testing "valid steps"
     (are [s] (nil? (check-plan s))
-         (merge step {:method :GET})
-         (merge step {:method :HEAD})
-         (merge step {:method :POST})
-         (merge step {:method :DELETE})
-         (merge step {:method :PUT})))
+         simple-http-step
+         (merge simple-http-step {:method :HEAD})
+         (merge simple-http-step {:method :POST})
+         (merge simple-http-step {:method :DELETE})
+         (merge simple-http-step {:method :PUT})))
   (testing "invalid steps"
     (are [s expected]  (= (check-plan (merge {:type :http} s))
                           expected)

         '{:url missing-required-key
           :method missing-required-key}

         {:uri url}
         '{:uri disallowed-key
           :url missing-required-key
           :method missing-required-key}

         '{:url (throws? (URI 1))
           :method missing-required-key}

         {:url (:url simple-http-step)
          :method :BOGUS}
         '{:method (not (#{:DELETE
                           :HEAD
