fix: Freigeben hielt die Datenbanksperre und legte den Dienst lahm; Stimmen-Seite als Tabelle mit passendem Modell; Probehören mit gemeinsamem Ton-Ausgang; Version 0.1.15-rc12
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg6k5Hxh8GpVW7od4Di
This commit is contained in:
@ -4625,3 +4625,23 @@ async fn studio_starten_braucht_admin_und_csrf() {
|
||||
let (status, _, _) = ui_post(&gw, "/ui/modelle/studio-start", &admin_cookie, "").await;
|
||||
assert_eq!(status, 403);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn stimme_ueber_die_oberflaeche_freigeben_haengt_nicht() {
|
||||
// Fehler srv04 (rc11): Der Knopf „Freigeben“ hielt die Datenbanksperre und schrieb dann ins Audit;
|
||||
// der ganze Dienst stand still. Bei einem Rückfall hängt dieser Test, statt zu scheitern.
|
||||
let gw = gateway(0, false).await;
|
||||
let (cookie, csrf) = ui_session(&gw, &gw.key_ui).await;
|
||||
let body = format!("csrf={csrf}&stimme=Ryan&gespeichert=1&freigabe=1");
|
||||
let (status, _, _) = ui_post(&gw, "/ui/modelle/stimme", &cookie, &body).await;
|
||||
assert_eq!(status, 303);
|
||||
assert!(
|
||||
gw.state
|
||||
.store()
|
||||
.voice_approved("Ryan", true, TEST_NUTZER)
|
||||
.unwrap()
|
||||
);
|
||||
// Und die Seite danach antwortet noch.
|
||||
let (status, _, _) = ui_get(&gw, "/ui/modelle?art=sprache", Some(&cookie)).await;
|
||||
assert_eq!(status, 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user