    [cmr.common.mime-types :as mt]
    [cmr.common.util :as util]
    [cmr.common.xml :as cx]
+   [cmr.ingest.config :as ingest-config]
    [cmr.mock-echo.client.echo-util :as echo-util]
    [cmr.system-int-test.data2.provider-holdings :as ph]
    [cmr.system-int-test.system :as s]


;;; fixture - each test to call this fixture
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defn set-collection-ingest-umm-version-to-current
  "Set the collection ingest-accept-umm-version to current-collection-version."
  []
  (side/eval-form `(common-config/set-collection-umm-version!
                     umm-versioning/current-collection-version)))

(defn create-provider
  "Creates a provider along with ACLs to create and access the providers data.

  ([providers options]
   (fn [f]
     (dev-sys-util/reset)
     (set-ingest-umm-version-to-current)
     (when-not (empty? providers)
      (setup-providers providers options))
     (f))))
