remove unused test scoping envs (#2648)
Doesn't seem like we're using these --- #### Does this PR need a docs update or release note? - [x] ⛔ No #### Type of change - [x] 🤖 Test - [x] 🧹 Tech Debt/Cleanup #### Issue(s) * #2373 #### Test Plan - [x] ⚡ Unit test - [x] 💚 E2E
This commit is contained in:
parent
4303c78f3e
commit
4515d3a4b2
@ -55,8 +55,7 @@ func TestNoBackupExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *NoBackupExchangeE2ESuite) SetupSuite() {
|
||||
@ -136,8 +135,7 @@ func TestBackupExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *BackupExchangeE2ESuite) SetupSuite() {
|
||||
@ -268,8 +266,7 @@ func TestPreparedBackupExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *PreparedBackupExchangeE2ESuite) SetupSuite() {
|
||||
@ -512,8 +509,7 @@ func TestBackupDeleteExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -46,8 +46,7 @@ func TestNoBackupOneDriveE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -171,8 +170,7 @@ func TestBackupDeleteOneDriveE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -45,8 +45,7 @@ func TestNoBackupSharePointE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *NoBackupSharePointE2ESuite) SetupSuite() {
|
||||
@ -127,8 +126,7 @@ func TestBackupDeleteSharePointE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -200,7 +200,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() {
|
||||
|
||||
@ -26,8 +26,7 @@ func TestS3E2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIRepoTests)})
|
||||
)})
|
||||
}
|
||||
|
||||
func (suite *S3E2ESuite) TestInitS3Cmd() {
|
||||
|
||||
@ -48,8 +48,7 @@ func TestRestoreExchangeE2ESuite(t *testing.T) {
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIRestoreTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -36,8 +36,7 @@ func TestConnectorDataCollectionIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoConnectorDataCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -308,8 +307,7 @@ func TestConnectorCreateSharePointCollectionIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoConnectorCreateSharePointCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -20,11 +20,11 @@ type DiscoveryIntegrationSuite struct {
|
||||
}
|
||||
|
||||
func TestDiscoveryIntegrationSuite(t *testing.T) {
|
||||
suite.Run(t, &DiscoveryIntegrationSuite{Suite: tester.NewIntegrationSuite(
|
||||
suite.Run(t, &DiscoveryIntegrationSuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
)})
|
||||
[][]string{tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
func (suite *DiscoveryIntegrationSuite) TestUsers() {
|
||||
|
||||
@ -27,8 +27,7 @@ func TestExchangeServiceSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -527,9 +527,7 @@ func TestFolderCacheIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests,
|
||||
tester.CorsoConnectorExchangeFolderCacheTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -220,9 +220,7 @@ func TestDataCollectionsIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests,
|
||||
tester.CorsoConnectorCreateExchangeCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -26,8 +26,7 @@ func TestCacheResolverIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -37,8 +37,7 @@ func TestMailFolderCacheIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -34,9 +34,7 @@ func TestExchangeRestoreSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests,
|
||||
tester.CorsoConnectorRestoreExchangeCollectionTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -20,10 +20,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}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -114,8 +114,7 @@ func TestGraphConnectorOneDriveIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorOneDriveTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -150,8 +150,7 @@ func TestGraphConnectorIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorExchangeTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -37,8 +37,7 @@ func TestOneDriveAPIs(t *testing.T) {
|
||||
suite.Run(t, &OneDriveAPISuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorOneDriveTests),
|
||||
[][]string{tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -332,8 +332,7 @@ func TestOneDriveDriveSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorOneDriveTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -31,8 +31,7 @@ func TestItemIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorOneDriveTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -41,11 +41,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}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -48,8 +48,7 @@ func TestSharePointCollectionSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorSharePointTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -186,8 +186,7 @@ func TestSharePointPagesSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorSharePointTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -32,8 +32,7 @@ func TestSharePointSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.M365AcctCredEnvs},
|
||||
tester.CorsoGraphConnectorTests,
|
||||
tester.CorsoGraphConnectorSharePointTests),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -64,7 +64,6 @@ func TestWrapperIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoKopiaWrapperTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -68,7 +68,6 @@ func TestModelStoreIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoModelStoreTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
@ -729,7 +728,6 @@ func TestModelStoreRegressionSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoModelStoreTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -160,7 +160,6 @@ func TestKopiaIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoKopiaWrapperTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
@ -743,7 +742,6 @@ func TestKopiaSimpleRepoIntegrationSuite(t *testing.T) {
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs},
|
||||
tester.CorsoKopiaWrapperTests,
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@ -469,9 +469,7 @@ func TestBackupOpIntegrationSuite(t *testing.T) {
|
||||
suite.Run(t, &BackupOpIntegrationSuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoOperationTests,
|
||||
tester.CorsoOperationBackupTests),
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -153,8 +153,7 @@ func TestRestoreOpIntegrationSuite(t *testing.T) {
|
||||
suite.Run(t, &RestoreOpIntegrationSuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoOperationTests),
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -106,9 +106,7 @@ func TestRepositoryIntegrationSuite(t *testing.T) {
|
||||
suite.Run(t, &RepositoryIntegrationSuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoRepositoryTests,
|
||||
),
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -20,9 +20,7 @@ func TestRepositoryModelSuite(t *testing.T) {
|
||||
suite.Run(t, &RepositoryModelSuite{
|
||||
Suite: tester.NewIntegrationSuite(
|
||||
t,
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs},
|
||||
tester.CorsoRepositoryTests,
|
||||
),
|
||||
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user