Keepers 11c6169056
add groups operations v0 backup test (#4102)
adds basic backup integration tests for groups in the operations testing package.
currently skipped and awaiting full v0 backup implementation.

---

#### Does this PR need a docs update or release note?

- [x]  No

#### Type of change

- [x] 🤖 Supportability/Tests

#### Issue(s)

* #3988

#### Test Plan

- [x]  Unit test
- [x] 💚 E2E
2023-08-24 19:02:58 +00:00

20 lines
699 B
Go

package testdata
import (
"github.com/alcionai/corso/src/pkg/selectors"
)
const TestChannelName = "test"
// GroupsBackupFolderScope is the standard folder scope that should be used
// in integration backups with groups when interacting with libraries.
func GroupsBackupLibraryFolderScope(sel *selectors.GroupsBackup) []selectors.GroupsScope {
return sel.LibraryFolders([]string{TestFolderName}, selectors.PrefixMatch())
}
// GroupsBackupChannelScope is the standard folder scope that should be used
// in integration backups with groups when interacting with channels.
func GroupsBackupChannelScope(sel *selectors.GroupsBackup) []selectors.GroupsScope {
return sel.Channel(TestChannelName)
}