mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-02 15:09:33 -05:00
Use another repo for testing
This commit is contained in:
parent
30a2ff1af6
commit
3230afdf6a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
65f1bf27bc3bf70f64657658635e66094edbcb4d
|
||||
c566fa45406b2f02c181df08077a03f177cf9ba8
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
34865bf344ac1b427da08fcb845a2eab4706067c
|
||||
65f1bf27bc3bf70f64657658635e66094edbcb4d
|
||||
|
@ -193,14 +193,14 @@ func TestAPIGetContentsRefFormats(t *testing.T) {
|
||||
assert.EqualValues(t, content, string(raw))
|
||||
|
||||
// Test with a filepath with 40 characters
|
||||
fileWith40c := setting.AppURL + "api/v1/repos/user2/repo1/raw/" + "a_file_path_with_40_characters_for_tests"
|
||||
fileWith40c := setting.AppURL + "api/v1/repos/user13/repo11/raw/" + "a_file_path_with_40_characters_for_tests"
|
||||
resp = MakeRequest(t, NewRequest(t, http.MethodGet, fileWith40c), http.StatusOK)
|
||||
raw, err = io.ReadAll(resp.Body)
|
||||
assert.NoError(t, err)
|
||||
assert.EqualValues(t, "# test\n", string(raw))
|
||||
|
||||
// Test with a filepath with 40 characters and name is a commit SHA
|
||||
fileWith40c = setting.AppURL + "api/v1/repos/user2/repo1/raw/" + "65f1bf27bc3bf70f64657658635e66094edbcb4d"
|
||||
fileWith40c = setting.AppURL + "api/v1/repos/user13/repo11/raw/" + "65f1bf27bc3bf70f64657658635e66094edbcb4d"
|
||||
resp = MakeRequest(t, NewRequest(t, http.MethodGet, fileWith40c), http.StatusOK)
|
||||
raw, err = io.ReadAll(resp.Body)
|
||||
assert.NoError(t, err)
|
||||
|
Loading…
Reference in New Issue
Block a user