From a4b6309661e778e8f1b746d9aacfd8448f2c9cb6 Mon Sep 17 00:00:00 2001 From: ryanfkeepers Date: Wed, 4 Jan 2023 09:14:18 -0700 Subject: [PATCH] testing --- src/internal/connector/exchange/api/mail.go | 2 +- src/internal/connector/exchange/restore_test.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/internal/connector/exchange/api/mail.go b/src/internal/connector/exchange/api/mail.go index 79b2c90f4..6a61183ba 100644 --- a/src/internal/connector/exchange/api/mail.go +++ b/src/internal/connector/exchange/api/mail.go @@ -15,7 +15,7 @@ import ( // CreateMailFolder makes a mail folder iff a folder of the same name does not exist // Reference: https://docs.microsoft.com/en-us/graph/api/user-post-mailfolders?view=graph-rest-1.0&tabs=http -func (c Client) CreateMailFolder( +func (c Client) NewName( ctx context.Context, user, folder string, ) (models.MailFolderable, error) { diff --git a/src/internal/connector/exchange/restore_test.go b/src/internal/connector/exchange/restore_test.go index 3b739c6bb..d2658230b 100644 --- a/src/internal/connector/exchange/restore_test.go +++ b/src/internal/connector/exchange/restore_test.go @@ -149,7 +149,7 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() { cleanupFunc: suite.ac.DeleteMailFolder, destination: func(t *testing.T, ctx context.Context) string { folderName := "TestRestoreMailObject: " + common.FormatSimpleDateTime(now) - folder, err := suite.ac.CreateMailFolder(ctx, userID, folderName) + folder, err := suite.ac.NewName(ctx, userID, folderName) require.NoError(t, err) return *folder.GetId() @@ -162,7 +162,7 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() { cleanupFunc: suite.ac.DeleteMailFolder, destination: func(t *testing.T, ctx context.Context) string { folderName := "TestRestoreMailwithAttachment: " + common.FormatSimpleDateTime(now) - folder, err := suite.ac.CreateMailFolder(ctx, userID, folderName) + folder, err := suite.ac.NewName(ctx, userID, folderName) require.NoError(t, err) return *folder.GetId() @@ -175,7 +175,7 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() { cleanupFunc: suite.ac.DeleteMailFolder, destination: func(t *testing.T, ctx context.Context) string { folderName := "TestRestoreMailwithLargeAttachment: " + common.FormatSimpleDateTime(now) - folder, err := suite.ac.CreateMailFolder(ctx, userID, folderName) + folder, err := suite.ac.NewName(ctx, userID, folderName) require.NoError(t, err) return *folder.GetId() @@ -188,7 +188,7 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() { cleanupFunc: suite.ac.DeleteMailFolder, destination: func(t *testing.T, ctx context.Context) string { folderName := "TestRestoreMailwithAttachments: " + common.FormatSimpleDateTime(now) - folder, err := suite.ac.CreateMailFolder(ctx, userID, folderName) + folder, err := suite.ac.NewName(ctx, userID, folderName) require.NoError(t, err) return *folder.GetId() @@ -201,7 +201,7 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() { cleanupFunc: suite.ac.DeleteMailFolder, destination: func(t *testing.T, ctx context.Context) string { folderName := "TestRestoreMailwithReferenceAttachment: " + common.FormatSimpleDateTime(now) - folder, err := suite.ac.CreateMailFolder(ctx, userID, folderName) + folder, err := suite.ac.NewName(ctx, userID, folderName) require.NoError(t, err) return *folder.GetId()