import Config config :logger, level: :warning # Test uses L1 relative to project root config :vav_pipeline, l1_mount_point: "../l1", 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: SHORASHIM_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: "shorashim_test#{System.get_env("MIX_TEST_PARTITION")}", hostname: System.get_env("SHORASHIM_L3_HOST") || "localhost", username: System.get_env("SHORASHIM_L3_USER") || "postgres", password: System.get_env("SHORASHIM_L3_PASSWORD") || "postgres", pool: Ecto.Adapters.SQL.Sandbox, pool_size: System.schedulers_online() * 2, start: System.get_env("SHORASHIM_L3") != nil