 (ns cmr.system-int-test.ingest.ops-collections-translation-test
   "Translate OPS collections into various supported metadata formats."
-  (:require [clojure.test :refer :all]
-            [clj-http.client :as client]
-            [cmr.common.xml :as cx]
-            [cmr.system-int-test.utils.fast-xml :as fx]
-            [clojure.string :as str]
-            [cmr.common.log :refer [error info]]
-            [cmr.common.mime-types :as mt]
-            [cmr.system-int-test.utils.ingest-util :as ingest]
-            [cmr.system-int-test.utils.search-util :as search]
-            [cmr.system-int-test.utils.url-helper :as url]
-            [cmr.system-int-test.system :as s]
-            [cmr.umm-spec.umm-spec-core :as umm]))
+  (:require
+    [clj-http.client :as client]
+    [clojure.string :as str]
+    [clojure.test :refer :all]
+    [cmr.common.concepts :as concepts]
+    [cmr.common.log :refer [error info]]
+    [cmr.common.mime-types :as mt]
+    [cmr.common.xml :as cx]
+    [cmr.system-int-test.system :as s]
+    [cmr.system-int-test.utils.fast-xml :as fx]
+    [cmr.system-int-test.utils.ingest-util :as ingest]
+    [cmr.system-int-test.utils.search-util :as search]
+    [cmr.system-int-test.utils.url-helper :as url]
+    [cmr.umm-spec.json-schema :as json-schema]
+    [cmr.umm-spec.test.location-keywords-helper :as lkt]
+    [cmr.umm-spec.umm-json :as umm-json]
+    [cmr.umm-spec.umm-spec-core :as umm]
+    [cmr.umm-spec.validation.umm-spec-validation-core :as umm-validation]))
 
 (use-fixtures :each (ingest/reset-fixture {"provguid1" "PROV1"}))
+
+(def context (lkt/setup-context-for-test lkt/sample-keyword-map))
 
 (def starting-page-num
   "The starting page-num to retrieve collections for the translation test."

                (format "Failed xml schema validation when translating %s to %s for collection %s. %s"
                        (name metadata-format) (name output-format) concept-id validation-errs))))))))

(defn get-collections
  "Returns the collections as a list of maps with concept-id, revision-id, metadata-format and metadata."
  [page-size page-num]

    "C1214604063-SCIOPS" ;;Line 291 - cvc-datatype-valid.1.2.1: '<http://pubs.usgs.gov/of/2014/1040/data/undersea_features.zip>' is not a valid value for 'anyURI'.
    "C1214595389-SCIOPS" ;;Line 108 - cvc-datatype-valid.1.2.1: 'IPY  http://ipy.antarcticanz.govt.nz/projects/southern-victoria-land-geology/' is not a valid value for 'anyURI'.
    "C1214608487-SCIOPS" ;;Line 303 - cvc-datatype-valid.1.2.1: 'Scanned images: http://atlas.gc.ca/site/english/maps/archives' is not a valid value for 'anyURI'.
    "C1214603723-SCIOPS"}) ;;Line 132 - cvc-datatype-valid.1.2.1: '<http://sofia.usgs.gov/projects/workplans12/jem.html>' is not a valid value for 'anyURI'.

    ;; The following collections failed ingest validation, but not xml schema validation.
    ;; I have changed the validation from ingest validation to xml validation, so we don't
