   (poly/polygon [(apply umm-s/ords->ring ords)]))
 
 (defn assert-invalid
-  ([status-code coll-attributes field-path errors]
-   (assert-invalid status-code coll-attributes field-path errors :echo10))
-  ([status-code coll-attributes field-path errors metadata-format]
-   (let [collection (assoc (dc/collection coll-attributes) :native-id (:native-id coll-attributes))
-         response (d/ingest "PROV1" collection metadata-format)]
-     (is (= {:status status-code
-             :errors (if field-path
-                       [{:path field-path :errors errors}]
-                       errors)}
+  ([coll-attributes field-path errors]
+   (assert-invalid coll-attributes field-path errors :echo10))
+  ([coll-attributes field-path errors metadata-format]
+   (let [response (d/ingest "PROV1" (dc/collection coll-attributes) metadata-format)]
+     (is (= {:status 400
+             :errors [{:path field-path
+                       :errors errors}]}
             (select-keys response [:status :errors]))))))
 
 (defn assert-valid

   (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})}
                     ["SpatialCoverage" "Geometries" 0]
                     errors
                     metadata-format))))

        [(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]"])))
