    (assert-invalid-spatial coord-sys shapes errors :echo10))
   ([coord-sys shapes errors metadata-format]
    (let [shapes (map (partial umm-s/set-coordinate-system coord-sys) shapes)]
-     (assert-invalid 400 {:spatial-coverage (dc/spatial {:gsr coord-sys
-                                                         :sr coord-sys
-                                                         :geometries shapes})}
+     (assert-invalid {:spatial-coverage (dc/spatial {:gsr coord-sys
+                                                     :sr coord-sys
+                                                     :geometries shapes})}
                      ["SpatialCoverage" "Geometries" 0]
                      errors
                      metadata-format))))

                                                  :sr coord-sys
                                                  :geometries shapes})})))

;; This tests that UMM type validations are applied during collection ingest.
;; Thorough tests of UMM validations should go in cmr.umm.test.validation.core and related
;; namespaces.
(deftest collection-umm-validation-test
  (testing "Product specific attribute validation"
    (assert-invalid
      400
      {:product-specific-attributes
       [(dc/psa "bool" :boolean true)
        (dc/psa "bool" :boolean true)]}

        [(m/mbr -180 45 180 46)]
        ["Spatial validation error: The bounding rectangle north value [45] was less than the south value [46]"]))))

(deftest duplicate-id-test
  (testing "entry-title validation"
    (assert-valid
      {:entry-title "ET-1" :concept-id "C1-PROV1" :native-id "Native1"})
    (assert-conflict
      {:entry-title "ET-1" :concept-id "C2-PROV1" :native-id "Native2"}
      ["The Entry Title [ET-1] must be unique. The following concepts with the same entry title were found: [C1-PROV1, C2-PROV1]"])))
