Skip to content

Commit f7acc67

Browse files
sxu123siwei xu
and
siwei xu
authored
CMR-6945: Added default value for nil UMM Version from iso19115. (#1237)
* CMR-6945: Added default value for nil UMM Version from iso19115. * CMR-6945: Fixed a test. Co-authored-by: siwei xu <Siwei_xu@raytheon.com>
1 parent 0a4d089 commit f7acc67

File tree

3 files changed

+834
-4
lines changed

3 files changed

+834
-4
lines changed

system-int-test/test/cmr/system_int_test/ingest/collection_misc_validation_test.clj

+2-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@
5959
(testing "Collections with nil versions are rejected"
6060
(let [concept (data-umm-c/collection-concept {:Version nil} :iso19115)
6161
response (ingest/ingest-concept concept)]
62-
(is (= {:status 422
63-
:errors ["Version is required."]}
64-
response)))))
62+
(is (= 201
63+
(:status response))))))
6564

6665
(deftest field-exceeding-maxlength-warnings
6766
(testing "Multiple warnings returned for the fields exceeding maxlength allowed"

0 commit comments

Comments
 (0)