summaryrefslogtreecommitdiffstats
path: root/integrations/download_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/download_test.go')
-rw-r--r--integrations/download_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/integrations/download_test.go b/integrations/download_test.go
index 0d5fef6bab..3fd858887e 100644
--- a/integrations/download_test.go
+++ b/integrations/download_test.go
@@ -22,3 +22,15 @@ func TestDownloadByID(t *testing.T) {
assert.Equal(t, "# repo1\n\nDescription for repo1", resp.Body.String())
}
+
+func TestDownloadByIDMedia(t *testing.T) {
+ prepareTestEnv(t)
+
+ session := loginUser(t, "user2")
+
+ // Request raw blob
+ req := NewRequest(t, "GET", "/user2/repo1/media/blob/4b4851ad51df6a7d9f25c979345979eaeb5b349f")
+ resp := session.MakeRequest(t, req, http.StatusOK)
+
+ assert.Equal(t, "# repo1\n\nDescription for repo1", resp.Body.String())
+}