 ;; This tests that searching for and retrieving metadata after refreshing the search cache works.
 ;; Other metadata tests all run before refreshing the cache so they cover that case.
 (deftest collection-metadata-cache-test
-  (dev-sys-util/eval-in-dev-sys `(cmr.ingest.config/set-ingest-accept-umm-version! "1.10"))
+  (dev-sys-util/eval-in-dev-sys `(cmr.ingest.config/set-ingest-accept-umm-version! current-umm-version))
   (let [c1-echo (d/ingest "PROV1" (dc/collection {:entry-title "c1-echo"})
                           {:format :echo10})
         c2-echo (d/ingest "PROV2" (dc/collection {:entry-title "c2-echo"})

                       {"provguid1" "PROV1" "provguid2" "PROV2" "usgsguid" "USGS_EROS"})
  (constantly nil)))

(def original-ingest-accept-umm-version
  "Original ingest-accept-umm-version in ingest config
   used to reverse back after changing it for certain tests."
  (cmr.ingest.config/ingest-accept-umm-version))

(deftest simple-search-test
  (let [c1-echo (d/ingest "PROV1" (dc/collection {:short-name "S1"

  (dev-sys-util/eval-in-dev-sys `(cmr.ingest.config/set-ingest-accept-umm-version! original-ingest-accept-umm-version)))

(deftest collection-umm-json-metadata-cache-test
  (dev-sys-util/eval-in-dev-sys `(cmr.ingest.config/set-ingest-accept-umm-version! current-umm-version)) 
  (let [c1-r1-echo (d/ingest "PROV1" (du/umm-spec-collection {:entry-title "c1-echo"})
                             {:format :echo10})
        c1-r2-echo (d/ingest "PROV1" (du/umm-spec-collection {:entry-title "c1-echo"
