diff options
author | 2022-04-24 13:11:52 +0200 | |
---|---|---|
committer | 2022-04-24 13:11:52 +0200 | |
commit | 9813a044c0d6cbf8bf08b902c15a2437ec8f88ae (patch) | |
tree | 7b369df779ad686d13d47fb40a92b72ce02ecc21 /internal/api/client/media/mediaupdate_test.go | |
parent | [chore] Update bun and sqlite dependencies (#478) (diff) | |
download | gotosocial-9813a044c0d6cbf8bf08b902c15a2437ec8f88ae.tar.xz |
[feature] Implement media v2 endpoint to accommodate Tusky 17 (#480)
* serve v2 media api
* go fmt
Diffstat (limited to 'internal/api/client/media/mediaupdate_test.go')
-rw-r--r-- | internal/api/client/media/mediaupdate_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/media/mediaupdate_test.go b/internal/api/client/media/mediaupdate_test.go index b99c89c06..9cc5a9ac5 100644 --- a/internal/api/client/media/mediaupdate_test.go +++ b/internal/api/client/media/mediaupdate_test.go @@ -140,7 +140,7 @@ func (suite *MediaUpdateTestSuite) TestUpdateImage() { if err != nil { panic(err) } - ctx.Request = httptest.NewRequest(http.MethodPut, fmt.Sprintf("http://localhost:8080/%s/%s", mediamodule.BasePath, toUpdate.ID), bytes.NewReader(buf.Bytes())) // the endpoint we're hitting + ctx.Request = httptest.NewRequest(http.MethodPut, fmt.Sprintf("http://localhost:8080/%s/%s", mediamodule.BasePathV1, toUpdate.ID), bytes.NewReader(buf.Bytes())) // the endpoint we're hitting ctx.Request.Header.Set("Content-Type", w.FormDataContentType()) ctx.Request.Header.Set("accept", "application/json") ctx.Params = gin.Params{ @@ -205,7 +205,7 @@ func (suite *MediaUpdateTestSuite) TestUpdateImageShortDescription() { if err != nil { panic(err) } - ctx.Request = httptest.NewRequest(http.MethodPut, fmt.Sprintf("http://localhost:8080/%s/%s", mediamodule.BasePath, toUpdate.ID), bytes.NewReader(buf.Bytes())) // the endpoint we're hitting + ctx.Request = httptest.NewRequest(http.MethodPut, fmt.Sprintf("http://localhost:8080/%s/%s", mediamodule.BasePathV1, toUpdate.ID), bytes.NewReader(buf.Bytes())) // the endpoint we're hitting ctx.Request.Header.Set("Content-Type", w.FormDataContentType()) ctx.Request.Header.Set("accept", "application/json") ctx.Params = gin.Params{ |