From b64440b144e844222fdd2bf95e8acc391cb7f0c6 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Tue, 31 Dec 2024 14:23:33 -0600 Subject: [PATCH] Updated test_core_omag_server_config Signed-off-by: Dan Wolfson --- tests/test_core_omag_server_config.py | 35 +++++++++++++++------------ 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/tests/test_core_omag_server_config.py b/tests/test_core_omag_server_config.py index ed7bad7..e7b388d 100644 --- a/tests/test_core_omag_server_config.py +++ b/tests/test_core_omag_server_config.py @@ -817,7 +817,7 @@ def test_set_plug_in_repository(self, server: str = good_server_2): print_exception_response(e) assert False, "Invalid request" - def test_set_xtdb_in_mem_repository(self, server: str = good_server_1): + def test_set_xtdb_in_mem_repository(self, server: str = "active-metadata-store"): try: o_client: CoreServerConfig = CoreServerConfig( self.good_server_2, self.good_platform1_url, self.good_user_1 @@ -853,7 +853,7 @@ def test_set_xtdb_local_kv_repository(self, server: str = good_server_3): print_exception_response(e) assert False, "Invalid request" - def test_set_xtdb_local_repository(self, server: str = good_server_3): + def test_set_xtdb_local_repository(self, server: str = "active-metadata-store"): try: o_client: CoreServerConfig = CoreServerConfig( self.good_server_3, self.good_platform1_url, self.good_user_1 @@ -865,19 +865,24 @@ def test_set_xtdb_local_repository(self, server: str = good_server_3): "connectorProviderClassName": "org.odpi.egeria.connectors.juxt.xtdb.repositoryconnector.XtdbOMRSRepositoryConnectorProvider", }, "configurationProperties": { - "xtdbConfigEDN": """{:xtdb/index-store {:kv-store {:xtdb/module xtdb.rocksdb/->kv-store :db-dir "data/servers/active-metadata-store/rdb-index"}} - :xtdb.lucene/lucene-store {:db-dir "data/servers/active-metadata-store/lucene" - :indexer {:xtdb/module xtdb.lucene.egeria/->egeria-indexer} - :analyzer {:xtdb/module xtdb.lucene.egeria/->ci-analyzer}} - :xtdb.jdbc/connection-pool {:dialect {:xtdb/module xtdb.jdbc.psql/->dialect} - :db-spec {:jdbcUrl "jdbc:postgresql://host.docker.internal:5442/active-metadata-store?user=postgres&password=egeria"}} - :xtdb/tx-log {:xtdb/module xtdb.jdbc/->tx-log - :connection-pool :xtdb.jdbc/connection-pool - :poll-sleep-duration "PT1S"} - :xtdb/document-store {:xtdb/module xtdb.jdbc/->document-store - :connection-pool :xtdb.jdbc/connection-pool}}""", - "syncIndex": True, - }, + "xtdbConfigEDN": """{ :xtdb.lucene/lucene-store {:indexer {:xtdb/module xtdb.lucene.egeria/->egeria-indexer} + :analyzer {:xtdb/module xtdb.lucene.egeria/->ci-analyzer} + }""" + } + # "configurationProperties": { + # "xtdbConfigEDN": """{:xtdb/index-store {:kv-store {:xtdb/module xtdb.rocksdb/->kv-store :db-dir "data/servers/active-metadata-store/rdb-index"}} + # :xtdb.lucene/lucene-store {:db-dir "data/servers/active-metadata-store/lucene" + # :indexer {:xtdb/module xtdb.lucene.egeria/->egeria-indexer} + # :analyzer {:xtdb/module xtdb.lucene.egeria/->ci-analyzer}} + # :xtdb.jdbc/connection-pool {:dialect {:xtdb/module xtdb.jdbc.psql/->dialect} + # :db-spec {:jdbcUrl "jdbc:postgresql://host.docker.internal:5442/active-metadata-store?user=postgres&password=egeria"}} + # :xtdb/tx-log {:xtdb/module xtdb.jdbc/->tx-log + # :connection-pool :xtdb.jdbc/connection-pool + # :poll-sleep-duration "PT1S"} + # :xtdb/document-store {:xtdb/module xtdb.jdbc/->document-store + # :connection-pool :xtdb.jdbc/connection-pool}}""", + # "syncIndex": True, + # }, } # body = {