diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-11-01 04:51:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 16:51:48 -0400 |
commit | e4e85a3e51066f4987a87762c9c69acda093f6ca (patch) | |
tree | 14c00ee9e19dcec4ac2a93e6b5a0f0ec343f824c /integrations/lfs_getobject_test.go | |
parent | e7750e0f6a4fb032bb0f717caf2b8a10a6ede873 (diff) | |
download | gitea-e4e85a3e51066f4987a87762c9c69acda093f6ca.tar.gz gitea-e4e85a3e51066f4987a87762c9c69acda093f6ca.zip |
Storage configuration support `[storage]` (#13314)
* Fix minio bug
* Add tests for storage configuration
* Change the Seek flag to keep compitable minio?
* Fix test when first-byte-pos of all ranges is greater than the resource length
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'integrations/lfs_getobject_test.go')
-rw-r--r-- | integrations/lfs_getobject_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/integrations/lfs_getobject_test.go b/integrations/lfs_getobject_test.go index 431c7ed9e8..180182dd42 100644 --- a/integrations/lfs_getobject_test.go +++ b/integrations/lfs_getobject_test.go @@ -78,6 +78,7 @@ func storeAndGetLfs(t *testing.T, content *[]byte, extraHeader *http.Header, exp } } } + resp := session.MakeRequest(t, req, expectedStatus) return resp @@ -210,7 +211,7 @@ func TestGetLFSRange(t *testing.T) { {"bytes=0-10", "123456789\n", http.StatusPartialContent}, // end-range bigger than length-1 is ignored {"bytes=0-11", "123456789\n", http.StatusPartialContent}, - {"bytes=11-", "", http.StatusPartialContent}, + {"bytes=11-", "Requested Range Not Satisfiable", http.StatusRequestedRangeNotSatisfiable}, // incorrect header value cause whole header to be ignored {"bytes=-", "123456789\n", http.StatusOK}, {"foobar", "123456789\n", http.StatusOK}, |