#!/usr/bin/env python3 """R-744 on 9202: outline 1.10.1 (the live pin) installed through the product, the catalog's box fixture (with the fix) seeds through outline's own first-run API, then verify() reads it back (and requires an unknown id -> not found and a wrong key -> refused). Then removed.""" import os, sys sys.path.insert(0, "/mnt/5_hdd/felhom.eu/git/app-catalog-felhom.eu/scripts") os.environ.setdefault("SC", "/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/b4d68b9b-a6cf-4d21-8220-ece956837fc3/scratchpad") import box_walk as w import upgrade_fixtures_box as fx w.login() f = fx.Outline() w.say("deploy:", w.deploy("outline", "kb")) w.say("running:", w.guest("docker inspect outline --format '{{.Config.Image}}'").strip()) t = f.seed(w, "kb", w.say) w.say("seed:", "OK" if t else "FAILED - " + getattr(f, "tried", "?")) if t: w.say("verify (read back + unknown id + wrong key):", f.verify(w, "kb", t, w.say)) w.remove("outline") w.say("removed; deployed =", w.stack("outline").get("deployed"))