diff --git a/job_token_scope.go b/job_token_scope.go index 4b7c5b3fd..a635898be 100644 --- a/job_token_scope.go +++ b/job_token_scope.go @@ -38,7 +38,6 @@ type GetJobTokenInboundAllowOptions struct { // // GitLab API docs: https://docs.gitlab.com/ee/api/project_job_token_scopes.html#get-a-projects-cicd-job-token-inbound-allowlist func (j *JobTokenScopeService) GetProjectJobTokenInboundAllowlist(pid interface{}, opt *GetJobTokenInboundAllowOptions, options ...RequestOptionFunc) ([]*Project, *Response, error) { - // Parse the project Id or namespace and create the URL project, err := parseID(pid) if err != nil { diff --git a/job_token_scope_test.go b/job_token_scope_test.go index 1220f7927..7ff3a5cde 100644 --- a/job_token_scope_test.go +++ b/job_token_scope_test.go @@ -67,10 +67,10 @@ func TestAddProjectToJobScopeAllowList(t *testing.T) { w.WriteHeader(http.StatusCreated) // Print on the response with the proper target project - fmt.Fprint(w, fmt.Sprintf(`{ + fmt.Fprintf(w, `{ "source_project_id": 1, "target_project_id": %d - }`, createTokenRequest.TargetProjectID)) + }`, createTokenRequest.TargetProjectID) }) want := &AddJobTokenInboundAllowResponse{