Switch to using BuildMetadata helper (#4217)
<!-- PR description--> --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [x] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> #### Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
bf08c2a257
commit
39428a4b41
@ -543,9 +543,7 @@ func (suite *GroupsCollectionIntgSuite) TestCreateGroupsCollection_SharePoint()
|
|||||||
// but it should be more than one.
|
// but it should be more than one.
|
||||||
assert.Greater(t, len(collections), 1)
|
assert.Greater(t, len(collections), 1)
|
||||||
|
|
||||||
// TODO(meain): Switch to using BuildMetadata
|
p, err := path.BuildMetadata(
|
||||||
// https://github.com/alcionai/corso/pull/4184#discussion_r1316139701
|
|
||||||
p, err := path.Builder{}.ToServiceCategoryMetadataPath(
|
|
||||||
suite.tenantID,
|
suite.tenantID,
|
||||||
groupID,
|
groupID,
|
||||||
path.GroupsService,
|
path.GroupsService,
|
||||||
|
|||||||
@ -187,9 +187,7 @@ func getSitesMetadataCollection(
|
|||||||
sites map[string]string,
|
sites map[string]string,
|
||||||
su support.StatusUpdater,
|
su support.StatusUpdater,
|
||||||
) (data.BackupCollection, error) {
|
) (data.BackupCollection, error) {
|
||||||
// TODO(meain): Switch to using BuildMetadata
|
p, err := path.BuildMetadata(
|
||||||
// https://github.com/alcionai/corso/pull/4184#discussion_r1316139701
|
|
||||||
p, err := path.Builder{}.ToServiceCategoryMetadataPath(
|
|
||||||
tenantID,
|
tenantID,
|
||||||
groupID,
|
groupID,
|
||||||
path.GroupsService,
|
path.GroupsService,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user