Skip to content

Commit 5b395f7

Browse files
committed
fix test and lint
1 parent d5e833f commit 5b395f7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

templates/swagger/v1_json.tmpl

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/actions_trigger_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,10 +1203,10 @@ func TestWorkflowApi(t *testing.T) {
12031203
"myinput3": "true",
12041204
},
12051205
}
1206+
// Since the workflow is disabled, so the response code is 403 forbidden
12061207
req = NewRequestWithJSON(t, "POST", fmt.Sprintf("/api/v1/repos/%s/actions/workflows/dispatch.yml/dispatches", repo.FullName()), inputs).
12071208
AddTokenAuth(token)
1208-
// TODO which http code is expected here?
1209-
_ = MakeRequest(t, req, http.StatusInternalServerError)
1209+
_ = MakeRequest(t, req, http.StatusForbidden)
12101210

12111211
// Enable the workflow again
12121212
req = NewRequest(t, "PUT", workflows.Workflows[0].URL+"/enable").

0 commit comments

Comments
 (0)