reduce load test to default folders (#1062)

## Description

Load Testing is causing folder growth (fix is underway)
and is already taking > 4 hours only to back-up emails.
This reduces the dataset to only the primary folders for
each exchange type.  We can expand from here when
data production is better under control.

## Type of change

- [x] 🤖 Test

## Issue(s)

* #902

## Test Plan

- [x] 💚 E2E
This commit is contained in:
Keepers 2022-10-05 17:42:04 -06:00 committed by GitHub
parent 4ba8f50c53
commit cba065ec94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/alcionai/corso/src/internal/connector/exchange"
"github.com/alcionai/corso/src/internal/operations"
"github.com/alcionai/corso/src/internal/tester"
"github.com/alcionai/corso/src/pkg/account"
@ -234,7 +235,9 @@ func (suite *RepositoryLoadTestExchangeSuite) TestExchange() {
// backup
bsel := selectors.NewExchangeBackup()
bsel.Include(bsel.MailFolders(selectors.Any(), selectors.Any()))
bsel.Include(bsel.MailFolders(selectors.Any(), []string{exchange.DefaultMailFolder}))
bsel.Include(bsel.ContactFolders(selectors.Any(), []string{exchange.DefaultContactFolder}))
bsel.Include(bsel.EventCalendars(selectors.Any(), []string{exchange.DefaultCalendar}))
b, err := r.NewBackup(ctx, bsel.Selector)
require.NoError(t, err)