homelab: Import in der Route „Alle Update-Rückwege löschen“ nachgetragen (ruff F821), Test ruft sie auf; Logo-Skript ruff-sauber
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5c6e73c69c
commit
4b57a12257
@@ -455,6 +455,12 @@ def test_schnittstelle(host):
|
||||
antwort = c.post("/api/homelab/snapshots/ct-104/vor-dem-umbau/loeschen")
|
||||
assert antwort.status_code == 409 and "Proxmox" in antwort.json()["detail"]
|
||||
assert c.post("/api/homelab/sicherungen/ct-105/fremd.tar.zst/loeschen").status_code == 409
|
||||
# Aufräumen: ohne Rückwege 409 mit Grund, sonst startet es (hier gibt es zwei).
|
||||
antwort = c.post("/api/homelab/snapshots/rueckwege-loeschen")
|
||||
assert antwort.status_code == 200 and antwort.json() == {"ok": True, "anzahl": 2}
|
||||
ende = time.time() + 20
|
||||
while snapshots._AUFRAEUMEN.is_set() and time.time() < ende:
|
||||
time.sleep(0.05)
|
||||
antwort = c.post("/api/homelab/snapshots/ct-102/anlegen")
|
||||
assert antwort.status_code == 200 and antwort.json()["ok"] is True
|
||||
lauf = _auf_ende(antwort.json())
|
||||
|
||||
Reference in New Issue
Block a user