                               (fn [items]
                                 (map #(select-keys % [:concept-id :revision-id]) items)))]
             (tags/assert-tag-search expected-tags result-tags))
-  
+
           "Tags"
           [tag1])))
 
     ;; Re-enable message publishing.
     (dev-sys-util/eval-in-dev-sys `(cmr.metadata-db.config/set-publish-messages! true))))
 
-(deftest bulk-delete-by-concept-id 
+(deftest bulk-delete-by-concept-id
   (s/only-with-real-database
     (let [coll1 (save-collection 1)
           coll2 (save-collection 2)

  (let [search-items (set (map normalize-search-result-item results))
        exp-items (set (map #(dissoc % :status) expected))]
    (is (= exp-items search-items))))

(defn- get-last-replicated-revision-date
  "Helper to get the last replicated revision date from the database."
  [db]
  (j/with-db-transaction
   [conn db]
   (->> (j/query conn ["SELECT LAST_REPLICATED_REVISION_DATE FROM REPLICATION_STATUS"])
        first
        :last_replicated_revision_date
        (oracle/oracle-timestamp->str-time conn))))

(deftest index-system-concepts-test
  (s/only-with-real-database

      (bootstrap/bulk-index-concepts "PROV1" :collection colls)
      (bootstrap/bulk-index-concepts "PROV1" :granule [(:concept-id gran2)])
      (bootstrap/bulk-index-concepts "PROV1" :tag [(:concept-id tag1)])

      ;; Commented out until ACLs and groups are supported in the index by concept-id API
      ; (bootstrap/bulk-index-concepts "CMR" :access-group [(:concept-id group2)])
      ; (bootstrap/bulk-index-concepts "CMR" :acl [(:concept-id acl2)])
