ci: clear stale qBittorrent container in e2e #277

Merged
naps62-yolo merged 2 commits from ci/e2e-stale-container into main 2026-11-11 00:02:06 +00:00
Showing only changes of commit 9d67c44649 - Show all commits
+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");