fixtures: nextcloud waits for occ status installed:true, not only /status.php 200
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -408,6 +408,16 @@ class Nextcloud:
|
||||
def seed(self, w, sub, say):
|
||||
if not w.wait_app(sub, "/status.php", want=("200",), tries=120):
|
||||
return None
|
||||
# /status.php answers 200 while the image's own first-run install is still going — measured
|
||||
# 2026-09-23 night on a loaded bench: `occ` then says "Nextcloud is not installed". Ask occ.
|
||||
for i in range(60):
|
||||
st = self._occ(w, "status", timeout=120)
|
||||
if "installed: true" in st:
|
||||
break
|
||||
time.sleep(5)
|
||||
else:
|
||||
say(f" nextcloud: occ status never said installed: {' '.join(st.split())[:160]}")
|
||||
return None
|
||||
uid = "drill" + secrets.token_hex(3)
|
||||
pw = "Drill-" + secrets.token_hex(10)
|
||||
out = w.guest(
|
||||
|
||||
Reference in New Issue
Block a user