Skip to content

Commit

Permalink
CMR-6945: Added default value for nil UMM Version from iso19115. (#1237)
Browse files Browse the repository at this point in the history
* CMR-6945: Added default value for nil UMM Version from iso19115.

* CMR-6945: Fixed a test.

Co-authored-by: siwei xu <[email protected]>
  • Loading branch information
sxu123 and siwei xu authored Apr 29, 2021
1 parent 0a4d089 commit f7acc67
Show file tree
Hide file tree
Showing 3 changed files with 834 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@
(testing "Collections with nil versions are rejected"
(let [concept (data-umm-c/collection-concept {:Version nil} :iso19115)
response (ingest/ingest-concept concept)]
(is (= {:status 422
:errors ["Version is required."]}
response)))))
(is (= 201
(:status response))))))

(deftest field-exceeding-maxlength-warnings
(testing "Multiple warnings returned for the fields exceeding maxlength allowed"
Expand Down
Loading

0 comments on commit f7acc67

Please sign in to comment.