Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Sep 8, 2023
1 parent ac57e93 commit fe23d00
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/ocm/share/repository/nextcloud/nextcloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"context"
"os"

appprovider "github.com/cs3org/go-cs3apis/cs3/app/provider/v1beta1"
userpb "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
ocm "github.com/cs3org/go-cs3apis/cs3/sharing/ocm/v1beta1"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
Expand Down Expand Up @@ -280,7 +281,9 @@ var _ = Describe("Nextcloud", func() {
OpaqueId: "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c",
},
AccessMethods: []*ocm.AccessMethod{
masked_share.NewWebDavAccessMethod(conversions.RoleFromOCSPermissions(conversions.Permissions(1)).CS3ResourcePermissions()),
masked_share.NewWebDavAccessMethod(conversions.NewEditorRole().CS3ResourcePermissions()),
masked_share.NewWebappAccessMethod(appprovider.ViewMode_VIEW_MODE_READ_WRITE),
masked_share.NewTransferAccessMethod(),
},
Ctime: &types.Timestamp{
Seconds: 1234567890,
Expand Down Expand Up @@ -436,7 +439,9 @@ var _ = Describe("Nextcloud", func() {
},
ShareType: ocm.ShareType_SHARE_TYPE_USER,
AccessMethods: []*ocm.AccessMethod{
masked_share.NewWebDavAccessMethod(conversions.RoleFromOCSPermissions(conversions.Permissions(1)).CS3ResourcePermissions()),
masked_share.NewWebDavAccessMethod(conversions.NewEditorRole().CS3ResourcePermissions()),
masked_share.NewWebappAccessMethod(appprovider.ViewMode_VIEW_MODE_READ_WRITE),
masked_share.NewTransferAccessMethod(),
},
Token: "some-token",
}))
Expand Down

0 comments on commit fe23d00

Please sign in to comment.