diff --git a/src/internal/connector/onedrive/collection_test.go b/src/internal/connector/onedrive/collection_test.go index a5c815f14..a79946235 100644 --- a/src/internal/connector/onedrive/collection_test.go +++ b/src/internal/connector/onedrive/collection_test.go @@ -8,6 +8,7 @@ import ( "sync" "testing" + absser "github.com/microsoft/kiota-abstractions-go/serialization" msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" "github.com/microsoftgraph/msgraph-sdk-go/models" "github.com/stretchr/testify/assert" @@ -36,6 +37,10 @@ func (suite *CollectionUnitTestSuite) Adapter() *msgraphsdk.GraphRequestAdapter return nil } +func (suite *CollectionUnitTestSuite) Serialize(object absser.Parsable) ([]byte, error) { + return nil, nil +} + func TestCollectionUnitTestSuite(t *testing.T) { suite.Run(t, new(CollectionUnitTestSuite)) } diff --git a/src/internal/connector/onedrive/item_test.go b/src/internal/connector/onedrive/item_test.go index e423e65d9..63a94f6ea 100644 --- a/src/internal/connector/onedrive/item_test.go +++ b/src/internal/connector/onedrive/item_test.go @@ -6,6 +6,7 @@ import ( "io" "testing" + absser "github.com/microsoft/kiota-abstractions-go/serialization" msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" "github.com/microsoftgraph/msgraph-sdk-go/models" "github.com/stretchr/testify/require" @@ -34,6 +35,10 @@ func (suite *ItemIntegrationSuite) Adapter() *msgraphsdk.GraphRequestAdapter { return suite.adapter } +func (suite *ItemIntegrationSuite) Serialize(object absser.Parsable) ([]byte, error) { + return nil, nil +} + func TestItemIntegrationSuite(t *testing.T) { tester.RunOnAny( t, diff --git a/src/internal/connector/onedrive/service_test.go b/src/internal/connector/onedrive/service_test.go index 00a791f1e..9508592b5 100644 --- a/src/internal/connector/onedrive/service_test.go +++ b/src/internal/connector/onedrive/service_test.go @@ -3,6 +3,7 @@ package onedrive import ( "testing" + absser "github.com/microsoft/kiota-abstractions-go/serialization" msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" "github.com/stretchr/testify/require" @@ -22,6 +23,10 @@ func (ms *MockGraphService) Adapter() *msgraphsdk.GraphRequestAdapter { return nil } +func (ms *MockGraphService) Serialize(object absser.Parsable) ([]byte, error) { + return nil, nil +} + // TODO(ashmrtn): Merge with similar structs in graph and exchange packages. type oneDriveService struct { client msgraphsdk.GraphServiceClient @@ -38,6 +43,10 @@ func (ods *oneDriveService) Adapter() *msgraphsdk.GraphRequestAdapter { return &ods.adapter } +func (ods *oneDriveService) Serialize(object absser.Parsable) ([]byte, error) { + return nil, nil +} + func NewOneDriveService(credentials account.M365Config) (*oneDriveService, error) { adapter, err := graph.CreateAdapter( credentials.AzureTenantID,