Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
fix up rebase inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfkeepers committed Jan 3, 2023
1 parent 53ff7ca commit 8328480
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
18 changes: 5 additions & 13 deletions src/internal/connector/data_collections_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,32 +71,25 @@ func (suite *ConnectorDataCollectionIntegrationSuite) TestExchangeDataCollection
getSelector: func(t *testing.T) selectors.Selector {
sel := selectors.NewExchangeBackup(selUsers)
sel.Include(sel.MailFolders(selUsers, []string{exchange.DefaultMailFolder}, selectors.PrefixMatch()))

sel.DiscreteOwner = suite.user
return sel.Selector
},
},
{
name: suite.user + " Contacts",
getSelector: func(t *testing.T) selectors.Selector {
sel := selectors.NewExchangeBackup(selUsers)
sel.Include(sel.ContactFolders(
selUsers,
[]string{exchange.DefaultContactFolder},
selectors.PrefixMatch()))

sel.Include(sel.ContactFolders(selUsers, []string{exchange.DefaultContactFolder}, selectors.PrefixMatch()))
sel.DiscreteOwner = suite.user
return sel.Selector
},
},
// {
// name: suite.user + " Events",
// getSelector: func(t *testing.T) selectors.Selector {
// sel := selectors.NewExchangeBackup(selUsers)
// sel.Include(sel.EventCalendars(
// selUsers,
// []string{exchange.DefaultCalendar},
// selectors.PrefixMatch(),
// ))

// sel.Include(sel.EventCalendars(selUsers, []string{exchange.DefaultCalendar}, selectors.PrefixMatch()))
// sel.DiscreteOwner = suite.user
// return sel.Selector
// },
// },
Expand All @@ -108,7 +101,6 @@ func (suite *ConnectorDataCollectionIntegrationSuite) TestExchangeDataCollection
ctx,
test.getSelector(t),
nil,
[]string{suite.user},
connector.credentials,
connector.UpdateStatus,
control.Options{})
Expand Down
8 changes: 6 additions & 2 deletions src/internal/connector/exchange/data_collections_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,12 @@ func (suite *DataCollectionsIntegrationSuite) TestMailFetch() {
},
}

// gc := loadConnector(ctx, t, Users)

for _, test := range tests {
suite.T().Run(test.name, func(t *testing.T) {
collections, err := createCollections(
ctx,
acct,
userID,
test.scope,
DeltaPaths{},
control.Options{},
Expand Down Expand Up @@ -324,6 +323,7 @@ func (suite *DataCollectionsIntegrationSuite) TestDelta() {
collections, err := createCollections(
ctx,
acct,
userID,
test.scope,
DeltaPaths{},
control.Options{},
Expand Down Expand Up @@ -351,6 +351,7 @@ func (suite *DataCollectionsIntegrationSuite) TestDelta() {
collections, err = createCollections(
ctx,
acct,
userID,
test.scope,
dps,
control.Options{},
Expand Down Expand Up @@ -395,6 +396,7 @@ func (suite *DataCollectionsIntegrationSuite) TestMailSerializationRegression()
collections, err := createCollections(
ctx,
acct,
suite.user,
sel.Scopes()[0],
DeltaPaths{},
control.Options{},
Expand Down Expand Up @@ -462,6 +464,7 @@ func (suite *DataCollectionsIntegrationSuite) TestContactSerializationRegression
edcs, err := createCollections(
ctx,
acct,
suite.user,
test.scope,
DeltaPaths{},
control.Options{},
Expand Down Expand Up @@ -546,6 +549,7 @@ func (suite *DataCollectionsIntegrationSuite) TestEventsSerializationRegression(
collections, err := createCollections(
ctx,
acct,
suite.user,
test.scope,
DeltaPaths{},
control.Options{},
Expand Down

0 comments on commit 8328480

Please sign in to comment.