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:
Keepers 2023-03-16 02:00:49 -06:00 committed by GitHub
parent 4303c78f3e
commit 4515d3a4b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 38 additions and 108 deletions

View File

@ -55,8 +55,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() {
@ -136,8 +135,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() {
@ -268,8 +266,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() {
@ -512,8 +509,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

@ -46,8 +46,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),
}) })
} }
@ -171,8 +170,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

@ -45,8 +45,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() {
@ -127,8 +126,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

@ -200,7 +200,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

@ -26,8 +26,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

@ -48,8 +48,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

@ -36,8 +36,7 @@ func TestConnectorDataCollectionIntegrationSuite(t *testing.T) {
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs},
tester.CorsoGraphConnectorTests, ),
tester.CorsoConnectorDataCollectionTests),
}) })
} }
@ -308,8 +307,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

@ -20,11 +20,11 @@ type DiscoveryIntegrationSuite struct {
} }
func TestDiscoveryIntegrationSuite(t *testing.T) { func TestDiscoveryIntegrationSuite(t *testing.T) {
suite.Run(t, &DiscoveryIntegrationSuite{Suite: tester.NewIntegrationSuite( suite.Run(t, &DiscoveryIntegrationSuite{
t, Suite: tester.NewIntegrationSuite(
[][]string{tester.M365AcctCredEnvs}, t,
tester.CorsoGraphConnectorTests, [][]string{tester.M365AcctCredEnvs}),
)}) })
} }
func (suite *DiscoveryIntegrationSuite) TestUsers() { func (suite *DiscoveryIntegrationSuite) TestUsers() {

View File

@ -27,8 +27,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

@ -527,9 +527,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

@ -220,9 +220,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

@ -26,8 +26,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

@ -37,8 +37,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

@ -34,9 +34,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

@ -20,10 +20,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

@ -114,8 +114,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

@ -150,8 +150,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

@ -37,8 +37,7 @@ func TestOneDriveAPIs(t *testing.T) {
suite.Run(t, &OneDriveAPISuite{ suite.Run(t, &OneDriveAPISuite{
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.M365AcctCredEnvs}, [][]string{tester.M365AcctCredEnvs}),
tester.CorsoGraphConnectorOneDriveTests),
}) })
} }

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

@ -31,8 +31,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

@ -41,11 +41,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

@ -48,8 +48,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

@ -186,8 +186,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

@ -32,8 +32,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

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

View File

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

View File

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

View File

@ -469,9 +469,7 @@ func TestBackupOpIntegrationSuite(t *testing.T) {
suite.Run(t, &BackupOpIntegrationSuite{ suite.Run(t, &BackupOpIntegrationSuite{
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
tester.CorsoOperationTests,
tester.CorsoOperationBackupTests),
}) })
} }

View File

@ -153,8 +153,7 @@ func TestRestoreOpIntegrationSuite(t *testing.T) {
suite.Run(t, &RestoreOpIntegrationSuite{ suite.Run(t, &RestoreOpIntegrationSuite{
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
tester.CorsoOperationTests),
}) })
} }

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

@ -106,9 +106,7 @@ func TestRepositoryIntegrationSuite(t *testing.T) {
suite.Run(t, &RepositoryIntegrationSuite{ suite.Run(t, &RepositoryIntegrationSuite{
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
tester.CorsoRepositoryTests,
),
}) })
} }

View File

@ -20,9 +20,7 @@ func TestRepositoryModelSuite(t *testing.T) {
suite.Run(t, &RepositoryModelSuite{ suite.Run(t, &RepositoryModelSuite{
Suite: tester.NewIntegrationSuite( Suite: tester.NewIntegrationSuite(
t, t,
[][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}, [][]string{tester.AWSStorageCredEnvs, tester.M365AcctCredEnvs}),
tester.CorsoRepositoryTests,
),
}) })
} }