Updates to internal/connector/sharepoint packages.

Issue #2709: ItemTypes changed from SharePointItem to respective ItemTypes.
This commit is contained in:
Danny Adams 2023-03-07 09:54:53 -05:00
parent 77ada22b59
commit 7fd47828ef
5 changed files with 7 additions and 7 deletions

View File

@ -263,7 +263,7 @@ func PageInfo(page models.SitePageable, size int64) *details.SharePointInfo {
)
return &details.SharePointInfo{
ItemType: details.SharePointItem,
ItemType: details.SharePointPage,
ItemName: name,
Created: created,
Modified: modified,

View File

@ -18,7 +18,7 @@ func sharePointListInfo(lst models.Listable, size int64) *details.SharePointInfo
)
return &details.SharePointInfo{
ItemType: details.SharePointItem,
ItemType: details.SharePointList,
ItemName: name,
Created: created,
Modified: modified,

View File

@ -27,7 +27,7 @@ func (suite *SharePointInfoSuite) TestSharePointInfo() {
{
name: "Empty List",
listAndDeets: func() (models.Listable, *details.SharePointInfo) {
i := &details.SharePointInfo{ItemType: details.SharePointItem}
i := &details.SharePointInfo{ItemType: details.SharePointList}
return models.NewList(), i
},
}, {
@ -37,7 +37,7 @@ func (suite *SharePointInfoSuite) TestSharePointInfo() {
listing := models.NewList()
listing.SetDisplayName(&aTitle)
i := &details.SharePointInfo{
ItemType: details.SharePointItem,
ItemType: details.SharePointList,
ItemName: aTitle,
}

View File

@ -37,7 +37,7 @@ func sharePointPageInfo(page models.SitePageable, root string, size int64) *deta
}
return &details.SharePointInfo{
ItemType: details.SharePointItem,
ItemType: details.SharePointPage,
ItemName: name,
ParentPath: root,
Created: created,

View File

@ -17,7 +17,7 @@ func (suite *SharePointInfoSuite) TestSharePointInfo_Pages() {
{
name: "Empty Page",
pageAndDeets: func() (models.SitePageable, *details.SharePointInfo) {
deets := &details.SharePointInfo{ItemType: details.SharePointItem}
deets := &details.SharePointInfo{ItemType: details.SharePointPage}
return models.NewSitePage(), deets
},
},
@ -28,7 +28,7 @@ func (suite *SharePointInfoSuite) TestSharePointInfo_Pages() {
sPage := models.NewSitePage()
sPage.SetTitle(&title)
deets := &details.SharePointInfo{
ItemType: details.SharePointItem,
ItemType: details.SharePointPage,
ItemName: title,
}