minor value fixes in mail consts/types (#722)
- [x] 🐹 Trivial/Minor - [x] 🐛 Bug closes #726
This commit is contained in:
parent
a043304e0b
commit
da6288cb8b
@ -217,7 +217,7 @@ func (s *exchange) EventCalendars(users, events []string) []ExchangeScope {
|
|||||||
|
|
||||||
scopes = append(
|
scopes = append(
|
||||||
scopes,
|
scopes,
|
||||||
makeScope[ExchangeScope](Item, ExchangeEventCalendar, users, events),
|
makeScope[ExchangeScope](Group, ExchangeEventCalendar, users, events),
|
||||||
)
|
)
|
||||||
|
|
||||||
return scopes
|
return scopes
|
||||||
@ -477,7 +477,7 @@ const (
|
|||||||
ExchangeEvent exchangeCategory = "ExchangeEvent"
|
ExchangeEvent exchangeCategory = "ExchangeEvent"
|
||||||
ExchangeEventCalendar exchangeCategory = "ExchangeEventCalendar"
|
ExchangeEventCalendar exchangeCategory = "ExchangeEventCalendar"
|
||||||
ExchangeMail exchangeCategory = "ExchangeMail"
|
ExchangeMail exchangeCategory = "ExchangeMail"
|
||||||
ExchangeMailFolder exchangeCategory = "ExchangeFolder"
|
ExchangeMailFolder exchangeCategory = "ExchangeMailFolder"
|
||||||
ExchangeUser exchangeCategory = "ExchangeUser"
|
ExchangeUser exchangeCategory = "ExchangeUser"
|
||||||
// append new data cats here
|
// append new data cats here
|
||||||
|
|
||||||
|
|||||||
@ -881,8 +881,8 @@ func (suite *ExchangeSelectorSuite) TestExchangeRestore_Reduce() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
contact = "tid/uid/contact/cfld/cid"
|
contact = "tid/uid/contacts/cfld/cid"
|
||||||
event = "tid/uid/event/ecld/eid"
|
event = "tid/uid/events/ecld/eid"
|
||||||
mail = "tid/uid/mail/mfld/mid"
|
mail = "tid/uid/mail/mfld/mid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -293,9 +293,9 @@ func pathTypeIn(path []string) pathType {
|
|||||||
switch path[2] {
|
switch path[2] {
|
||||||
case "mail":
|
case "mail":
|
||||||
return exchangeMailPath
|
return exchangeMailPath
|
||||||
case "contact":
|
case "contacts":
|
||||||
return exchangeContactPath
|
return exchangeContactPath
|
||||||
case "event":
|
case "events":
|
||||||
return exchangeEventPath
|
return exchangeEventPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -244,8 +244,8 @@ func (suite *SelectorScopesSuite) TestPathTypeIn() {
|
|||||||
t := suite.T()
|
t := suite.T()
|
||||||
assert.Equal(t, unknownPathType, pathTypeIn([]string{}), "empty")
|
assert.Equal(t, unknownPathType, pathTypeIn([]string{}), "empty")
|
||||||
assert.Equal(t, exchangeMailPath, pathTypeIn([]string{"", "", "mail"}), "mail")
|
assert.Equal(t, exchangeMailPath, pathTypeIn([]string{"", "", "mail"}), "mail")
|
||||||
assert.Equal(t, exchangeContactPath, pathTypeIn([]string{"", "", "contact"}), "contact")
|
assert.Equal(t, exchangeContactPath, pathTypeIn([]string{"", "", "contacts"}), "contact")
|
||||||
assert.Equal(t, exchangeEventPath, pathTypeIn([]string{"", "", "event"}), "event")
|
assert.Equal(t, exchangeEventPath, pathTypeIn([]string{"", "", "events"}), "event")
|
||||||
assert.Equal(t, unknownPathType, pathTypeIn([]string{"", "", "fnords"}), "bogus")
|
assert.Equal(t, unknownPathType, pathTypeIn([]string{"", "", "fnords"}), "bogus")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user