MCPcopy
hub / github.com/github/github-mcp-server / Test_ActionsRunTrigger

Function Test_ActionsRunTrigger

pkg/github/actions_test.go:313–328  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

311}
312
313func Test_ActionsRunTrigger(t *testing.T) {
314 // Verify tool definition once
315 toolDef := ActionsRunTrigger(translations.NullTranslationHelper)
316 require.NoError(t, toolsnaps.Test(toolDef.Tool.Name, toolDef.Tool))
317
318 assert.Equal(t, "actions_run_trigger", toolDef.Tool.Name)
319 assert.NotEmpty(t, toolDef.Tool.Description)
320 inputSchema := toolDef.Tool.InputSchema.(*jsonschema.Schema)
321 assert.Contains(t, inputSchema.Properties, "method")
322 assert.Contains(t, inputSchema.Properties, "owner")
323 assert.Contains(t, inputSchema.Properties, "repo")
324 assert.Contains(t, inputSchema.Properties, "workflow_id")
325 assert.Contains(t, inputSchema.Properties, "ref")
326 assert.Contains(t, inputSchema.Properties, "run_id")
327 assert.ElementsMatch(t, inputSchema.Required, []string{"method", "owner", "repo"})
328}
329
330func Test_ActionsRunTrigger_RunWorkflow(t *testing.T) {
331 toolDef := ActionsRunTrigger(translations.NullTranslationHelper)

Callers

nothing calls this directly

Calls 2

TestFunction · 0.92
ActionsRunTriggerFunction · 0.85

Tested by

no test coverage detected