mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-18 08:08:31 +00:00
fix(test): TestActionsArtifactOverwrite needs ordered query for pgsql (#8847)
Should fix failures like: https://codeberg.org/forgejo/forgejo/actions/runs/94872/jobs/9 ### Documentation - [x] I did not document these changes and I do not expect someone else to do it. ### Release notes - [x] I do not want this change to show in the release notes. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8847 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: oliverpool <git@olivier.pfad.fr> Co-committed-by: oliverpool <git@olivier.pfad.fr>
This commit is contained in:
parent
d84a5217ee
commit
b78c1bd998
2 changed files with 10 additions and 1 deletions
|
@ -316,8 +316,10 @@ func TestActionsArtifactOverwrite(t *testing.T) {
|
|||
var listResp listArtifactsResponse
|
||||
DecodeJSON(t, resp, &listResp)
|
||||
|
||||
const itemName = "artifact-download"
|
||||
assert.Equal(t, itemName, listResp.Value[0].Name)
|
||||
idx := strings.Index(listResp.Value[0].FileContainerResourceURL, "/api/actions_pipeline/_apis/pipelines/")
|
||||
url := listResp.Value[0].FileContainerResourceURL[idx+1:] + "?itemPath=artifact-download"
|
||||
url := listResp.Value[0].FileContainerResourceURL[idx+1:] + "?itemPath=" + itemName
|
||||
req = NewRequest(t, "GET", url).
|
||||
AddTokenAuth("8061e833a55f6fc0157c98b883e91fcfeeb1a71a")
|
||||
resp = MakeRequest(t, req, http.StatusOK)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue