minor value fixes in mail consts/types (#722)

- [x] 🐹 Trivial/Minor
- [x] 🐛 Bug

closes #726
This commit is contained in:
Keepers 2022-09-01 15:34:57 -06:00 committed by GitHub
parent a043304e0b
commit da6288cb8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -217,7 +217,7 @@ func (s *exchange) EventCalendars(users, events []string) []ExchangeScope {
scopes = append(
scopes,
makeScope[ExchangeScope](Item, ExchangeEventCalendar, users, events),
makeScope[ExchangeScope](Group, ExchangeEventCalendar, users, events),
)
return scopes
@ -477,7 +477,7 @@ const (
ExchangeEvent exchangeCategory = "ExchangeEvent"
ExchangeEventCalendar exchangeCategory = "ExchangeEventCalendar"
ExchangeMail exchangeCategory = "ExchangeMail"
ExchangeMailFolder exchangeCategory = "ExchangeFolder"
ExchangeMailFolder exchangeCategory = "ExchangeMailFolder"
ExchangeUser exchangeCategory = "ExchangeUser"
// append new data cats here

View File

@ -881,8 +881,8 @@ func (suite *ExchangeSelectorSuite) TestExchangeRestore_Reduce() {
}
const (
contact = "tid/uid/contact/cfld/cid"
event = "tid/uid/event/ecld/eid"
contact = "tid/uid/contacts/cfld/cid"
event = "tid/uid/events/ecld/eid"
mail = "tid/uid/mail/mfld/mid"
)

View File

@ -293,9 +293,9 @@ func pathTypeIn(path []string) pathType {
switch path[2] {
case "mail":
return exchangeMailPath
case "contact":
case "contacts":
return exchangeContactPath
case "event":
case "events":
return exchangeEventPath
}

View File

@ -244,8 +244,8 @@ func (suite *SelectorScopesSuite) TestPathTypeIn() {
t := suite.T()
assert.Equal(t, unknownPathType, pathTypeIn([]string{}), "empty")
assert.Equal(t, exchangeMailPath, pathTypeIn([]string{"", "", "mail"}), "mail")
assert.Equal(t, exchangeContactPath, pathTypeIn([]string{"", "", "contact"}), "contact")
assert.Equal(t, exchangeEventPath, pathTypeIn([]string{"", "", "event"}), "event")
assert.Equal(t, exchangeContactPath, pathTypeIn([]string{"", "", "contacts"}), "contact")
assert.Equal(t, exchangeEventPath, pathTypeIn([]string{"", "", "events"}), "event")
assert.Equal(t, unknownPathType, pathTypeIn([]string{"", "", "fnords"}), "bogus")
}