Skip to content

Commit

Permalink
CMR-9355: Fixing tests for 1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eereiter committed Feb 3, 2025
1 parent 38e7b95 commit ec19adc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(:require
[clojure.java.io :as io]
[clojure.string :as string]
[clojure.test :refer :all]
[clojure.test :refer [are deftest is testing use-fixtures]]
[cmr.access-control.test.util :as test-util]
[cmr.common-app.config :as common-config]
[cmr.common-app.test.side-api :as side]
Expand Down Expand Up @@ -792,7 +792,7 @@
(testing "Ingest of a json collection with invalid mimetypes. This verifies that we validate mimetypes against kms."
(let [coll-metadata (slurp (io/resource "CMR-7647/CMR-7647.json"))
{:keys [status errors]} (ingest/ingest-concept
(ingest/concept :collection "PROV1" "foo" :umm-json coll-metadata)
(ingest/concept :collection "PROV1" "foo" {:format :umm-json :version "1.18.2"} coll-metadata)
{:validate-keywords false})]
(is (= 422 status))
(is (= [["Related URL Content Type, Type, and Subtype [ContactPerson1: BadURLContentType1>HOME PAGE>] are not a valid set together."]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
(is (= 200 status))))

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

0 comments on commit ec19adc

Please sign in to comment.