Skip to content

Commit

Permalink
Updated test_core_omag_server_config
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Wolfson <dwolfson@users.noreply.github.com>
  • Loading branch information
dwolfson committed Dec 31, 2024
1 parent b3b736c commit b64440b
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions tests/test_core_omag_server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 = {
Expand Down

0 comments on commit b64440b

Please sign in to comment.