tests/integration/empty_repo_test.go aktualisiert

This commit is contained in:
davrot 2025-03-11 00:09:45 +00:00
parent e90e492363
commit 90a92c0332

View file

@ -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",
})