Files
bikoret/vav_pipeline/config/test.exs
T
Scott KarpandClaude Fable 5.1 c0d0555aed the name: Bikoret — code, contracts, images
Headers X-Bikoret-Key / -Rebuke / -Verdict / -Bedikah; the `bikoret`
object and the "— bikoret …" fringe on a gate reply; environment
variables BIKORET_*; the image user and paths (/home/bikoret,
/tmp/bikoret, /var/lib/bikoret/manna, /etc/bikoret/secrets,
/opt/bikoret/spec); the tmp-bikoret pod volume; local databases
bikoret_dev/_test. Kubernetes resource names, the shorashim_app role and
the domain are unchanged (Tamid §1.1, "the names that still carry the
old word"). Doorpost c963c4fe…. Elixir 604/0, L3 10/0, korban 295,
Prolog bedikah 44/44. Gitea repo renamed heaviness510/bikoret (old URL
redirects).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 22:13:36 +00:00

37 lines
1.5 KiB
Elixir

import Config
config :logger, level: :warning
# Test uses L1 relative to project root
config :vav_pipeline,
l1_mount_point: "../l1",
mesorah_mount_point: "../mesorah",
manna_provision_file: "test/fixtures/manna/today.json",
api_keys_file: "test/fixtures/api_keys",
# Wide open for the suite (Day 6/7 tests knock many times a second);
# tablet46_mishmar_test narrows them and resets.
rate_limits: [
peah: [minute: 10_000, hour: 100_000],
courtyard: [minute: 10_000, hour: 100_000],
chatzer: [minute: 10_000, hour: 100_000]
],
cycle_boundary_check_interval_ms: :timer.hours(24),
http_port: 0
# L3 test database — separate from dev, uses sandbox pool
# Repo start disabled by default — L3 tests need PostgreSQL running locally
# Enable: BIKORET_L3=1 mix test --include l3
#
# Credentials come from the environment (tablet 44: without a password
# the SCRAM handshake raised KeyError in every connection, the pool hit
# its restart intensity, and the whole application went down silently
# ~30 ms after test_helper — no L3 test ever ran).
config :vav_pipeline, VavPipeline.Repo,
database: "bikoret_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: System.get_env("BIKORET_L3_HOST") || "localhost",
username: System.get_env("BIKORET_L3_USER") || "postgres",
password: System.get_env("BIKORET_L3_PASSWORD") || "postgres",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: System.schedulers_online() * 2,
start: System.get_env("BIKORET_L3") != nil