Move the v0.2 showcase into its own runbook directory so the UI can open it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: sonnet Assistant-Process: 295952@bnt-lap001 Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
This commit is contained in:
parent
9224b8235b
commit
c9ec4fb382
6 changed files with 9 additions and 12 deletions
|
|
@ -10,7 +10,7 @@ import yaml
|
|||
from rtut import pack as P, run as R1, run2 as R
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
SRC = yaml.safe_load((ROOT / "runbooks/showcase-lighthouse/pack.v0.2.yaml").read_text())
|
||||
SRC = yaml.safe_load((ROOT / "runbooks/showcase-lighthouse-v2/pack.yaml").read_text())
|
||||
PHRASE = "I understand this cannot be undone"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ def psrv(tmp_path):
|
|||
hello["parameters"] = [{"id": "host", "label": "Host to ping", "type": "string", "pattern": "[a-zA-Z0-9.-]+"},
|
||||
{"id": "count", "label": "Ping count", "type": "int", "default": 1}]
|
||||
write(repo / "runbooks/hello/pack.yaml", hello)
|
||||
v2 = yaml.safe_load((ROOT / "runbooks/showcase-lighthouse/pack.v0.2.yaml").read_text())
|
||||
v2 = yaml.safe_load((ROOT / "runbooks/showcase-lighthouse-v2/pack.yaml").read_text())
|
||||
v2["id"] = "rtut.showcase-lighthouse-v2"
|
||||
write(repo / "runbooks/lh2/pack.yaml", v2)
|
||||
for f in (ROOT / "attribute-sets").glob("*.yaml"):
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ _scratch = []
|
|||
@pytest.fixture
|
||||
def s2(tmp_path):
|
||||
d = tmp_path / "runbooks" / "lh"; d.mkdir(parents=True)
|
||||
shutil.copy(ROOT / "runbooks/showcase-lighthouse/pack.v0.2.yaml", d / "pack.yaml")
|
||||
shutil.copy(ROOT / "runbooks/showcase-lighthouse-v2/pack.yaml", d / "pack.yaml")
|
||||
s = ui.serve([tmp_path], 0)
|
||||
threading.Thread(target=s.serve_forever, daemon=True).start()
|
||||
yield s
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import yaml
|
|||
from rtut import pack as P, run as R, v2
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
FILE = ROOT / "runbooks/showcase-lighthouse/pack.v0.2.yaml"
|
||||
FILE = ROOT / "runbooks/showcase-lighthouse-v2/pack.yaml"
|
||||
GOOD = yaml.safe_load(FILE.read_text())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue