mirror of
https://github.com/hanzo-ds/connect.git
synced 2026-10-30 20:31:24 +00:00
The wire protocol was the last holdout and it was not cosmetic: the Hanzo Datastore server reads X-Datastore-User, and answers a request bearing X-ClickHouse-User with 401. Verified against the live server, both directions. So a client still sending the old headers is not merely off-brand, it cannot authenticate over HTTP. Everything else follows: types, dialects, error modules, docstrings and doc links now name Datastore, and doc URLs point at docs.hanzo.ai/datastore rather than the upstream vendor's site. Zero occurrences of the old name remain. Still cut from the pinned upstream version, so behaviour is unchanged.
20 lines
679 B
Python
20 lines
679 B
Python
from typing import Iterator
|
|
from pytest import fixture
|
|
|
|
from sqlalchemy.engine import create_engine
|
|
from sqlalchemy.engine.base import Engine
|
|
|
|
from tests.integration_tests.conftest import TestConfig
|
|
|
|
|
|
@fixture(scope='module', name='test_engine')
|
|
def test_engine_fixture(test_config: TestConfig) -> Iterator[Engine]:
|
|
test_engine: Engine = create_engine(
|
|
f'datastoredb://{test_config.username}:{test_config.password}@{test_config.host}:' +
|
|
f'{test_config.port}/{test_config.test_database}?ch_http_max_field_name_size=99999' +
|
|
'&use_skip_indexes=0&ca_cert=certifi&query_limit=2333&compression=zstd'
|
|
)
|
|
|
|
yield test_engine
|
|
test_engine.dispose()
|