(t *testing.T)
| 208 | } |
| 209 | |
| 210 | func TestLoad_UnsupportedTelemetryExporter(t *testing.T) { |
| 211 | cfgPath := writeTempConfig(t, ` |
| 212 | telemetry: |
| 213 | exporter: unsupported-kind |
| 214 | backends: |
| 215 | - name: b1 |
| 216 | type: mock |
| 217 | timeout_ms: 100 |
| 218 | cost: { unit: 1, currency: credit } |
| 219 | tenants: |
| 220 | - id: t1 |
| 221 | routing: |
| 222 | default_backend: b1 |
| 223 | reliability: |
| 224 | fallback_enabled: false |
| 225 | `) |
| 226 | |
| 227 | _, err := Load(cfgPath) |
| 228 | if err == nil || !strings.Contains(err.Error(), "unsupported telemetry exporter") { |
| 229 | t.Fatalf("expected unsupported telemetry exporter error, got: %v", err) |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | func TestLoad_OTLPHTTPRequiresEndpoint(t *testing.T) { |
| 234 | cfgPath := writeTempConfig(t, ` |
nothing calls this directly
no test coverage detected