Skip to content

Commit 78d6c40

Browse files
committed
minor clean up of tests
1 parent 2c46b5e commit 78d6c40

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

indexer-app/int-test/cmr/indexer/test/valid_data_crud_tests.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
[clojurewerkz.elastisch.rest.index :as esi]
77
[cmr.elastic-utils.config :as es-config]
88
[cmr.elastic-utils.es-index-helper :as esi-helper]
9-
[cmr.indexer.indexer-util :as indexer-util]
109
[cmr.indexer.services.index-set-service :as svc]
1110
[cmr.indexer.test.utility :as util]))
1211

@@ -83,7 +82,10 @@
8382
_ (is (= 204 status))
8483
{:keys [status resp]} (util/get-index-set index-set-id)
8584
_ (is (= 404 status))]
86-
(is (empty? (:body resp)))))))
85+
(is (empty? (:body resp)))
86+
;; indices should be removed from both clusters
87+
(is (not (esi/exists? @util/elastic-connection coll-idx-name)))
88+
(is (not (esi/exists? @util/gran-elastic-connection gran-idx-name)))))))
8789

8890
;; Verify get index-sets fetches all index-sets in elastic.
8991
;; Create 2 index-sets with different ids but with same number of concepts and indices associated

indexer-app/test/cmr/indexer/test/services/index_set_service_test.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
[cheshire.core :as json]
55
[clojure.test :refer :all]
66
[cmr.elastic-utils.config :as es-config]
7-
[cmr.indexer.data.index-set :as index-set]
87
[cmr.common.util :refer [are3]]
98
[cmr.indexer.data.index-set-generics :as index-set-gen]
109
[cmr.indexer.services.index-set-service :as svc]

0 commit comments

Comments
 (0)