Documentation
¶
Overview ¶
Package davsession scripts the write sessions that are recorded against a provider's servers and replayed in tests (docs/design/testing.md, DAV and Tasks recordings). tools/davsession runs a session against the provider through a recording transport; the replay test runs the same session against the scrubbed recording. Both run this code, so they send the same requests in the same order.
Index ¶
Constants ¶
const GoogleZone = "America/New_York"
GoogleZone is the zone the Google session's events are written in.
const MicrosoftZone = "America/New_York"
MicrosoftZone is the zone the Microsoft session's events are written in.
Variables ¶
This section is empty.
Functions ¶
func Google ¶
Google is the Gmail write session: on the account's default calendar, a single event made, changed, deleted and restored; a daily series changed in each scope (This Event restored at once, as Ctrl+Z does); an all-day event made and deleted; then a contact made, changed, given a photo, deleted and restored. Everything it makes is deleted at the end, and a last pass finds nothing changed. Each write is followed by one pass, which sends it.
func Microsoft ¶
Microsoft is the Outlook.com write session over Microsoft Graph (plan 0010, Phase 3b), on the account's default calendar: a single event made, changed, deleted and restored; a daily series with an occurrence moved and the move undone, an occurrence deleted, every occurrence changed, the series moved to another time (Outlook drops its exceptions then, and they are written again) and split from its fourth; an all-day event made and deleted; then a contact made, changed, given a photo, deleted and restored. Everything it makes is deleted at the end, and a last pass finds nothing changed. Each write is followed by one pass, which sends it. Its events and its contact are named "FM replay".
Types ¶
type Session ¶
type Session struct {
Calendar api.CalendarService
People api.PeopleService
// Pass runs one sync pass of the account.
Pass func(context.Context) error
// Step, when set, hears each step's name before it runs.
Step func(name string)
}
Session is what a script drives: an engine's calendar and people services over one account, and a sync pass of that account.