Update to pkg/backup/details/details_test.go
Tests updated to support the 3 categories within SharePoint ItemTypes.
This commit is contained in:
parent
6bcc85a7f3
commit
7c498b42c1
@ -780,7 +780,7 @@ func (suite *DetailsUnitSuite) TestUpdateItem() {
|
|||||||
name: "SharePoint",
|
name: "SharePoint",
|
||||||
input: ItemInfo{
|
input: ItemInfo{
|
||||||
SharePoint: &SharePointInfo{
|
SharePoint: &SharePointInfo{
|
||||||
ItemType: SharePointItem,
|
ItemType: SharePointLibrary,
|
||||||
ParentPath: folder1,
|
ParentPath: folder1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -789,7 +789,7 @@ func (suite *DetailsUnitSuite) TestUpdateItem() {
|
|||||||
errCheck: assert.NoError,
|
errCheck: assert.NoError,
|
||||||
expectedItem: ItemInfo{
|
expectedItem: ItemInfo{
|
||||||
SharePoint: &SharePointInfo{
|
SharePoint: &SharePointInfo{
|
||||||
ItemType: SharePointItem,
|
ItemType: SharePointLibrary,
|
||||||
ParentPath: folder2,
|
ParentPath: folder2,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -810,7 +810,7 @@ func (suite *DetailsUnitSuite) TestUpdateItem() {
|
|||||||
name: "SharePointBadPath",
|
name: "SharePointBadPath",
|
||||||
input: ItemInfo{
|
input: ItemInfo{
|
||||||
SharePoint: &SharePointInfo{
|
SharePoint: &SharePointInfo{
|
||||||
ItemType: SharePointItem,
|
ItemType: SharePointLibrary,
|
||||||
ParentPath: folder1,
|
ParentPath: folder1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user