mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-02 10:09:02 +01:00
Cover the copied token recovery read in transport fixtures
Register the existing read-only saved-token recovery recipe with the native guide transport catalogue. Its seven response and TLS cases now run alongside every prior recipe instead of stopping the shared CI inventory. Keep changed methods and endpoints fail-closed. Contract-Neutral: Test fixture catalogue only; documentation, runtime APIs, permissions, installed behaviour and rendered content are unchanged. Change-source: pulse-maintainer
This commit is contained in:
@@ -31,6 +31,7 @@ type pulseAPIRequestContract struct {
|
||||
func pulseAPIRequestContracts() []pulseAPIRequestContract {
|
||||
return []pulseAPIRequestContract{
|
||||
{"summary", "pulse_api GET /api/state/summary", "GET", "/api/state/summary", ""},
|
||||
{"tokens", "pulse_api GET /api/security/tokens", "GET", "/api/security/tokens", ""},
|
||||
{"connections", "pulse_api GET /api/connections", "GET", "/api/connections", ""},
|
||||
{"capabilities", "pulse_api GET /api/agent/resource-capabilities/vm%3A42", "GET", "/api/agent/resource-capabilities/vm%3A42", ""},
|
||||
{"plan", "pulse_api POST /api/actions/plan <<'JSON'", "POST", "/api/actions/plan", "heredoc"},
|
||||
@@ -155,6 +156,8 @@ func TestPulseAPIGuidanceRecipeCatalogueIsCompleteAndOrderIndependent(t *testing
|
||||
{"hidden request", doc + fence("# Request\npulse_api GET /api/state/summary\n"), "must start with"},
|
||||
{"direct curl", doc + fence("curl --disable http://127.0.0.1:7655/api/state/summary\n"), "bypasses"},
|
||||
{"changed method", strings.Replace(doc, "pulse_api GET /api/state/summary\n", "pulse_api PUT /api/state/summary\n", 1), "lacks a transport fixture"},
|
||||
{"changed recovery method", strings.Replace(doc, "pulse_api GET /api/security/tokens\n", "pulse_api POST /api/security/tokens\n", 1), "lacks a transport fixture"},
|
||||
{"changed recovery endpoint", strings.Replace(doc, "pulse_api GET /api/security/tokens\n", "pulse_api GET /api/security/tokens/another-id\n", 1), "lacks a transport fixture"},
|
||||
{"changed node input", strings.Replace(doc, `pulse_api POST /api/config/nodes < "$node_request_file"`, "pulse_api POST /api/config/nodes", 1), "lacks a transport fixture"},
|
||||
{"changed validation method", strings.Replace(doc, "pulse_api POST /api/security/validate-token", "pulse_api GET /api/security/validate-token", 1), "lacks a transport fixture"},
|
||||
{"changed validation input", strings.Replace(doc, `pulse_api POST /api/security/validate-token < "$body_file"`, "pulse_api POST /api/security/validate-token", 1), "lacks a transport fixture"},
|
||||
|
||||
Reference in New Issue
Block a user