mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +00:00
explicitly test hidden directories
This commit is contained in:
parent
f19d1b5b75
commit
56a4786290
2 changed files with 9 additions and 0 deletions
0
tests/data/content/.well-known/hidden-file
Normal file
0
tests/data/content/.well-known/hidden-file
Normal file
|
|
@ -401,6 +401,15 @@ fn secret_exists() {
|
||||||
assert_eq!(page.status, Status::Gone.value());
|
assert_eq!(page.status, Status::Gone.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
/// - status for paths with hidden segments is "gone" if the respective segment is not the last
|
||||||
|
fn secret_subdir() {
|
||||||
|
let page =
|
||||||
|
get(&["-C"], "gemini://localhost/.well-known/hidden-file").expect("could not get page");
|
||||||
|
|
||||||
|
assert_eq!(page.status, Status::Gone.value());
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
/// - secret file served if `--serve-secret` is enabled
|
/// - secret file served if `--serve-secret` is enabled
|
||||||
fn serve_secret() {
|
fn serve_secret() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue