                        {"provguid1" "PROV1" "provguid2" "PROV2" "usgsguid" "USGS_EROS"})
   (constantly nil)))
 
-(def current-umm-version
-  "current umm schema version."
-  umm-version/current-version)
-
-(def original-ingest-accept-umm-version
-  "Original ingest-accept-umm-version in ingest config
-   used to reverse back after changing it for certain tests."
-  (ingest-config/ingest-accept-umm-version))
-
 (deftest simple-search-test
   (let [c1-echo (d/ingest "PROV1" (dc/collection {:short-name "S1"
                                                   :version-id "V1"

;; 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 `(ngest-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"})

      (assert-cache-state {c1-r2-echo [:echo10 latest-umm-format]
                           c2-echo [:echo10 latest-umm-format]
                           c10-umm-json [latest-umm-format]})))
  (dev-sys-util/eval-in-dev-sys `(ingest-config/set-ingest-accept-umm-version! "1.9")))

;; Tests that we can ingest and find items in different formats
(deftest multi-format-search-test
