Skip to content

Commit ec19adc

Browse files
committed
CMR-9355: Fixing tests for 1.18.2
1 parent 38e7b95 commit ec19adc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

system-int-test/test/cmr/system_int_test/ingest/collection/collection_ingest_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
(:require
66
[clojure.java.io :as io]
77
[clojure.string :as string]
8-
[clojure.test :refer :all]
8+
[clojure.test :refer [are deftest is testing use-fixtures]]
99
[cmr.access-control.test.util :as test-util]
1010
[cmr.common-app.config :as common-config]
1111
[cmr.common-app.test.side-api :as side]
@@ -792,7 +792,7 @@
792792
(testing "Ingest of a json collection with invalid mimetypes. This verifies that we validate mimetypes against kms."
793793
(let [coll-metadata (slurp (io/resource "CMR-7647/CMR-7647.json"))
794794
{:keys [status errors]} (ingest/ingest-concept
795-
(ingest/concept :collection "PROV1" "foo" :umm-json coll-metadata)
795+
(ingest/concept :collection "PROV1" "foo" {:format :umm-json :version "1.18.2"} coll-metadata)
796796
{:validate-keywords false})]
797797
(is (= 422 status))
798798
(is (= [["Related URL Content Type, Type, and Subtype [ContactPerson1: BadURLContentType1>HOME PAGE>] are not a valid set together."]

system-int-test/test/cmr/system_int_test/ingest/collection/collection_translation_test.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
(is (= 200 status))))
122122

123123
(testing (format "Translating umm-json to iso19115 produces the right codelist")
124-
(let [input-format :umm-json
124+
(let [input-format {:format :umm-json
125+
:version "1.18.2"}
125126
output-format :iso19115
126127
options {:skip-sanitize-umm-c false}
127128
input-json (slurp (io/resource "CMR-7557/test_data.json"))

0 commit comments

Comments
 (0)