test: add ops hub bootstrap smoke script
Some checks failed
Build and Deploy / build-push-deploy (push) Has been cancelled

This commit is contained in:
2026-05-19 02:49:14 +02:00
parent 45dbe81d57
commit 4381768045
3 changed files with 293 additions and 3 deletions

View File

@@ -4,11 +4,11 @@ type: workplan
title: "VSM Hub Bootstrap API Hardening"
domain: inter_hub
repo: inter-hub
status: active
status: finished
owner: codex
topic_slug: inter_hub
created: "2026-05-16"
updated: "2026-05-16"
updated: "2026-05-19"
planning_priority: high
planning_order: 19
related_repos:
@@ -279,7 +279,7 @@ set.
```task
id: IHUB-WP-0019-T07
status: todo
status: done
priority: medium
state_hub_task_id: "409b5f85-ec97-42e4-ad21-09e91b49639c"
```
@@ -296,6 +296,18 @@ Add a smoke test or scripted check that exercises the full bootstrap path:
Done when: the next VSM hub can be bootstrapped by adapting the same script
and changing only vocabulary/configuration values.
Implementation note (2026-05-19): added executable
`scripts/ops-hub-bootstrap-smoke.py`. The script uses only Python standard
library modules and drives the documented v2 path end to end: creates or
reuses `ops-hub`, creates/activates the ops manifest, creates a fresh runtime
API consumer and one-time key, creates or reuses an ops widget, submits
`ops-endpoint-verified` with metadata, and verifies the event through the v2
list endpoint. It requires `IHUB_OPERATOR_KEY` and accepts `IHUB_BASE` plus hub
identity overrides for adapting the same recipe to another VSM hub. Updated the
quickstart to point to the script. `python3 -m py_compile` and `git diff
--check` passed; the live smoke run itself requires a running Inter-Hub service
and an operator API key.
## Acceptance Criteria
This workplan is complete when: