Add a "check-config" command to validate config files & tests for it

This commit is contained in:
Andreas Fuchs 2024-10-04 10:49:08 -04:00
parent 70ee206031
commit 26ba489aa3
24 changed files with 492 additions and 0 deletions

View file

@ -0,0 +1,12 @@
---
source: tests/integrations/check_config.rs
description: A config with invalid keys fails
snapshot_kind: text
---
Error: failed to validate configuration
Caused by: failed to parse configuration file "tests/integrations/fixtures/check_config/invalid-keys.toml"
Caused by: TOML parse error at line 1, column 1
|
1 | some_name = "example.com"
| ^^^^^^^^^^^^^^^^^^^^^^^^^
missing field `server_name`