mirror of
https://github.com/minio/minio.git
synced 2026-11-24 07:18:49 +00:00
Return http.StatusNotImplemented for range of Bucket and Object resources
Not Implemented bucket resources
================================
"acl": true
"lifecycle": true
"policy": true
"location": true
"logging": true
"notification": true
"versions": true
"requestPayment": true
"versioning": true
"website": true
"uploads": true
Not Implemented object resources
================================
"uploadId": true
"acl": true
"torrent": true
"uploads": true
This commit is contained in:
1 parent
be9690f3e9
commit
c751811dcb
3 files changed
+77
No files matched your search
@@ -174,6 +174,17 @@ func (s *MySuite) TestMultipleObjects(c *C) {
|
||||
c.Assert(true, Equals, bytes.Equal(responseBody, []byte("hello three")))
|
||||
}
|
||||
|
||||
func (s *MySuite) TestNotImplemented(c *C) {
|
||||
_, _, storage := inmemory.Start()
|
||||
httpHandler := HttpHandler(storage)
|
||||
testServer := httptest.NewServer(httpHandler)
|
||||
defer testServer.Close()
|
||||
|
||||
response, err := http.Get(testServer.URL + "/bucket/object?acl")
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(response.StatusCode, Equals, http.StatusNotImplemented)
|
||||
}
|
||||
|
||||
func (s *MySuite) TestHeader(c *C) {
|
||||
_, _, storage := inmemory.Start()
|
||||
httpHandler := HttpHandler(storage)
|
||||
|
||||
Reference in new issue
Block a user