Lower object name length when running in docker to support aufs. (#4879)

master
Andrej Pregl 7 years ago committed by Dee Koder
parent ff8e2b5b4f
commit 9e9c7b4f22
  1. 3
      cmd/server_test.go

@ -1254,6 +1254,9 @@ func (s *TestSuiteCommon) TestPutObjectLongName(c *C) {
buffer := bytes.NewReader([]byte("hello world")) buffer := bytes.NewReader([]byte("hello world"))
// make long object name. // make long object name.
longObjName := fmt.Sprintf("%0255d/%0255d/%0255d", 1, 1, 1) longObjName := fmt.Sprintf("%0255d/%0255d/%0255d", 1, 1, 1)
if IsDocker() || IsKubernetes() {
longObjName = fmt.Sprintf("%0242d/%0242d/%0242d", 1, 1, 1)
}
// create new HTTP request to insert the object. // create new HTTP request to insert the object.
request, err = newTestSignedRequest("PUT", getPutObjectURL(s.endPoint, bucketName, longObjName), request, err = newTestSignedRequest("PUT", getPutObjectURL(s.endPoint, bucketName, longObjName),
int64(buffer.Len()), buffer, s.accessKey, s.secretKey, s.signer) int64(buffer.Len()), buffer, s.accessKey, s.secretKey, s.signer)

Loading…
Cancel
Save