mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
fix(data): repair request candidate epoch created_at (#343)
Co-authored-by: fawney19 <elky0401@gmail.com>
This commit is contained in:
@@ -300,19 +300,17 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn admin_user_api_formats_reject_retired_signatures() {
|
||||
for retired in [
|
||||
"anthropic:messages",
|
||||
"claude:chat",
|
||||
"claude:cli",
|
||||
"openai:cli",
|
||||
"openai:compact",
|
||||
"gemini:chat",
|
||||
"gemini:cli",
|
||||
fn admin_user_api_formats_reject_unsupported_signatures() {
|
||||
for unsupported in [
|
||||
"claude",
|
||||
"openai",
|
||||
"unknown:chat",
|
||||
"openai:unknown",
|
||||
"gemini:generate",
|
||||
] {
|
||||
assert!(
|
||||
normalize_admin_user_api_formats(Some(vec![retired.to_string()])).is_err(),
|
||||
"{retired} should be rejected"
|
||||
normalize_admin_user_api_formats(Some(vec![unsupported.to_string()])).is_err(),
|
||||
"{unsupported} should be rejected"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user