Skip to content

Commit c879785

Browse files
authored
Merge pull request #1545 from aramase/automated-cherry-pick-of-#1543-upstream-release-1.4
Automated cherry pick of #1543: test: remove target path check in fake provider server
2 parents 803d17a + dbe92af commit c879785

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

provider/fake/fake_server.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ func (m *MockCSIProviderServer) Mount(ctx context.Context, req *v1alpha1.MountRe
117117
if err = json.Unmarshal([]byte(req.GetPermission()), &filePermission); err != nil {
118118
return nil, fmt.Errorf("failed to unmarshal file permission, error: %w", err)
119119
}
120-
if len(req.GetTargetPath()) == 0 {
121-
return nil, fmt.Errorf("missing target path")
122-
}
123120
return &v1alpha1.MountResponse{
124121
ObjectVersion: m.objects,
125122
Error: &v1alpha1.Error{

0 commit comments

Comments
 (0)