MCPcopy Create free account
hub / github.com/github/gh-aw / TestPiEngine_GetRequiredSecretNames

Function TestPiEngine_GetRequiredSecretNames

pkg/workflow/pi_engine_test.go:35–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestPiEngine_GetRequiredSecretNames(t *testing.T) {
36 engine := NewPiEngine()
37 workflowData := &WorkflowData{Name: "test-workflow"}
38 secrets := engine.GetRequiredSecretNames(workflowData)
39 assert.Contains(t, secrets, "COPILOT_GITHUB_TOKEN", "Required secrets should include COPILOT_GITHUB_TOKEN")
40 assert.NotContains(t, secrets, "PI_API_KEY", "Required secrets should not include PI_API_KEY")
41}
42
43func TestPiEngine_GetRequiredSecretNames_CopilotProvider(t *testing.T) {
44 engine := NewPiEngine()

Callers

nothing calls this directly

Calls 2

NewPiEngineFunction · 0.85

Tested by

no test coverage detected