mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
reject overlapping media and database paths
This commit is contained in:
parent
81a449d1d2
commit
b01b70fc20
20 changed files with 146 additions and 4 deletions
|
|
@ -93,3 +93,21 @@ make_snapshot_test!(
|
|||
"A config with invalid values fails",
|
||||
"invalid-values.toml",
|
||||
);
|
||||
|
||||
make_snapshot_test!(
|
||||
overlapping_paths_equal,
|
||||
"A config with equal paths fails",
|
||||
"equal-paths.toml",
|
||||
);
|
||||
|
||||
make_snapshot_test!(
|
||||
overlapping_paths_media,
|
||||
"A config with the media path inside the database path fails",
|
||||
"media-in-database.toml",
|
||||
);
|
||||
|
||||
make_snapshot_test!(
|
||||
overlapping_paths_database,
|
||||
"A config with the database path inside the media path fails",
|
||||
"database-in-media.toml",
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue