Skip to content

Commit 2ce472f

Browse files
committed
fix health check tests
1 parent 3c047e9 commit 2ce472f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

access-control-app/src/cmr/access_control/api/routes.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@
271271
{:status 204})
272272
(POST "/db-migrate" {ctx :request-context}
273273
(acl/verify-ingest-management-permission ctx :update)
274-
(println "10636- we are in /db-migrate")
275274
;; TODO 10636 fix me we are defaulting to the gran-search-index only for now
276275
(index/create-index-or-update-mappings (-> ctx :system :gran-search-index))
277276
{:status 204})))

system-int-test/test/cmr/system_int_test/misc/health_test.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
(def good-indexer-health
2929
{:ok? true
30-
:dependencies {:elastic_search {:ok? true}
30+
:dependencies {:gran-elastic {:ok? true}
31+
:non-gran-elastic {:ok? true}
3132
:message-queue {:ok? true}
3233
:metadata-db good-metadata-db-health}})
3334

@@ -63,7 +64,8 @@
6364

6465
(deftest ^:oracle indexer-health-test
6566
(s/only-with-real-database
66-
(is (= [200 {:elastic_search {:ok? true}
67+
(is (= [200 {:gran-elastic {:ok? true}
68+
:non-gran-elastic {:ok? true}
6769
:message-queue {:ok? true}
6870
:metadata-db good-metadata-db-health}]
6971
(get-app-health (url/indexer-health-url))))))

0 commit comments

Comments
 (0)