From 153df8ba23aa199dc8908c4013da607dcb7857bb Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Mon, 18 Sep 2023 14:59:09 +0530 Subject: [PATCH] Fix incorrect sharepoint export test (#4278) --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [x] :robot: Supportability/Tests - [ ] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [x] :zap: Unit test - [ ] :green_heart: E2E --- src/internal/m365/service/sharepoint/export_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal/m365/service/sharepoint/export_test.go b/src/internal/m365/service/sharepoint/export_test.go index 4cf4d0b57..e2afbe680 100644 --- a/src/internal/m365/service/sharepoint/export_test.go +++ b/src/internal/m365/service/sharepoint/export_test.go @@ -20,6 +20,7 @@ import ( "github.com/alcionai/corso/src/pkg/control" "github.com/alcionai/corso/src/pkg/export" "github.com/alcionai/corso/src/pkg/fault" + "github.com/alcionai/corso/src/pkg/path" ) type ExportUnitSuite struct { @@ -78,7 +79,7 @@ func (suite *ExportUnitSuite) TestExportRestoreCollections() { dii.OneDrive.ItemName = "name1" - p, err := dpb.ToDataLayerOneDrivePath("t", "u", false) + p, err := dpb.ToDataLayerSharePointPath("t", "u", path.LibrariesCategory, false) assert.NoError(t, err, "build path") dcs := []data.RestoreCollection{