Skip to content

Commit f1cdbbd

Browse files
committed
fix travis
Signed-off-by: Alexander Minbaev <minbaev@gmail.com>
1 parent 41e6f04 commit f1cdbbd

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

pkg/mounter/fake_mounter.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ func (f *FakeMounterFactory) NewMounter(attrib map[string]string, secretMap map[
2222
return fakenewS3fsMounter(f.IsFailedMount)
2323
case constants.RClone:
2424
return fakenewRcloneMounter(f.IsFailedMount)
25+
case constants.MNTS3:
26+
return fakenewMountpointMounter(f.IsFailedMount)
2527
default:
2628
return fakenewS3fsMounter(f.IsFailedMount)
2729
}

pkg/mounter/fake_mounter_mountpoint.go

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,18 @@ type fakemountpointMounter struct {
66
bucketName string
77
objPath string
88
endPoint string
9-
locConstraint string
10-
authType string
11-
accessKeys string
12-
kpRootKeyCrn string
13-
uid string
14-
gid string
15-
9+
accessKey string
10+
secretKey string
1611
isFailedMount bool
1712
}
1813

1914
func fakenewMountpointMounter(isFailedMount bool) Mounter {
20-
return &fakercloneMounter{
15+
return &fakemountpointMounter{
2116
bucketName: bucketName,
2217
objPath: objPath,
2318
endPoint: endPoint,
24-
locConstraint: region,
25-
accessKeys: keys,
26-
authType: authType,
27-
kpRootKeyCrn: "",
28-
uid: "",
29-
gid: "",
19+
accessKey: keys,
20+
secretKey: keys,
3021
isFailedMount: isFailedMount,
3122
}
3223
}

0 commit comments

Comments
 (0)