feat(auth): admin reset, docs and image smoke test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
42892cb37f
commit
06b9980659
18 files changed
+267
-21
No files matched your search
@@ -1128,3 +1128,19 @@ async fn analyze_failure_has_a_fixed_message() {
|
||||
assert_eq!(r.status, StatusCode::BAD_REQUEST);
|
||||
assert_eq!(r.body, r#"{"error":"analysis failed"}"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn secret_key_file_comes_from_the_environment() {
|
||||
let with = |value: Option<&'static str>| {
|
||||
secret_key_file(&move |name| {
|
||||
assert_eq!(name, "ACAUA_SECRET_KEY_FILE");
|
||||
value.map(String::from)
|
||||
})
|
||||
};
|
||||
assert_eq!(with(None), None);
|
||||
assert_eq!(with(Some(" ")), None);
|
||||
assert_eq!(
|
||||
with(Some("/run/secrets/acaua_key")),
|
||||
Some(PathBuf::from("/run/secrets/acaua_key"))
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user