(t *testing.T)
| 311 | } |
| 312 | |
| 313 | func 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 | |
| 330 | func Test_ActionsRunTrigger_RunWorkflow(t *testing.T) { |
| 331 | toolDef := ActionsRunTrigger(translations.NullTranslationHelper) |
nothing calls this directly
no test coverage detected