Added specific error for InvalidObjectName (#2157)

This commit is contained in:
Krishnan Parthasarathi
2016-07-09 17:11:08 -07:00
committed by Harshavardhana
parent ae80f8ca35
commit bc8720406d
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -878,7 +878,7 @@ func (s *TestSuiteCommon) TestPutObjectLongName(c *C) {
response, err = client.Do(request)
c.Assert(err, IsNil)
verifyError(c, response, "NotImplemented", "A header you provided implies functionality that is not implemented", http.StatusNotImplemented)
verifyError(c, response, "XMinioInvalidObjectName", "Object name contains unsupported characters. Unsupported characters are `^*|\\\"", http.StatusBadRequest)
}
// TestNotBeAbleToCreateObjectInNonexistentBucket - Validates the error response