Closed Bhagyashreek8 closed 5 months ago
Internal linter passed - https://app.travis-ci.com/github/IBM/ibm-object-csi-driver/jobs/621131295
Coverage for s3fs-mounter_test.go => 94.8%
=== RUN TestNewS3fsMounter_Success
I0513 14:25:41.075285 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.075653 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.075762 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.075830 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.075877 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.075917 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
--- PASS: TestNewS3fsMounter_Success (0.00s)
=== RUN TestNewS3fsMounter_Success_Hmac
I0513 14:25:41.076090 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.076158 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [hmac]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.076182 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.076221 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.076248 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.076275 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt2=val2 opt1=val1]
--- PASS: TestNewS3fsMounter_Success_Hmac (0.00s)
=== RUN Test_Mount_Positive
I0513 14:25:41.076371 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.076394 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.076460 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.076493 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.076507 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.076521 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:25:41.076540 44781 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:25:41.076576 44781 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive (0.00s)
=== RUN Test_Mount_Positive_Hmac
I0513 14:25:41.076870 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.076926 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [hmac]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.076976 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.077018 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.077031 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.077043 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:25:41.077060 44781 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:25:41.077069 44781 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive_Hmac (0.00s)
=== RUN Test_Mount_Positive_Empty_ObjPath
I0513 14:25:41.077269 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.077293 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.077414 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.077437 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.077471 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.077498 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:25:41.077514 44781 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:25:41.077530 44781 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive_Empty_ObjPath (0.00s)
=== RUN Test_Mount_Positive_SingleMountOptions
I0513 14:25:41.077813 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.077867 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.077914 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[mountOption1:mountOption1 mountOption2:mountOption2]
I0513 14:25:41.077937 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [mountOption1]
I0513 14:25:41.077954 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [mountOption2]
I0513 14:25:41.077965 44781 mounter-s3fs.go:270] S3fsMounter Options: [mountOption1 mountOption2]
I0513 14:25:41.077979 44781 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:25:41.078022 44781 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive_SingleMountOptions (0.00s)
=== RUN Test_Mount_Error_Creating_Mount_Point
I0513 14:25:41.078308 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.078359 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.078402 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.078427 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.078444 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.078456 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt2=val2 opt1=val1]
I0513 14:25:41.078473 44781 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:25:41.078489 44781 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
E0513 14:25:41.078531 44781 mounter-s3fs.go:124] S3FSMounter Mount: Cannot create directory /var/lib/ibmc-s3fs/10d878e96c06bc5308c8eb255cda9880f1260676dac3c5f2c4be71075f7842b6: error creating mount path
--- PASS: Test_Mount_Error_Creating_Mount_Point (0.00s)
=== RUN Test_Mount_Error_Creating_PWFile
I0513 14:25:41.078641 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.078675 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.078697 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.078724 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.078741 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.078754 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:25:41.078771 44781 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:25:41.078781 44781 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
E0513 14:25:41.078830 44781 mounter-s3fs.go:131] S3FSMounter Mount: Cannot create file /var/lib/ibmc-s3fs/10d878e96c06bc5308c8eb255cda9880f1260676dac3c5f2c4be71075f7842b6/.passwd-s3fs: error creating PWFile
--- PASS: Test_Mount_Error_Creating_PWFile (0.00s)
=== RUN Test_Mount_ErrorMount
I0513 14:25:41.078934 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.078961 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.078982 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.079011 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.079025 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.079040 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:25:41.079055 44781 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:25:41.079065 44781 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_ErrorMount (0.00s)
=== RUN Test_Unmount_Positive
I0513 14:25:41.079179 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.079201 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.079227 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.079255 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.079270 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.079283 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:25:41.079446 44781 mounter-s3fs.go:182] -S3FSMounter Unmount-
--- PASS: Test_Unmount_Positive (0.00s)
=== RUN Test_Unmount_Error
I0513 14:25:41.079983 44781 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:25:41.080025 44781 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:25:41.080066 44781 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:25:41.080102 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:25:41.080158 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:25:41.080176 44781 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:25:41.080414 44781 mounter-s3fs.go:182] -S3FSMounter Unmount-
--- PASS: Test_Unmount_Error (0.00s)
=== RUN TestUpdateS3FSMountOptions
I0513 14:25:41.081006 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:25:41.081071 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:25:41.081104 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:25:41.081120 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:25:41.081133 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [additional_option=value3]
I0513 14:25:41.081150 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:25:41.081165 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:25:41.081198 44781 mounter-s3fs.go:270] S3fsMounter Options: [tmpdir=/tmp use_cache=true gid=1001 uid=1001 additional_option=value3 option1=value1 option2=value2]
--- PASS: TestUpdateS3FSMountOptions (0.00s)
=== RUN TestUpdateS3FSMountOptions_SecretMapUID
I0513 14:25:41.081371 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:25:41.081410 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:25:41.081457 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [additional_option=value3]
I0513 14:25:41.081471 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:25:41.081485 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:25:41.081499 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:25:41.081547 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:25:41.081559 44781 mounter-s3fs.go:270] S3fsMounter Options: [gid=1001 uid=1001 additional_option=value3 option1=value1 option2=value2 tmpdir=/tmp use_cache=true]
--- PASS: TestUpdateS3FSMountOptions_SecretMapUID (0.00s)
=== RUN TestUpdateS3FSMountOptions_SingleMountOptions
I0513 14:25:41.081714 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:25:41.081767 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:25:41.081784 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [value3]
I0513 14:25:41.081804 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:25:41.081818 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:25:41.081836 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:25:41.081851 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:25:41.081874 44781 mounter-s3fs.go:270] S3fsMounter Options: [gid=1001 uid=1001 value3 option1=value1 option2=value2 tmpdir=/tmp use_cache=true]
--- PASS: TestUpdateS3FSMountOptions_SingleMountOptions (0.00s)
=== RUN TestUpdateS3FSMountOptions_Empty_Mount_Options
I0513 14:25:41.082023 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:25:41.082059 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:25:41.082107 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:25:41.082169 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:25:41.082220 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:25:41.082237 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:25:41.082247 44781 mounter-s3fs.go:270] S3fsMounter Options: [option2=value2 tmpdir=/tmp use_cache=true gid=1001 uid=1001 option1=value1]
--- PASS: TestUpdateS3FSMountOptions_Empty_Mount_Options (0.00s)
=== RUN TestUpdateS3FSMountOptions_Empty_Default_Mount_Options
I0513 14:25:41.082450 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:25:41.082488 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:25:41.082505 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:25:41.082539 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:25:41.082571 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [additional_option=value3]
I0513 14:25:41.082582 44781 mounter-s3fs.go:270] S3fsMounter Options: [tmpdir=/tmp use_cache=true gid=1001 uid=1001 additional_option=value3]
--- PASS: TestUpdateS3FSMountOptions_Empty_Default_Mount_Options (0.00s)
=== RUN TestUpdateS3FSMountOptions_Invalid_Mount_Options
I0513 14:25:41.082741 44781 mounter-s3fs.go:242] Invalid mount option: additional=option=value3
I0513 14:25:41.082778 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:25:41.082817 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:25:41.082851 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:25:41.082862 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:25:41.082905 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:25:41.082920 44781 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:25:41.082930 44781 mounter-s3fs.go:270] S3fsMounter Options: [gid=1001 uid=1001 option1=value1 option2=value2 tmpdir=/tmp use_cache=true]
--- PASS: TestUpdateS3FSMountOptions_Invalid_Mount_Options (0.00s)
PASS
coverage: 39.9% of statements
ok github.com/IBM/ibm-object-csi-driver/pkg/mounter 2.348s coverage: 39.9% of statements
=== RUN Test_NewObjectStorageSession_Positive
--- PASS: Test_NewObjectStorageSession_Positive (0.00s)
=== RUN Test_NewObjectStorageIAMSession_Positive
--- PASS: Test_NewObjectStorageIAMSession_Positive (0.00s)
=== RUN Test_CheckBucketAccess_Error
--- PASS: Test_CheckBucketAccess_Error (0.00s)
=== RUN Test_CheckBucketAccess_Positive
--- PASS: Test_CheckBucketAccess_Positive (0.00s)
=== RUN Test_CheckObjectPathExistence_Positive
--- PASS: Test_CheckObjectPathExistence_Positive (0.00s)
=== RUN Test_CheckObjectPathExistence_WithoutSuffix
--- PASS: Test_CheckObjectPathExistence_WithoutSuffix (0.00s)
=== RUN Test_CheckObjectPathExistence_PathNotFound
--- PASS: Test_CheckObjectPathExistence_PathNotFound (0.00s)
=== RUN Test_CheckObjectPathExistence_Error
--- PASS: Test_CheckObjectPathExistence_Error (0.00s)
=== RUN Test_CreateBucketAccess_Error
--- PASS: Test_CreateBucketAccess_Error (0.00s)
=== RUN Test_CreateBucketAccess_BucketAlreadyExists_Positive
--- PASS: Test_CreateBucketAccess_BucketAlreadyExists_Positive (0.00s)
=== RUN Test_CreateBucket_Positive
--- PASS: Test_CreateBucket_Positive (0.00s)
=== RUN Test_DeleteBucket_BucketAlreadyDeleted_Positive
--- PASS: Test_DeleteBucket_BucketAlreadyDeleted_Positive (0.00s)
=== RUN Test_DeleteBucket_ListObjectsError
--- PASS: Test_DeleteBucket_ListObjectsError (0.00s)
=== RUN Test_DeleteBucket_DeleteObjectError
--- PASS: Test_DeleteBucket_DeleteObjectError (0.00s)
=== RUN Test_DeleteBucket_Error
--- PASS: Test_DeleteBucket_Error (0.00s)
=== RUN Test_DeleteBucket_Positive
--- PASS: Test_DeleteBucket_Positive (0.00s)
PASS
coverage: 84.4% of statements
ok github.com/IBM/ibm-object-csi-driver/pkg/s3client 1.910s coverage: 84.4% of statements
Bhagyashrees-MacBook-Pro-2:ibm-object-csi-driver bhagyashree$
Bhagyashrees-MacBook-Pro-2:ibm-object-csi-driver bhagyashree$
Bhagyashrees-MacBook-Pro-2:ibm-object-csi-driver bhagyashree$
Bhagyashrees-MacBook-Pro-2:ibm-object-csi-driver bhagyashree$ go test -v ./pkg/mounter/... -coverprofile=cover.out; go tool cover -html=cover.out
? github.com/IBM/ibm-object-csi-driver/pkg/mounter/utils [no test files]
=== RUN TestNewS3fsMounter_Success
I0513 14:27:05.601680 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.601802 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.601819 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.601837 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.601844 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.601848 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
--- PASS: TestNewS3fsMounter_Success (0.00s)
=== RUN TestNewS3fsMounter_Success_Hmac
I0513 14:27:05.601888 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.601894 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [hmac]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.601898 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.601937 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.601941 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.601944 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt2=val2 opt1=val1]
--- PASS: TestNewS3fsMounter_Success_Hmac (0.00s)
=== RUN Test_Mount_Positive
I0513 14:27:05.601965 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.601969 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.601977 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.601988 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.601991 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.601995 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:27:05.602006 44945 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:27:05.602011 44945 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive (0.00s)
=== RUN Test_Mount_Positive_Hmac
I0513 14:27:05.602062 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602068 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: [test-obj-path]
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [hmac]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602072 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.602085 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.602088 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.602092 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt2=val2 opt1=val1]
I0513 14:27:05.602098 44945 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:27:05.602101 44945 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive_Hmac (0.00s)
=== RUN Test_Mount_Positive_Empty_ObjPath
I0513 14:27:05.602132 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602140 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602148 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.602160 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.602163 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.602167 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:27:05.602171 44945 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:27:05.602176 44945 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive_Empty_ObjPath (0.00s)
=== RUN Test_Mount_Positive_SingleMountOptions
I0513 14:27:05.602206 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602211 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602215 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[mountOption1:mountOption1 mountOption2:mountOption2]
I0513 14:27:05.602226 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [mountOption1]
I0513 14:27:05.602230 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [mountOption2]
I0513 14:27:05.602234 44945 mounter-s3fs.go:270] S3fsMounter Options: [mountOption1 mountOption2]
I0513 14:27:05.602237 44945 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:27:05.602241 44945 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_Positive_SingleMountOptions (0.00s)
=== RUN Test_Mount_Error_Creating_Mount_Point
I0513 14:27:05.602280 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602285 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602292 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.602303 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.602307 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.602310 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:27:05.602314 44945 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:27:05.602317 44945 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
E0513 14:27:05.602329 44945 mounter-s3fs.go:124] S3FSMounter Mount: Cannot create directory /var/lib/ibmc-s3fs/10d878e96c06bc5308c8eb255cda9880f1260676dac3c5f2c4be71075f7842b6: error creating mount path
--- PASS: Test_Mount_Error_Creating_Mount_Point (0.00s)
=== RUN Test_Mount_Error_Creating_PWFile
I0513 14:27:05.602353 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602358 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602362 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.602372 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.602376 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.602379 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:27:05.602383 44945 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:27:05.602386 44945 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
E0513 14:27:05.602399 44945 mounter-s3fs.go:131] S3FSMounter Mount: Cannot create file /var/lib/ibmc-s3fs/10d878e96c06bc5308c8eb255cda9880f1260676dac3c5f2c4be71075f7842b6/.passwd-s3fs: error creating PWFile
--- PASS: Test_Mount_Error_Creating_PWFile (0.00s)
=== RUN Test_Mount_ErrorMount
I0513 14:27:05.602426 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602431 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602437 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.602447 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.602451 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.602455 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:27:05.602458 44945 mounter-s3fs.go:107] -S3FSMounter Mount-
I0513 14:27:05.602461 44945 mounter-s3fs.go:108] Mount args:
source: <source>
target: </tmp/test-mount>
--- PASS: Test_Mount_ErrorMount (0.00s)
=== RUN Test_Unmount_Positive
I0513 14:27:05.602490 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602495 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602499 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.602509 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.602513 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.602517 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:27:05.602636 44945 mounter-s3fs.go:182] -S3FSMounter Unmount-
--- PASS: Test_Unmount_Positive (0.00s)
=== RUN Test_Unmount_Error
I0513 14:27:05.602920 44945 mounter-s3fs.go:46] -newS3fsMounter-
I0513 14:27:05.602929 44945 mounter-s3fs.go:92] newS3fsMounter args:
bucketName: [test-bucket-name]
objPath: []
endPoint: [test-endpoint]
locationConstraint: [test-loc-constraint]
authType: [iam]
kpRootKeyCrn: [test-kp-root-key-crn]
I0513 14:27:05.602935 44945 mounter-s3fs.go:228] No new mountOptions found. Using default mountOptions: map[opt1:val1 opt2:val2]
I0513 14:27:05.602949 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt1=val1]
I0513 14:27:05.602953 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [opt2=val2]
I0513 14:27:05.602957 44945 mounter-s3fs.go:270] S3fsMounter Options: [opt1=val1 opt2=val2]
I0513 14:27:05.603071 44945 mounter-s3fs.go:182] -S3FSMounter Unmount-
--- PASS: Test_Unmount_Error (0.00s)
=== RUN TestUpdateS3FSMountOptions
I0513 14:27:05.603324 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:27:05.603333 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:27:05.603337 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:27:05.603344 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:27:05.603349 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [additional_option=value3]
I0513 14:27:05.603353 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:27:05.603357 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:27:05.603361 44945 mounter-s3fs.go:270] S3fsMounter Options: [tmpdir=/tmp use_cache=true gid=1001 uid=1001 additional_option=value3 option1=value1 option2=value2]
--- PASS: TestUpdateS3FSMountOptions (0.00s)
=== RUN TestUpdateS3FSMountOptions_SecretMapUID
I0513 14:27:05.603415 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:27:05.603421 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:27:05.603430 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:27:05.603435 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:27:05.603439 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:27:05.603443 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:27:05.603446 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [additional_option=value3]
I0513 14:27:05.603450 44945 mounter-s3fs.go:270] S3fsMounter Options: [option1=value1 option2=value2 tmpdir=/tmp use_cache=true gid=1001 uid=1001 additional_option=value3]
--- PASS: TestUpdateS3FSMountOptions_SecretMapUID (0.00s)
=== RUN TestUpdateS3FSMountOptions_SingleMountOptions
I0513 14:27:05.603495 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:27:05.603506 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:27:05.603510 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [value3]
I0513 14:27:05.603514 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:27:05.603520 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:27:05.603523 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:27:05.603527 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:27:05.603531 44945 mounter-s3fs.go:270] S3fsMounter Options: [gid=1001 uid=1001 value3 option1=value1 option2=value2 tmpdir=/tmp use_cache=true]
--- PASS: TestUpdateS3FSMountOptions_SingleMountOptions (0.00s)
=== RUN TestUpdateS3FSMountOptions_Empty_Mount_Options
I0513 14:27:05.603593 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:27:05.603599 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:27:05.603610 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:27:05.603615 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:27:05.603619 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:27:05.603623 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:27:05.603627 44945 mounter-s3fs.go:270] S3fsMounter Options: [option2=value2 tmpdir=/tmp use_cache=true gid=1001 uid=1001 option1=value1]
--- PASS: TestUpdateS3FSMountOptions_Empty_Mount_Options (0.00s)
=== RUN TestUpdateS3FSMountOptions_Empty_Default_Mount_Options
I0513 14:27:05.603687 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:27:05.603696 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:27:05.603701 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:27:05.603705 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:27:05.603709 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [additional_option=value3]
I0513 14:27:05.603714 44945 mounter-s3fs.go:270] S3fsMounter Options: [tmpdir=/tmp use_cache=true gid=1001 uid=1001 additional_option=value3]
--- PASS: TestUpdateS3FSMountOptions_Empty_Default_Mount_Options (0.00s)
=== RUN TestUpdateS3FSMountOptions_Invalid_Mount_Options
I0513 14:27:05.603747 44945 mounter-s3fs.go:242] Invalid mount option: additional=option=value3
I0513 14:27:05.603751 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [gid=1001]
I0513 14:27:05.603755 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [uid=1001]
I0513 14:27:05.603760 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option1=value1]
I0513 14:27:05.603763 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [option2=value2]
I0513 14:27:05.603773 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [tmpdir=/tmp]
I0513 14:27:05.603777 44945 mounter-s3fs.go:267] newS3fsMounter mountOption: [use_cache=true]
I0513 14:27:05.603781 44945 mounter-s3fs.go:270] S3fsMounter Options: [gid=1001 uid=1001 option1=value1 option2=value2 tmpdir=/tmp use_cache=true]
--- PASS: TestUpdateS3FSMountOptions_Invalid_Mount_Options (0.00s)
PASS
Describe your changes
Issue ticket number and link
Checklist before requesting a review