Move advanced restore tests to nightly (#3961)
Hopefully will reduce time CI takes and make it so we don't timeout as often. --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [x] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Test Plan - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
de848249b5
commit
ab2aa0d54e
@ -872,20 +872,20 @@ func testExchangeContinuousBackups(suite *ExchangeBackupIntgSuite, toggles contr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ExchangeRestoreIntgSuite struct {
|
type ExchangeRestoreNightlyIntgSuite struct {
|
||||||
tester.Suite
|
tester.Suite
|
||||||
its intgTesterSetup
|
its intgTesterSetup
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestExchangeRestoreIntgSuite(t *testing.T) {
|
func TestExchangeRestoreIntgSuite(t *testing.T) {
|
||||||
suite.Run(t, &ExchangeRestoreIntgSuite{
|
suite.Run(t, &ExchangeRestoreNightlyIntgSuite{
|
||||||
Suite: tester.NewIntegrationSuite(
|
Suite: tester.NewNightlySuite(
|
||||||
t,
|
t,
|
||||||
[][]string{tconfig.M365AcctCredEnvs, storeTD.AWSStorageCredEnvs}),
|
[][]string{tconfig.M365AcctCredEnvs, storeTD.AWSStorageCredEnvs}),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *ExchangeRestoreIntgSuite) SetupSuite() {
|
func (suite *ExchangeRestoreNightlyIntgSuite) SetupSuite() {
|
||||||
suite.its = newIntegrationTesterSetup(suite.T())
|
suite.its = newIntegrationTesterSetup(suite.T())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -909,7 +909,7 @@ type clientItemPager interface {
|
|||||||
) (graph.Container, error)
|
) (graph.Container, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *ExchangeRestoreIntgSuite) TestRestore_Run_exchangeWithAdvancedOptions() {
|
func (suite *ExchangeRestoreNightlyIntgSuite) TestRestore_Run_exchangeWithAdvancedOptions() {
|
||||||
t := suite.T()
|
t := suite.T()
|
||||||
|
|
||||||
ctx, flush := tester.NewContext(t)
|
ctx, flush := tester.NewContext(t)
|
||||||
@ -1219,7 +1219,7 @@ func (suite *ExchangeRestoreIntgSuite) TestRestore_Run_exchangeWithAdvancedOptio
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *ExchangeRestoreIntgSuite) TestRestore_Run_exchangeAlternateProtectedResource() {
|
func (suite *ExchangeRestoreNightlyIntgSuite) TestRestore_Run_exchangeAlternateProtectedResource() {
|
||||||
t := suite.T()
|
t := suite.T()
|
||||||
|
|
||||||
ctx, flush := tester.NewContext(t)
|
ctx, flush := tester.NewContext(t)
|
||||||
|
|||||||
@ -964,24 +964,24 @@ func (suite *OneDriveBackupIntgSuite) TestBackup_Run_oneDriveExtensions() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type OneDriveRestoreIntgSuite struct {
|
type OneDriveRestoreNightlyIntgSuite struct {
|
||||||
tester.Suite
|
tester.Suite
|
||||||
its intgTesterSetup
|
its intgTesterSetup
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestOneDriveRestoreIntgSuite(t *testing.T) {
|
func TestOneDriveRestoreIntgSuite(t *testing.T) {
|
||||||
suite.Run(t, &OneDriveRestoreIntgSuite{
|
suite.Run(t, &OneDriveRestoreNightlyIntgSuite{
|
||||||
Suite: tester.NewIntegrationSuite(
|
Suite: tester.NewNightlySuite(
|
||||||
t,
|
t,
|
||||||
[][]string{tconfig.M365AcctCredEnvs, storeTD.AWSStorageCredEnvs}),
|
[][]string{tconfig.M365AcctCredEnvs, storeTD.AWSStorageCredEnvs}),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *OneDriveRestoreIntgSuite) SetupSuite() {
|
func (suite *OneDriveRestoreNightlyIntgSuite) SetupSuite() {
|
||||||
suite.its = newIntegrationTesterSetup(suite.T())
|
suite.its = newIntegrationTesterSetup(suite.T())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *OneDriveRestoreIntgSuite) TestRestore_Run_onedriveWithAdvancedOptions() {
|
func (suite *OneDriveRestoreNightlyIntgSuite) TestRestore_Run_onedriveWithAdvancedOptions() {
|
||||||
sel := selectors.NewOneDriveBackup([]string{suite.its.user.ID})
|
sel := selectors.NewOneDriveBackup([]string{suite.its.user.ID})
|
||||||
sel.Include(selTD.OneDriveBackupFolderScope(sel))
|
sel.Include(selTD.OneDriveBackupFolderScope(sel))
|
||||||
sel.DiscreteOwner = suite.its.user.ID
|
sel.DiscreteOwner = suite.its.user.ID
|
||||||
@ -1251,7 +1251,7 @@ func runDriveRestoreWithAdvancedOptions(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *OneDriveRestoreIntgSuite) TestRestore_Run_onedriveAlternateProtectedResource() {
|
func (suite *OneDriveRestoreNightlyIntgSuite) TestRestore_Run_onedriveAlternateProtectedResource() {
|
||||||
sel := selectors.NewOneDriveBackup([]string{suite.its.user.ID})
|
sel := selectors.NewOneDriveBackup([]string{suite.its.user.ID})
|
||||||
sel.Include(selTD.OneDriveBackupFolderScope(sel))
|
sel.Include(selTD.OneDriveBackupFolderScope(sel))
|
||||||
sel.DiscreteOwner = suite.its.user.ID
|
sel.DiscreteOwner = suite.its.user.ID
|
||||||
|
|||||||
@ -183,24 +183,24 @@ func (suite *SharePointBackupIntgSuite) TestBackup_Run_sharePointExtensions() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type SharePointRestoreIntgSuite struct {
|
type SharePointRestoreNightlyIntgSuite struct {
|
||||||
tester.Suite
|
tester.Suite
|
||||||
its intgTesterSetup
|
its intgTesterSetup
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSharePointRestoreIntgSuite(t *testing.T) {
|
func TestSharePointRestoreIntgSuite(t *testing.T) {
|
||||||
suite.Run(t, &SharePointRestoreIntgSuite{
|
suite.Run(t, &SharePointRestoreNightlyIntgSuite{
|
||||||
Suite: tester.NewIntegrationSuite(
|
Suite: tester.NewNightlySuite(
|
||||||
t,
|
t,
|
||||||
[][]string{tconfig.M365AcctCredEnvs, storeTD.AWSStorageCredEnvs}),
|
[][]string{tconfig.M365AcctCredEnvs, storeTD.AWSStorageCredEnvs}),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *SharePointRestoreIntgSuite) SetupSuite() {
|
func (suite *SharePointRestoreNightlyIntgSuite) SetupSuite() {
|
||||||
suite.its = newIntegrationTesterSetup(suite.T())
|
suite.its = newIntegrationTesterSetup(suite.T())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *SharePointRestoreIntgSuite) TestRestore_Run_sharepointWithAdvancedOptions() {
|
func (suite *SharePointRestoreNightlyIntgSuite) TestRestore_Run_sharepointWithAdvancedOptions() {
|
||||||
sel := selectors.NewSharePointBackup([]string{suite.its.site.ID})
|
sel := selectors.NewSharePointBackup([]string{suite.its.site.ID})
|
||||||
sel.Include(selTD.SharePointBackupFolderScope(sel))
|
sel.Include(selTD.SharePointBackupFolderScope(sel))
|
||||||
sel.Filter(sel.Library("documents"))
|
sel.Filter(sel.Library("documents"))
|
||||||
@ -215,7 +215,7 @@ func (suite *SharePointRestoreIntgSuite) TestRestore_Run_sharepointWithAdvancedO
|
|||||||
suite.its.site.DriveRootFolderID)
|
suite.its.site.DriveRootFolderID)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *SharePointRestoreIntgSuite) TestRestore_Run_sharepointAlternateProtectedResource() {
|
func (suite *SharePointRestoreNightlyIntgSuite) TestRestore_Run_sharepointAlternateProtectedResource() {
|
||||||
sel := selectors.NewSharePointBackup([]string{suite.its.site.ID})
|
sel := selectors.NewSharePointBackup([]string{suite.its.site.ID})
|
||||||
sel.Include(selTD.SharePointBackupFolderScope(sel))
|
sel.Include(selTD.SharePointBackupFolderScope(sel))
|
||||||
sel.Filter(sel.Library("documents"))
|
sel.Filter(sel.Library("documents"))
|
||||||
@ -230,7 +230,7 @@ func (suite *SharePointRestoreIntgSuite) TestRestore_Run_sharepointAlternateProt
|
|||||||
suite.its.secondarySite)
|
suite.its.secondarySite)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *SharePointRestoreIntgSuite) TestRestore_Run_sharepointDeletedDrives() {
|
func (suite *SharePointRestoreNightlyIntgSuite) TestRestore_Run_sharepointDeletedDrives() {
|
||||||
t := suite.T()
|
t := suite.T()
|
||||||
|
|
||||||
// despite the client having a method for drive.Patch and drive.Delete, both only return
|
// despite the client having a method for drive.Patch and drive.Delete, both only return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user