ebea70573b
- Repository structure for all services, infra, lakehouse, dashboards - K8s manifests targeting stonks-oracle namespace with GHCR images - Ingress via Traefik with ca-issuer TLS for internal services - ConfigMap wired to existing cluster services (pg, redis, minio, ollama) - GitHub Actions workflow for lint, test, multi-service container builds - Dockerfile with build-arg CMD per service - Makefile for local build/push/deploy - Steering rules for TDD workflow, K8s conventions, project context - Agent hooks for lint-on-save, test-on-save, k8s-validate, phase-commit - Ruff linter config, all lint issues fixed - 14 passing tests for schemas, config, redis keys - PostgreSQL migrations, Trino catalogs, Superset config, MinIO lifecycle
23 lines
546 B
Python
23 lines
546 B
Python
"""Basic tests for shared config loader."""
|
|
from services.shared.config import load_config, AppConfig
|
|
|
|
|
|
def test_load_config_returns_app_config():
|
|
config = load_config()
|
|
assert isinstance(config, AppConfig)
|
|
|
|
|
|
def test_postgres_dsn_format():
|
|
config = load_config()
|
|
assert config.postgres.dsn.startswith("postgresql://")
|
|
|
|
|
|
def test_redis_url_format():
|
|
config = load_config()
|
|
assert config.redis.url.startswith("redis://")
|
|
|
|
|
|
def test_default_broker_mode():
|
|
config = load_config()
|
|
assert config.broker.mode == "paper"
|