remove unused test scoping envs

This commit is contained in:
ryanfkeepers 2023-02-24 14:44:45 -07:00
parent a7cfc6cd5c
commit f07c4e407a
30 changed files with 32 additions and 110 deletions

View File

@ -54,8 +54,7 @@ func TestNoBackupExchangeE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, )})
tester.CorsoCLIBackupTests)})
} }
func (suite *NoBackupExchangeE2ESuite) SetupSuite() { func (suite *NoBackupExchangeE2ESuite) SetupSuite() {
@ -134,8 +133,7 @@ func TestBackupExchangeE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, )})
tester.CorsoCLIBackupTests)})
} }
func (suite *BackupExchangeE2ESuite) SetupSuite() { func (suite *BackupExchangeE2ESuite) SetupSuite() {
@ -224,8 +222,7 @@ func TestPreparedBackupExchangeE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, )})
tester.CorsoCLIBackupTests)})
} }
func (suite *PreparedBackupExchangeE2ESuite) SetupSuite() { func (suite *PreparedBackupExchangeE2ESuite) SetupSuite() {
@ -462,8 +459,7 @@ func TestBackupDeleteExchangeE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, ),
tester.CorsoCLIBackupTests),
}) })
} }

View File

@ -45,8 +45,7 @@ func TestNoBackupOneDriveE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, ),
tester.CorsoCLIBackupTests),
}) })
} }
@ -133,8 +132,7 @@ func TestBackupDeleteOneDriveE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, ),
tester.CorsoCLIBackupTests),
}) })
} }

View File

@ -44,8 +44,7 @@ func TestNoBackupSharePointE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, )})
tester.CorsoCLIBackupTests)})
} }
func (suite *NoBackupSharePointE2ESuite) SetupSuite() { func (suite *NoBackupSharePointE2ESuite) SetupSuite() {
@ -125,8 +124,7 @@ func TestBackupDeleteSharePointE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, ),
tester.CorsoCLIBackupTests),
}) })
} }

View File

@ -190,7 +190,7 @@ func TestConfigIntegrationSuite(t *testing.T) {
suite.Run(t, &ConfigIntegrationSuite{Suite: tester.NewIntegrationSuite( suite.Run(t, &ConfigIntegrationSuite{Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCLIConfigTests)}) )})
} }
func (suite *ConfigIntegrationSuite) TestGetStorageAndAccount() { func (suite *ConfigIntegrationSuite) TestGetStorageAndAccount() {

View File

@ -24,8 +24,7 @@ func TestS3E2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, )})
tester.CorsoCLIRepoTests)})
} }
func (suite *S3E2ESuite) TestInitS3Cmd() { func (suite *S3E2ESuite) TestInitS3Cmd() {

View File

@ -47,8 +47,7 @@ func TestRestoreExchangeE2ESuite(t *testing.T) {
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
tester.CorsoCITests, tester.CorsoCITests,
tester.CorsoCLITests, ),
tester.CorsoCLIRestoreTests),
}) })
} }

View File

@ -35,8 +35,7 @@ func TestConnectorDataCollectionIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoConnectorDataCollectionTests),
}) })
} }
@ -307,8 +306,7 @@ func TestConnectorCreateSharePointCollectionIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoConnectorCreateSharePointCollectionTests),
}) })
} }

View File

@ -26,8 +26,7 @@ func TestExchangeServiceSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorExchangeTests),
}) })
} }

View File

@ -519,9 +519,7 @@ func TestFolderCacheIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorExchangeTests,
tester.CorsoConnectorExchangeFolderCacheTests),
}) })
} }

View File

@ -219,9 +219,7 @@ func TestDataCollectionsIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorExchangeTests,
tester.CorsoConnectorCreateExchangeCollectionTests),
}) })
} }

View File

@ -24,8 +24,7 @@ func TestCacheResolverIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorExchangeTests),
}) })
} }

View File

@ -36,8 +36,7 @@ func TestMailFolderCacheIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorExchangeTests),
}) })
} }

View File

@ -33,9 +33,7 @@ func TestExchangeRestoreSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorExchangeTests,
tester.CorsoConnectorRestoreExchangeCollectionTests),
}) })
} }

View File

@ -19,10 +19,7 @@ type BetaClientSuite struct {
func TestBetaClientSuite(t *testing.T) { func TestBetaClientSuite(t *testing.T) {
suite.Run(t, &BetaClientSuite{ suite.Run(t, &BetaClientSuite{
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(t, [][]string{tester.M365AcctCredEnvs}),
t,
[][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests),
}) })
} }

View File

@ -96,8 +96,7 @@ func TestGraphConnectorOneDriveIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorOneDriveTests),
}) })
} }

View File

@ -151,8 +151,7 @@ func TestGraphConnectorIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorExchangeTests),
}) })
} }

View File

@ -332,8 +332,7 @@ func TestOneDriveDriveSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorOneDriveTests),
}) })
} }

View File

@ -40,8 +40,7 @@ func TestItemIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorOneDriveTests),
}) })
} }

View File

@ -40,11 +40,7 @@ func (suite *SharePointPageSuite) SetupSuite() {
func TestSharePointPageSuite(t *testing.T) { func TestSharePointPageSuite(t *testing.T) {
suite.Run(t, &SharePointPageSuite{ suite.Run(t, &SharePointPageSuite{
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(t, [][]string{tester.M365AcctCredEnvs}),
t,
[][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests,
tester.CorsoGraphConnectorSharePointTests),
}) })
} }

View File

@ -46,8 +46,7 @@ func TestSharePointCollectionSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorSharePointTests),
}) })
} }

View File

@ -169,8 +169,7 @@ func TestSharePointPagesSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorSharePointTests),
}) })
} }

View File

@ -31,8 +31,7 @@ func TestSharePointSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoGraphConnectorSharePointTests),
}) })
} }

View File

@ -63,7 +63,6 @@ func TestWrapperIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs}, [][]string{tester.AWSStorageCredEnvs},
tester.CorsoKopiaWrapperTests,
), ),
}) })
} }

View File

@ -67,7 +67,6 @@ func TestModelStoreIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs}, [][]string{tester.AWSStorageCredEnvs},
tester.CorsoModelStoreTests,
), ),
}) })
} }
@ -724,7 +723,6 @@ func TestModelStoreRegressionSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs}, [][]string{tester.AWSStorageCredEnvs},
tester.CorsoModelStoreTests,
), ),
}) })
} }

View File

@ -158,7 +158,6 @@ func TestKopiaIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs}, [][]string{tester.AWSStorageCredEnvs},
tester.CorsoKopiaWrapperTests,
), ),
}) })
} }
@ -574,7 +573,6 @@ func TestKopiaSimpleRepoIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs}, [][]string{tester.AWSStorageCredEnvs},
tester.CorsoKopiaWrapperTests,
), ),
}) })
} }

View File

@ -456,12 +456,7 @@ type BackupOpIntegrationSuite struct {
} }
func TestBackupOpIntegrationSuite(t *testing.T) { func TestBackupOpIntegrationSuite(t *testing.T) {
tester.RunOnAny( tester.RunOnAny(t, tester.CorsoCITests)
t,
tester.CorsoCITests,
tester.CorsoOperationTests,
tester.CorsoOperationBackupTests)
suite.Run(t, new(BackupOpIntegrationSuite)) suite.Run(t, new(BackupOpIntegrationSuite))
} }

View File

@ -136,10 +136,7 @@ type RestoreOpIntegrationSuite struct {
} }
func TestRestoreOpIntegrationSuite(t *testing.T) { func TestRestoreOpIntegrationSuite(t *testing.T) {
tester.RunOnAny( tester.RunOnAny(t, tester.CorsoCITests)
t,
tester.CorsoCITests,
tester.CorsoOperationTests)
suite.Run(t, new(RestoreOpIntegrationSuite)) suite.Run(t, new(RestoreOpIntegrationSuite))
} }

View File

@ -15,28 +15,6 @@ const (
CorsoCITests = "CORSO_CI_TESTS" CorsoCITests = "CORSO_CI_TESTS"
CorsoE2ETests = "CORSO_E2E_TESTS" CorsoE2ETests = "CORSO_E2E_TESTS"
CorsoLoadTests = "CORSO_LOAD_TESTS" CorsoLoadTests = "CORSO_LOAD_TESTS"
CorsoCLIBackupTests = "CORSO_COMMAND_LINE_BACKUP_TESTS"
CorsoCLIConfigTests = "CORSO_COMMAND_LINE_CONFIG_TESTS"
CorsoCLIRepoTests = "CORSO_COMMAND_LINE_REPO_TESTS"
CorsoCLIRestoreTests = "CORSO_COMMAND_LINE_RESTORE_TESTS"
CorsoCLITests = "CORSO_COMMAND_LINE_TESTS"
CorsoConnectorCreateCollectionTests = "CORSO_CONNECTOR_CREATE_COLLECTION_TESTS"
CorsoConnectorCreateExchangeCollectionTests = "CORSO_CONNECTOR_CREATE_EXCHANGE_COLLECTION_TESTS"
CorsoConnectorCreateSharePointCollectionTests = "CORSO_CONNECTOR_CREATE_SHAREPOINT_COLLECTION_TESTS"
CorsoConnectorDataCollectionTests = "CORSO_CONNECTOR_DATA_COLLECTION_TESTS"
CorsoConnectorExchangeFolderCacheTests = "CORSO_CONNECTOR_EXCHANGE_FOLDER_CACHE_TESTS"
CorsoConnectorRestoreExchangeCollectionTests = "CORSO_CONNECTOR_RESTORE_EXCHANGE_COLLECTION_TESTS"
CorsoGraphConnectorTests = "CORSO_GRAPH_CONNECTOR_TESTS"
CorsoGraphConnectorExchangeTests = "CORSO_GRAPH_CONNECTOR_EXCHANGE_TESTS"
CorsoGraphConnectorOneDriveTests = "CORSO_GRAPH_CONNECTOR_ONE_DRIVE_TESTS"
CorsoGraphConnectorSharePointTests = "CORSO_GRAPH_CONNECTOR_SHAREPOINT_TESTS"
CorsoKopiaWrapperTests = "CORSO_KOPIA_WRAPPER_TESTS"
CorsoModelStoreTests = "CORSO_MODEL_STORE_TESTS"
CorsoOneDriveTests = "CORSO_ONE_DRIVE_TESTS"
CorsoOperationTests = "CORSO_OPERATION_TESTS"
CorsoOperationBackupTests = "CORSO_OPERATION_BACKUP_TESTS"
CorsoRepositoryTests = "CORSO_REPOSITORY_TESTS"
) )
type Suite interface { type Suite interface {

View File

@ -96,11 +96,7 @@ type RepositoryIntegrationSuite struct {
} }
func TestRepositoryIntegrationSuite(t *testing.T) { func TestRepositoryIntegrationSuite(t *testing.T) {
tester.RunOnAny( tester.RunOnAny(t, tester.CorsoCITests)
t,
tester.CorsoCITests,
tester.CorsoRepositoryTests)
suite.Run(t, new(RepositoryIntegrationSuite)) suite.Run(t, new(RepositoryIntegrationSuite))
} }

View File

@ -16,11 +16,7 @@ type RepositoryModelSuite struct {
} }
func TestRepositoryModelSuite(t *testing.T) { func TestRepositoryModelSuite(t *testing.T) {
tester.RunOnAny( tester.RunOnAny(t, tester.CorsoCITests)
t,
tester.CorsoCITests,
tester.CorsoRepositoryTests)
suite.Run(t, new(RepositoryModelSuite)) suite.Run(t, new(RepositoryModelSuite))
} }