conversions web + put table definition
This commit is contained in:
@@ -367,12 +367,11 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
/// The exchange-rate page is read-only and behind a session like every
|
||||
/// other page, so an anonymous visitor is sent to the login page rather
|
||||
/// than to the backend.
|
||||
/// Exchange-rate administration is behind a session; the former ECB page
|
||||
/// remains as a stable redirect into the provider section.
|
||||
#[tokio::test]
|
||||
async fn the_exchange_rate_pages_are_mounted_and_need_a_session() {
|
||||
for path in ["/admin/ecb", "/admin/ecb/status"] {
|
||||
for path in ["/admin/exchange-rates", "/admin/ecb/status"] {
|
||||
let (status, _) = get(path).await;
|
||||
assert_eq!(
|
||||
status,
|
||||
@@ -380,6 +379,9 @@ mod tests {
|
||||
"{path} did not send an anonymous visitor to the login page"
|
||||
);
|
||||
}
|
||||
|
||||
let (status, _) = get("/admin/ecb").await;
|
||||
assert_eq!(status, axum::http::StatusCode::PERMANENT_REDIRECT);
|
||||
}
|
||||
|
||||
/// Permissions is a nav section of its own, so its three pages are mounted
|
||||
|
||||
Reference in New Issue
Block a user