generated from coulomb/repo-seed
Wire ops inventory probes for Railiance
This commit is contained in:
@@ -184,6 +184,25 @@ def test_inter_hub_sink_skips_cleanly_when_config_missing(monkeypatch) -> None:
|
||||
]
|
||||
|
||||
|
||||
def test_inter_hub_sink_accepts_widget_mapping_from_env(monkeypatch) -> None:
|
||||
monkeypatch.delenv("INTER_HUB_URL", raising=False)
|
||||
monkeypatch.delenv("OPS_HUB_KEY", raising=False)
|
||||
monkeypatch.setenv("OPS_HUB_WIDGET_MAPPING", "ops:endpoint:gitea-registry")
|
||||
|
||||
result = persist_ops_inventory_evidence(
|
||||
_payload([{"type": "inter-hub-interaction-event"}])
|
||||
)
|
||||
|
||||
assert result == [
|
||||
{
|
||||
"type": "inter-hub-interaction-event",
|
||||
"status": "skipped",
|
||||
"reason": "missing_inter_hub_config",
|
||||
"missing": ["INTER_HUB_URL", "OPS_HUB_KEY"],
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
def test_no_evidence_sinks_returns_no_results() -> None:
|
||||
payload = _payload([])
|
||||
payload["context_sources"][0]["params"] = {}
|
||||
|
||||
Reference in New Issue
Block a user