remove unused test scoping envs
This commit is contained in:
parent
a7cfc6cd5c
commit
f07c4e407a
@ -54,8 +54,7 @@ func TestNoBackupExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *NoBackupExchangeE2ESuite) SetupSuite() {
|
||||
@ -134,8 +133,7 @@ func TestBackupExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *BackupExchangeE2ESuite) SetupSuite() {
|
||||
@ -224,8 +222,7 @@ func TestPreparedBackupExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *PreparedBackupExchangeE2ESuite) SetupSuite() {
|
||||
@ -462,8 +459,7 @@ func TestBackupDeleteExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -45,8 +45,7 @@ func TestNoBackupOneDriveE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -133,8 +132,7 @@ func TestBackupDeleteOneDriveE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -44,8 +44,7 @@ func TestNoBackupSharePointE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *NoBackupSharePointE2ESuite) SetupSuite() {
|
||||
@ -125,8 +124,7 @@ func TestBackupDeleteSharePointE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -190,7 +190,7 @@ func TestConfigIntegrationSuite(t *testing.T) {
|
||||
suite.Run(t, &ConfigIntegrationSuite{Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCLIConfigTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *ConfigIntegrationSuite) TestGetStorageAndAccount() {
|
||||
|
||||
@ -24,8 +24,7 @@ func TestS3E2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIRepoTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *S3E2ESuite) TestInitS3Cmd() {
|
||||
|
||||
@ -47,8 +47,7 @@ func TestRestoreExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIRestoreTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -35,8 +35,7 @@ func TestConnectorDataCollectionIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoConnectorDataCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -307,8 +306,7 @@ func TestConnectorCreateSharePointCollectionIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoConnectorCreateSharePointCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -26,8 +26,7 @@ func TestExchangeServiceSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -519,9 +519,7 @@ func TestFolderCacheIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests,
|
||||
tester.CorsoConnectorExchangeFolderCacheTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -219,9 +219,7 @@ func TestDataCollectionsIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests,
|
||||
tester.CorsoConnectorCreateExchangeCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -24,8 +24,7 @@ func TestCacheResolverIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -36,8 +36,7 @@ func TestMailFolderCacheIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -33,9 +33,7 @@ func TestExchangeRestoreSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests,
|
||||
tester.CorsoConnectorRestoreExchangeCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -19,10 +19,7 @@ type BetaClientSuite struct {
|
||||
|
||||
func TestBetaClientSuite(t *testing.T) {
|
||||
suite.Run(t, &BetaClientSuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests),
|
||||
Suite: tester.NewIntegrationSuite(t, [][]string{tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -96,8 +96,7 @@ func TestGraphConnectorOneDriveIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorOneDriveTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -151,8 +151,7 @@ func TestGraphConnectorIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -332,8 +332,7 @@ func TestOneDriveDriveSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorOneDriveTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -40,8 +40,7 @@ func TestItemIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorOneDriveTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -40,11 +40,7 @@ func (suite *SharePointPageSuite) SetupSuite() {
|
||||
|
||||
func TestSharePointPageSuite(t *testing.T) {
|
||||
suite.Run(t, &SharePointPageSuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorSharePointTests),
|
||||
Suite: tester.NewIntegrationSuite(t, [][]string{tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -46,8 +46,7 @@ func TestSharePointCollectionSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorSharePointTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -169,8 +169,7 @@ func TestSharePointPagesSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorSharePointTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -31,8 +31,7 @@ func TestSharePointSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorSharePointTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -63,7 +63,6 @@ func TestWrapperIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoKopiaWrapperTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -67,7 +67,6 @@ func TestModelStoreIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoModelStoreTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
@ -724,7 +723,6 @@ func TestModelStoreRegressionSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoModelStoreTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -158,7 +158,6 @@ func TestKopiaIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoKopiaWrapperTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
@ -574,7 +573,6 @@ func TestKopiaSimpleRepoIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoKopiaWrapperTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -456,12 +456,7 @@ type BackupOpIntegrationSuite struct {
|
||||
}
|
||||
|
||||
func TestBackupOpIntegrationSuite(t *testing.T) {
|
||||
tester.RunOnAny(
|
||||
t,
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoOperationTests,
|
||||
tester.CorsoOperationBackupTests)
|
||||
|
||||
tester.RunOnAny(t, tester.CorsoCITests)
|
||||
suite.Run(t, new(BackupOpIntegrationSuite))
|
||||
}
|
||||
|
||||
|
||||
@ -136,10 +136,7 @@ type RestoreOpIntegrationSuite struct {
|
||||
}
|
||||
|
||||
func TestRestoreOpIntegrationSuite(t *testing.T) {
|
||||
tester.RunOnAny(
|
||||
t,
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoOperationTests)
|
||||
tester.RunOnAny(t, tester.CorsoCITests)
|
||||
|
||||
suite.Run(t, new(RestoreOpIntegrationSuite))
|
||||
}
|
||||
|
||||
@ -15,28 +15,6 @@ const (
|
||||
CorsoCITests = "CORSO_CI_TESTS"
|
||||
CorsoE2ETests = "CORSO_E2E_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 {
|
||||
|
||||
@ -96,11 +96,7 @@ type RepositoryIntegrationSuite struct {
|
||||
}
|
||||
|
||||
func TestRepositoryIntegrationSuite(t *testing.T) {
|
||||
tester.RunOnAny(
|
||||
t,
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoRepositoryTests)
|
||||
|
||||
tester.RunOnAny(t, tester.CorsoCITests)
|
||||
suite.Run(t, new(RepositoryIntegrationSuite))
|
||||
}
|
||||
|
||||
|
||||
@ -16,11 +16,7 @@ type RepositoryModelSuite struct {
|
||||
}
|
||||
|
||||
func TestRepositoryModelSuite(t *testing.T) {
|
||||
tester.RunOnAny(
|
||||
t,
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoRepositoryTests)
|
||||
|
||||
tester.RunOnAny(t, tester.CorsoCITests)
|
||||
suite.Run(t, new(RepositoryModelSuite))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user