Skip to content

Commit f36547d

Browse files
CMR-11242: Removing test and obe comment
1 parent 5e6c3a9 commit f36547d

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

ingest-app/src/cmr/ingest/services/ingest_service/granule.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
(validate-granule context concept
9696
(constantly [parent-collection-concept
9797
collection]))))
98-
;; Declared because of a circular dependency in `validate granule`
9998
(declare save-granule context concept)
10099
(defn-timed save-granule
101100
"Store a concept in mdb and indexer and return concept-id and revision-id."

system-int-test/test/cmr/system_int_test/ingest/granule/granule_ingest_test.clj

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -768,28 +768,3 @@
768768
; :stop-orbit-number 1}
769769
; [(str "/OrbitCalculatedSpatialDomains/0 instance failed to match all required schemas "
770770
; "(matched only 1 out of 2)")]
771-
772-
(deftest ingest-umm-g-granule-warning-test
773-
(let [collection (data-core/ingest-umm-spec-collection
774-
"PROV1" (data-umm-c/collection {:EntryTitle "correct"
775-
:ShortName "S1"
776-
:Version "V1"
777-
:Projects [{:ShortName "proj-A"
778-
:cmr-humanized/ShortName {:value "proj-human" :priority 0}}
779-
{:ShortName "proj-B"
780-
:cmr-humanized/ShortName {:value "proj-human" :priority 0}}]
781-
:Platforms (data-umm-c/platforms "p1" "p2" "AM-1" "p4")})
782-
{:validate-keywords false})
783-
_ (side/eval-form `(cfg/set-enforce-granule-collection-consistency! false))
784-
granule (-> (dg/granule-with-umm-spec-collection
785-
collection (:concept-id collection) {:granule-ur "Gran1"
786-
:collection-ref (umm-g/map->CollectionRef {:entry-title "correct"})
787-
:platform-refs [(dg/platform-ref-with-instrument-ref-and-sensor-refs-and-operational-mode "p2" "i2" "s1")]
788-
:project-refs ["KLM"]})
789-
(data-core/item->concept :umm-json))
790-
{:keys [status errors warnings]} (ingest/ingest-concept granule)]
791-
(index/wait-until-indexed)
792-
(testing "Ensure with validation turned off, ingest succeeds for a collection and granule that have different fields previously erroring"
793-
(is (= 201 status))
794-
(is (= nil errors))
795-
(is (= "Granule had the following warnings: [[:platform-refs 0 :instrument-refs] [\"The following list of Instrument short names did not exist in the referenced parent collection: [i2].\"]];; [[:platform-refs 0 :instrument-refs 0 :sensor-refs] [\"The following list of Sensor short names did not exist in the referenced parent collection: [s1].\"]];; [[:platform-refs 0 :instrument-refs 0] [\"The following list of Instrument operation modes did not exist in the referenced parent collection: [Mode1, Mode2].\"]];; [[:project-refs] [\"%s have [klm, not provided] which do not reference any projects in parent collection.\"]]" warnings)))))

0 commit comments

Comments
 (0)