Tests for consolidated actions tools
(t *testing.T)
| 17 | // Tests for consolidated actions tools |
| 18 | |
| 19 | func Test_ActionsList(t *testing.T) { |
| 20 | // Verify tool definition once |
| 21 | toolDef := ActionsList(translations.NullTranslationHelper) |
| 22 | require.NoError(t, toolsnaps.Test(toolDef.Tool.Name, toolDef.Tool)) |
| 23 | |
| 24 | assert.Equal(t, "actions_list", toolDef.Tool.Name) |
| 25 | assert.NotEmpty(t, toolDef.Tool.Description) |
| 26 | inputSchema := toolDef.Tool.InputSchema.(*jsonschema.Schema) |
| 27 | assert.Contains(t, inputSchema.Properties, "method") |
| 28 | assert.Contains(t, inputSchema.Properties, "owner") |
| 29 | assert.Contains(t, inputSchema.Properties, "repo") |
| 30 | assert.ElementsMatch(t, inputSchema.Required, []string{"method", "owner", "repo"}) |
| 31 | } |
| 32 | |
| 33 | func Test_ActionsList_ListWorkflows(t *testing.T) { |
| 34 | toolDef := ActionsList(translations.NullTranslationHelper) |
nothing calls this directly
no test coverage detected