docs(historian)+infra: shared QuestDB fixture, correct SQL test credential, DurationGood/Bad + #821 docs (#822, #820, #821)
#822: HISTORIAN_SQL_TEST_CONNECTION example now targets the shared host 10.100.0.35,14330 with its committed dev sa password (OtOpcUaDev_2026!); the docker-dev rig's own localhost,14330 password (OtOpcUa!Dev123) is called out as a different instance. New labelled (project: lmxopcua) QuestDB fixture stack tests/.../Historian.QuestDb.IntegrationTests/Docker/docker-compose.yml (questdb/questdb:10.0.1, PG wire :8812, console :19000), deployed to /opt/otopcua-questdb on the Docker host; documented in infra/README.md §2a, docs/Historian.md, CLAUDE.md endpoints and the historian rules. Also corrects infra/README's stale "only MQTT/NAT carry the label" note. Docs for #820 (nineteen served aggregates, DurationGood/DurationBad in ms, Gateway still refuses) and the #821 facts (Part 13 vs frozen live vs stock SDK 2.0.1, both directions; decision open with #809). Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
# QuestDB historian integration-test fixture (#822) — the QuestDB backend's shared, always-available instance.
|
||||
#
|
||||
# Deployed on the shared Docker host (see infra/README.md §1) as /opt/otopcua-questdb:
|
||||
#
|
||||
# rsync -av tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.QuestDb.IntegrationTests/Docker/ \
|
||||
# dohertj2@10.100.0.35:/opt/otopcua-questdb/
|
||||
# ssh dohertj2@10.100.0.35 'cd /opt/otopcua-questdb && docker compose up -d'
|
||||
#
|
||||
# Endpoint (HISTORIAN_QUESTDB_TEST_CONNECTION):
|
||||
# Host=10.100.0.35;Port=8812;Username=admin;Password=quest;Database=qdb;ServerCompatibilityMode=NoTypeLoading
|
||||
# Web console: http://10.100.0.35:19000 (host :9000 is taken on the Docker host).
|
||||
#
|
||||
# admin/quest is QuestDB's stock default — a throwaway dev fixture credential, not a secret. The tests isolate by a
|
||||
# unique table prefix per test class and drop their tables on dispose, so the instance can be shared by concurrent runs.
|
||||
#
|
||||
# Image pinned as in docker-dev/docker-compose.questdb.yml (questdb/questdb:10.0.1, the #666 T0 spike's version; ≥ 8.2.3
|
||||
# for table TTL). cairo.ttl.use.wall.clock stays at its default (true) — the historian relies on it (#674.1).
|
||||
services:
|
||||
questdb:
|
||||
image: questdb/questdb:10.0.1
|
||||
container_name: otopcua-questdb
|
||||
restart: unless-stopped
|
||||
# Every lmxopcua fixture container carries this so the shared Docker host stays
|
||||
# discoverable with `docker ps --filter label=project=lmxopcua`.
|
||||
labels:
|
||||
project: lmxopcua
|
||||
ports:
|
||||
- "8812:8812" # PG wire (the historian backend + tests)
|
||||
- "19000:9000" # web console / REST
|
||||
volumes:
|
||||
- otopcua-questdb-fixture-data:/var/lib/questdb
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fs http://localhost:9003/status || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
volumes:
|
||||
otopcua-questdb-fixture-data:
|
||||
name: otopcua-questdb-fixture-data
|
||||
labels:
|
||||
project: lmxopcua
|
||||
Reference in New Issue
Block a user