fix suite in restore cli integration tests (#603)
This commit is contained in:
parent
42df5cef58
commit
649255f112
@ -19,7 +19,7 @@ import (
|
||||
"github.com/alcionai/corso/pkg/storage"
|
||||
)
|
||||
|
||||
type BackupExchangeIntegrationSuite struct {
|
||||
type RestoreExchangeIntegrationSuite struct {
|
||||
suite.Suite
|
||||
acct account.Account
|
||||
st storage.Storage
|
||||
@ -30,18 +30,18 @@ type BackupExchangeIntegrationSuite struct {
|
||||
backupOp operations.BackupOperation
|
||||
}
|
||||
|
||||
func TestBackupExchangeIntegrationSuite(t *testing.T) {
|
||||
func TestRestoreExchangeIntegrationSuite(t *testing.T) {
|
||||
if err := tester.RunOnAny(
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoCLITests,
|
||||
tester.CorsoCLIBackupTests,
|
||||
tester.CorsoCLIRestoreTests,
|
||||
); err != nil {
|
||||
t.Skip(err)
|
||||
}
|
||||
suite.Run(t, new(BackupExchangeIntegrationSuite))
|
||||
suite.Run(t, new(RestoreExchangeIntegrationSuite))
|
||||
}
|
||||
|
||||
func (suite *BackupExchangeIntegrationSuite) SetupSuite() {
|
||||
func (suite *RestoreExchangeIntegrationSuite) SetupSuite() {
|
||||
t := suite.T()
|
||||
_, err := tester.GetRequiredEnvSls(
|
||||
tester.AWSStorageCredEnvs,
|
||||
@ -84,7 +84,7 @@ func (suite *BackupExchangeIntegrationSuite) SetupSuite() {
|
||||
time.Sleep(3 * time.Second)
|
||||
}
|
||||
|
||||
func (suite *BackupExchangeIntegrationSuite) TestExchangeRestoreCmd() {
|
||||
func (suite *RestoreExchangeIntegrationSuite) TestExchangeRestoreCmd() {
|
||||
ctx := config.SetViper(tester.NewContext(), suite.vpr)
|
||||
t := suite.T()
|
||||
|
||||
|
||||
@ -13,6 +13,7 @@ const (
|
||||
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"
|
||||
CorsoGraphConnectorTests = "CORSO_GRAPH_CONNECTOR_TESTS"
|
||||
CorsoKopiaWrapperTests = "CORSO_KOPIA_WRAPPER_TESTS"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user