              true :newer
              "100.0.0" :version
              "http://docs.puppetlabs.com/puppetdb/100.0/release_notes.html" :link)))
+
     (testing "should return 'newer'->false if product is 'pe-puppetdb"
       ;; it should *always* return false for pe-puppetdb
       ;; because

                    "link" "http://docs.puppetlabs.com/puppetdb/100.0/release_notes.html"
                    "version" "100.0.0"})
                 version/version (constantly "99.0.0")]
    (testing "should return 'newer'->true if product is not specified"
      (let [response (-> (get-request (str endpoint "/version/latest"))
                         with-meta-app

  ([request config-overrides shared-globals-overrides]
   (let [app (mid/wrap-with-puppetdb-middleware
              (meta/build-app (fn [] shared-globals-overrides)
                              {:global (merge {:product-name "puppetdb"
                                               :update-server "FOO"}
                                              config-overrides)})
              nil)]
     (app request))))

