ci: clear stale qBittorrent container in e2e (#277)
ci / web (push) Successful in 29s
e2e / e2e (push) Successful in 1m16s
ci / rust (push) Successful in 1m36s
ci / image (push) Successful in 13m51s

This commit was merged in pull request #277.
This commit is contained in:
2026-11-11 00:02:06 +00:00
parent 15f4b4a7cb
commit e23293c24d
2 changed files with 48 additions and 3 deletions
+25
View File
@@ -30,6 +30,31 @@ async fn daemon_runs_against_fakes_and_a_real_qbittorrent() {
let daemon = Daemon::spawn(&prowlarr.url(), &tmdb.url(), &qbittorrent_url()).await;
let base = daemon.base_url();
// The seed enables OpenSubtitles, and this daemon has no credentials for
// it, which the health report rightly calls degraded. Nothing here is
// about subtitles, so turn the providers off.
let client = reqwest::Client::new();
let mut settings: serde_json::Value = client
.get(format!("{base}/api/settings/subtitles"))
.send()
.await
.expect("read subtitle settings")
.json()
.await
.expect("subtitle settings json");
settings["providers_enabled"] = serde_json::json!([]);
let saved = client
.put(format!("{base}/api/settings/subtitles"))
.json(&settings)
.send()
.await
.expect("save subtitle settings");
assert!(
saved.status().is_success(),
"{}",
saved.text().await.unwrap_or_default()
);
let health = daemon.health().await;
assert_eq!(health["status"], "ok", "health report: {health}");
assert_eq!(health["prowlarr"]["status"], "ok");