mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-13 22:37:18 +00:00
chore: refactor the web UI tests for the actions run
- create tests/integration/actions_view_test.go - extract TestActionsArtifactDeletion from actions_route_test.go - extract tests misplaced in - api_actions_artifact_test.go - api_actions_artifact_v4_test.go - add a tests for the /{owner}/{repo}/actions/runs/{run_index}/artifacts because it is useful for debugging
This commit is contained in:
parent
014bf73db8
commit
f7b0eb16c8
4 changed files with 88 additions and 60 deletions
|
@ -267,11 +267,6 @@ func TestActionsArtifactDownloadMultiFiles(t *testing.T) {
|
|||
resp = MakeRequest(t, req, http.StatusOK)
|
||||
assert.Equal(t, strings.Repeat(bodyChar, 1024), resp.Body.String())
|
||||
}
|
||||
|
||||
// Download artifact via user-facing URL
|
||||
req = NewRequest(t, "GET", "/user5/repo4/actions/runs/187/artifacts/multi-file-download")
|
||||
resp = MakeRequest(t, req, http.StatusOK)
|
||||
assert.Contains(t, resp.Header().Get("content-disposition"), "multi-file-download.zip")
|
||||
}
|
||||
|
||||
func TestActionsArtifactUploadWithRetentionDays(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue