Cleanup: mispell fixes

master
karthic rao 9 years ago committed by Harshavardhana
parent 0b4bbe6d9e
commit 20ca65c793
  1. 2
      bucket-policy-parser_test.go
  2. 4
      object-api-getobjectinfo_test.go
  3. 2
      object-api-listobjects_test.go
  4. 6
      object-api-multipart_test.go
  5. 2
      test-utils.go

@ -485,7 +485,7 @@ func TestCheckBucketPolicyResources(t *testing.T) {
// should result in ErrMalformedPolicy // should result in ErrMalformedPolicy
{Version: "1.0", Statements: setRecurseResource(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "")))}, {Version: "1.0", Statements: setRecurseResource(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "")))},
// BucketPolciy - 7. // BucketPolciy - 7.
// constructing policy statment with non recursive but // constructing policy statement with non recursive but
// lexically close resources. // lexically close resources.
// should result in ErrNone. // should result in ErrNone.
{Version: "1.0", Statements: setResourceLexical(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "oo")))}, {Version: "1.0", Statements: setResourceLexical(setValidPrefixActions(setWriteOnlyStatement("minio-bucket", "oo")))},

@ -27,7 +27,7 @@ import (
"testing" "testing"
) )
// Wrapper for calling GetObjectInfo tests for both XL muliple disks and single node setup. // Wrapper for calling GetObjectInfo tests for both XL multiple disks and single node setup.
func TestGetObjectInfo(t *testing.T) { func TestGetObjectInfo(t *testing.T) {
ExecObjectLayerTest(t, testGetObjectInfo) ExecObjectLayerTest(t, testGetObjectInfo)
} }
@ -105,7 +105,7 @@ func testGetObjectInfo(obj ObjectLayer, instanceType string, t *testing.T) {
t.Errorf("Test %d: %s: Expected Content Type of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.ContentType, result.ContentType) t.Errorf("Test %d: %s: Expected Content Type of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.ContentType, result.ContentType)
} }
if testCase.result.IsDir != result.IsDir { if testCase.result.IsDir != result.IsDir {
t.Errorf("Test %d: %s: Expected IsDir flag of the object to be %v, but instead found it to be %v", i+1, instanceType,testCase.result.IsDir, result.IsDir) t.Errorf("Test %d: %s: Expected IsDir flag of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.IsDir, result.IsDir)
} }
} }
} }

@ -26,7 +26,7 @@ import (
"testing" "testing"
) )
// Wrapper for calling ListObjects tests for both XL muliple disks and single node setup. // Wrapper for calling ListObjects tests for both XL multiple disks and single node setup.
func TestListObjects(t *testing.T) { func TestListObjects(t *testing.T) {
ExecObjectLayerTest(t, testListObjects) ExecObjectLayerTest(t, testListObjects)
} }

@ -22,7 +22,7 @@ import (
"testing" "testing"
) )
// Wrapper for calling NewMultipartUpload tests for both XL muliple disks and single node setup. // Wrapper for calling NewMultipartUpload tests for both XL multiple disks and single node setup.
func TestObjectNewMultipartUpload(t *testing.T) { func TestObjectNewMultipartUpload(t *testing.T) {
ExecObjectLayerTest(t, testObjectNewMultipartUpload) ExecObjectLayerTest(t, testObjectNewMultipartUpload)
} }
@ -66,7 +66,7 @@ func testObjectNewMultipartUpload(obj ObjectLayer, instanceType string, t *testi
} }
} }
// Wrapper for calling isUploadIDExists tests for both XL muliple disks and single node setup. // Wrapper for calling isUploadIDExists tests for both XL multiple disks and single node setup.
func TestObjectAPIIsUploadIDExists(t *testing.T) { func TestObjectAPIIsUploadIDExists(t *testing.T) {
ExecObjectLayerTest(t, testObjectAPIIsUploadIDExists) ExecObjectLayerTest(t, testObjectAPIIsUploadIDExists)
} }
@ -96,7 +96,7 @@ func testObjectAPIIsUploadIDExists(obj ObjectLayer, instanceType string, t *test
} }
} }
// Wrapper for calling PutObjectPart tests for both XL muliple disks and single node setup. // Wrapper for calling PutObjectPart tests for both XL multiple disks and single node setup.
func TestObjectAPIPutObjectPart(t *testing.T) { func TestObjectAPIPutObjectPart(t *testing.T) {
ExecObjectLayerTest(t, testObjectAPIPutObjectPart) ExecObjectLayerTest(t, testObjectAPIPutObjectPart)
} }

@ -51,7 +51,7 @@ func ExecObjectLayerTest(t *testing.T, objTest func(obj ObjectLayer, instanceTyp
return objLayer, erasureDisks, nil return objLayer, erasureDisks, nil
} }
// getSingleNodeObjectLayer - Instantiates single node object layer and retuns it. // getSingleNodeObjectLayer - Instantiates single node object layer and returns it.
getSingleNodeObjectLayer := func() (ObjectLayer, string, error) { getSingleNodeObjectLayer := func() (ObjectLayer, string, error) {
// Make a temporary directory to use as the obj. // Make a temporary directory to use as the obj.
fsDir, err := ioutil.TempDir("", "minio-") fsDir, err := ioutil.TempDir("", "minio-")

Loading…
Cancel
Save