@@ -15,10 +15,10 @@ import (
1515 "github.com/github/github-mcp-server/internal/profiler"
1616 "github.com/github/github-mcp-server/internal/toolsnaps"
1717 buffer "github.com/github/github-mcp-server/pkg/buffer"
18+ mock "github.com/github/github-mcp-server/pkg/github/testmock"
1819 "github.com/github/github-mcp-server/pkg/translations"
1920 "github.com/google/go-github/v79/github"
2021 "github.com/google/jsonschema-go/jsonschema"
21- "github.com/migueleliasweb/go-github-mock/src/mock"
2222 "github.com/stretchr/testify/assert"
2323 "github.com/stretchr/testify/require"
2424)
@@ -1540,7 +1540,7 @@ func Test_ListWorkflowRuns_Behavioral(t *testing.T) {
15401540 name : "successful workflow runs listing" ,
15411541 mockedClient : mock .NewMockedHTTPClient (
15421542 mock .WithRequestMatchHandler (
1543- mock .GetReposActionsWorkflowsRunsByOwnerByRepoByWorkflowId ,
1543+ mock .GetReposActionsWorkflowsRunsByOwnerByRepoByWorkflowID ,
15441544 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
15451545 runs := & github.WorkflowRuns {
15461546 TotalCount : github .Ptr (2 ),
@@ -1627,7 +1627,7 @@ func Test_GetWorkflowRun_Behavioral(t *testing.T) {
16271627 name : "successful get workflow run" ,
16281628 mockedClient : mock .NewMockedHTTPClient (
16291629 mock .WithRequestMatchHandler (
1630- mock .GetReposActionsRunsByOwnerByRepoByRunId ,
1630+ mock .GetReposActionsRunsByOwnerByRepoByRunID ,
16311631 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
16321632 run := & github.WorkflowRun {
16331633 ID : github .Ptr (int64 (12345 )),
@@ -1703,7 +1703,7 @@ func Test_GetWorkflowRunLogs_Behavioral(t *testing.T) {
17031703 name : "successful get workflow run logs" ,
17041704 mockedClient : mock .NewMockedHTTPClient (
17051705 mock .WithRequestMatchHandler (
1706- mock .GetReposActionsRunsLogsByOwnerByRepoByRunId ,
1706+ mock .GetReposActionsRunsLogsByOwnerByRepoByRunID ,
17071707 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
17081708 w .Header ().Set ("Location" , "https://github.com/logs/run/12345" )
17091709 w .WriteHeader (http .StatusFound )
@@ -1773,7 +1773,7 @@ func Test_ListWorkflowJobs_Behavioral(t *testing.T) {
17731773 name : "successful list workflow jobs" ,
17741774 mockedClient : mock .NewMockedHTTPClient (
17751775 mock .WithRequestMatchHandler (
1776- mock .GetReposActionsRunsJobsByOwnerByRepoByRunId ,
1776+ mock .GetReposActionsRunsJobsByOwnerByRepoByRunID ,
17771777 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
17781778 jobs := & github.Jobs {
17791779 TotalCount : github .Ptr (2 ),
@@ -1954,7 +1954,7 @@ func Test_ActionsList_ListWorkflowRuns(t *testing.T) {
19541954 t .Run ("successful workflow runs list" , func (t * testing.T ) {
19551955 mockedClient := mock .NewMockedHTTPClient (
19561956 mock .WithRequestMatchHandler (
1957- mock .GetReposActionsWorkflowsRunsByOwnerByRepoByWorkflowId ,
1957+ mock .GetReposActionsWorkflowsRunsByOwnerByRepoByWorkflowID ,
19581958 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
19591959 runs := & github.WorkflowRuns {
19601960 TotalCount : github .Ptr (1 ),
@@ -2070,7 +2070,7 @@ func Test_ActionsGet_GetWorkflow(t *testing.T) {
20702070 t .Run ("successful workflow get" , func (t * testing.T ) {
20712071 mockedClient := mock .NewMockedHTTPClient (
20722072 mock .WithRequestMatchHandler (
2073- mock .GetReposActionsWorkflowsByOwnerByRepoByWorkflowId ,
2073+ mock .GetReposActionsWorkflowsByOwnerByRepoByWorkflowID ,
20742074 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
20752075 workflow := & github.Workflow {
20762076 ID : github .Ptr (int64 (1 )),
@@ -2116,7 +2116,7 @@ func Test_ActionsGet_GetWorkflowRun(t *testing.T) {
21162116 t .Run ("successful workflow run get" , func (t * testing.T ) {
21172117 mockedClient := mock .NewMockedHTTPClient (
21182118 mock .WithRequestMatchHandler (
2119- mock .GetReposActionsRunsByOwnerByRepoByRunId ,
2119+ mock .GetReposActionsRunsByOwnerByRepoByRunID ,
21202120 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
21212121 run := & github.WorkflowRun {
21222122 ID : github .Ptr (int64 (12345 )),
@@ -2187,7 +2187,7 @@ func Test_ActionsRunTrigger_RunWorkflow(t *testing.T) {
21872187 name : "successful workflow run" ,
21882188 mockedClient : mock .NewMockedHTTPClient (
21892189 mock .WithRequestMatchHandler (
2190- mock .PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowId ,
2190+ mock .PostReposActionsWorkflowsDispatchesByOwnerByRepoByWorkflowID ,
21912191 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
21922192 w .WriteHeader (http .StatusNoContent )
21932193 }),
@@ -2381,7 +2381,7 @@ func Test_ActionsGetJobLogs_SingleJob(t *testing.T) {
23812381 t .Run ("successful single job logs with URL" , func (t * testing.T ) {
23822382 mockedClient := mock .NewMockedHTTPClient (
23832383 mock .WithRequestMatchHandler (
2384- mock .GetReposActionsJobsLogsByOwnerByRepoByJobId ,
2384+ mock .GetReposActionsJobsLogsByOwnerByRepoByJobID ,
23852385 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
23862386 w .Header ().Set ("Location" , "https://github.com/logs/job/123" )
23872387 w .WriteHeader (http .StatusFound )
@@ -2422,7 +2422,7 @@ func Test_ActionsGetJobLogs_FailedJobs(t *testing.T) {
24222422 t .Run ("successful failed jobs logs" , func (t * testing.T ) {
24232423 mockedClient := mock .NewMockedHTTPClient (
24242424 mock .WithRequestMatchHandler (
2425- mock .GetReposActionsRunsJobsByOwnerByRepoByRunId ,
2425+ mock .GetReposActionsRunsJobsByOwnerByRepoByRunID ,
24262426 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
24272427 jobs := & github.Jobs {
24282428 TotalCount : github .Ptr (3 ),
@@ -2449,7 +2449,7 @@ func Test_ActionsGetJobLogs_FailedJobs(t *testing.T) {
24492449 }),
24502450 ),
24512451 mock .WithRequestMatchHandler (
2452- mock .GetReposActionsJobsLogsByOwnerByRepoByJobId ,
2452+ mock .GetReposActionsJobsLogsByOwnerByRepoByJobID ,
24532453 http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
24542454 w .Header ().Set ("Location" , "https://github.com/logs/job/" + r .URL .Path [len (r .URL .Path )- 1 :])
24552455 w .WriteHeader (http .StatusFound )
@@ -2487,7 +2487,7 @@ func Test_ActionsGetJobLogs_FailedJobs(t *testing.T) {
24872487 t .Run ("no failed jobs found" , func (t * testing.T ) {
24882488 mockedClient := mock .NewMockedHTTPClient (
24892489 mock .WithRequestMatchHandler (
2490- mock .GetReposActionsRunsJobsByOwnerByRepoByRunId ,
2490+ mock .GetReposActionsRunsJobsByOwnerByRepoByRunID ,
24912491 http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
24922492 jobs := & github.Jobs {
24932493 TotalCount : github .Ptr (2 ),
0 commit comments