            (cx/elements-at-path parsed [:result])
            metadatas))))
 
+(defn- get-ops-collections-umm-validation-errors
+  "Loops through the collections in ops with a paged search. For each collection, validate the
+  metadata against the XML schema, validate the collection translated to UMM against the current
+  UMM JSON schema, and validate the UMM collection against the validation rules.
+  Return a list of all validation errors across all collections."
+  []
+  (loop [page-num starting-page-num results []]
+    (let [collections (get-collections search-page-size page-num)
+          error-results (map translate-and-validation-collection collections)
+          all-results (concat results (remove nil? error-results))]
+      (if (and (>= (count collections) search-page-size))
+        (recur (+ page-num 1) all-results)
+        all-results))))
+
+(defn- get-ops-collections-umm-validation-errors-debug
+  []
+  (let [colls (get-collections search-page-size 1)
+        error-results (map translate-and-validation-collection colls)
+        all-results (remove nil? error-results)]
+    (if (and (>= (count colls) search-page-size) (<= 200 (count colls)))
+      all-results
+      all-results)))
+
 ;; Comment out this test so that it will not be run as part of the build.
 #_(deftest ops-collections-translation
-  (testing "Translate OPS collections into various supported metadata formats and make sure they pass validation."
-    (loop [page-num starting-page-num]
-      (let [colls (get-collections search-page-size page-num)]
-        (info "Translating collections on page-num: " page-num)
-        (doseq [coll colls]
-          (verify-translation-via-schema-validation coll))
-        ;; We will turn on ingest validation later when ingest is backed by umm-spec-lib
-        ; (verify-translation-via-ingest-validation coll))
-        (when (>= (count colls) search-page-size)
-          (recur (+ page-num 1)))))
+   (testing "Translate OPS collections into various supported metadata formats and make sure they pass validation."
+     (loop [page-num starting-page-num]
+       (let [colls (get-collections search-page-size page-num)]
+         (info "Translating collections on page-num: " page-num)
+         (doseq [coll colls]
+           (verify-translation-via-schema-validation coll))
+         ;; We will turn on ingest validation later when ingest is backed by umm-spec-lib
+         ; (verify-translation-via-ingest-validation coll))
+         (when (>= (count colls) search-page-size)
+           (recur (+ page-num 1)))))
+     (info "Finished OPS collections translation.")))
+
+(deftest ops-collections-validation
+   (testing "get-collections the current collections in ops against the current UMM schema"
+     (def results (get-ops-collections-umm-validation-errors-debug))
     (info "Finished OPS collections translation.")))
-

    ; "C5862870-LARC_ASDC"
    ; "C5784310-LARC_ASDC"

    })

(def valid-formats
  "Valid metadata formats that is supported by CMR."

(ns cmr.system-int-test.ingest.ops-collections-translation-test
  "Translate OPS collections into various supported metadata formats."
  (: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."
