reject overlapping media and database paths

This commit is contained in:
Charles Hall 2025-02-28 11:14:52 -08:00
parent 81a449d1d2
commit b01b70fc20
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
20 changed files with 146 additions and 4 deletions

View file

@ -0,0 +1,7 @@
---
source: tests/integrations/check_config.rs
description: A config with the database path inside the media path fails
---
Some(
1,
)

View file

@ -0,0 +1,6 @@
---
source: tests/integrations/check_config.rs
description: A config with the database path inside the media path fails
---
Error: failed to validate configuration
Caused by: database and media paths overlap

View file

@ -0,0 +1,5 @@
---
source: tests/integrations/check_config.rs
description: A config with the database path inside the media path fails
---

View file

@ -0,0 +1,7 @@
---
source: tests/integrations/check_config.rs
description: A config with equal paths fails
---
Some(
1,
)

View file

@ -0,0 +1,6 @@
---
source: tests/integrations/check_config.rs
description: A config with equal paths fails
---
Error: failed to validate configuration
Caused by: database and media paths overlap

View file

@ -0,0 +1,5 @@
---
source: tests/integrations/check_config.rs
description: A config with equal paths fails
---

View file

@ -0,0 +1,7 @@
---
source: tests/integrations/check_config.rs
description: A config with the media path inside the database path fails
---
Some(
1,
)

View file

@ -0,0 +1,6 @@
---
source: tests/integrations/check_config.rs
description: A config with the media path inside the database path fails
---
Error: failed to validate configuration
Caused by: database and media paths overlap

View file

@ -0,0 +1,5 @@
---
source: tests/integrations/check_config.rs
description: A config with the media path inside the database path fails
---