mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-20 03:11:35 +02:00
tests/integration/empty_repo_test.go aktualisiert
This commit is contained in:
parent
e90e492363
commit
90a92c0332
1 changed files with 2 additions and 1 deletions
|
@ -88,11 +88,12 @@ func TestEmptyRepoUploadFile(t *testing.T) {
|
|||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
respMap := map[string]string{}
|
||||
require.NoError(t, json.Unmarshal(resp.Body.Bytes(), &respMap))
|
||||
|
||||
filesFullpathKey := fmt.Sprintf("files_fullpath[%s]", respMap["uuid"])
|
||||
req = NewRequestWithValues(t, "POST", "/user30/empty/_upload/"+setting.Repository.DefaultBranch, map[string]string{
|
||||
"_csrf": GetCSRF(t, session, "/user/settings"),
|
||||
"commit_choice": "direct",
|
||||
"files": respMap["uuid"],
|
||||
filesFullpathKey: "uploaded-file.txt",
|
||||
"tree_path": "",
|
||||
"commit_mail_id": "-1",
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue