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"
|
"github.com/alcionai/corso/pkg/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BackupExchangeIntegrationSuite struct {
|
type RestoreExchangeIntegrationSuite struct {
|
||||||
suite.Suite
|
suite.Suite
|
||||||
acct account.Account
|
acct account.Account
|
||||||
st storage.Storage
|
st storage.Storage
|
||||||
@ -30,18 +30,18 @@ type BackupExchangeIntegrationSuite struct {
|
|||||||
backupOp operations.BackupOperation
|
backupOp operations.BackupOperation
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBackupExchangeIntegrationSuite(t *testing.T) {
|
func TestRestoreExchangeIntegrationSuite(t *testing.T) {
|
||||||
if err := tester.RunOnAny(
|
if err := tester.RunOnAny(
|
||||||
tester.CorsoCITests,
|
tester.CorsoCITests,
|
||||||
tester.CorsoCLITests,
|
tester.CorsoCLITests,
|
||||||
tester.CorsoCLIBackupTests,
|
tester.CorsoCLIRestoreTests,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
t.Skip(err)
|
t.Skip(err)
|
||||||
}
|
}
|
||||||
suite.Run(t, new(BackupExchangeIntegrationSuite))
|
suite.Run(t, new(RestoreExchangeIntegrationSuite))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *BackupExchangeIntegrationSuite) SetupSuite() {
|
func (suite *RestoreExchangeIntegrationSuite) SetupSuite() {
|
||||||
t := suite.T()
|
t := suite.T()
|
||||||
_, err := tester.GetRequiredEnvSls(
|
_, err := tester.GetRequiredEnvSls(
|
||||||
tester.AWSStorageCredEnvs,
|
tester.AWSStorageCredEnvs,
|
||||||
@ -84,7 +84,7 @@ func (suite *BackupExchangeIntegrationSuite) SetupSuite() {
|
|||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *BackupExchangeIntegrationSuite) TestExchangeRestoreCmd() {
|
func (suite *RestoreExchangeIntegrationSuite) TestExchangeRestoreCmd() {
|
||||||
ctx := config.SetViper(tester.NewContext(), suite.vpr)
|
ctx := config.SetViper(tester.NewContext(), suite.vpr)
|
||||||
t := suite.T()
|
t := suite.T()
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,7 @@ const (
|
|||||||
CorsoCLIBackupTests = "CORSO_COMMAND_LINE_BACKUP_TESTS"
|
CorsoCLIBackupTests = "CORSO_COMMAND_LINE_BACKUP_TESTS"
|
||||||
CorsoCLIConfigTests = "CORSO_COMMAND_LINE_CONFIG_TESTS"
|
CorsoCLIConfigTests = "CORSO_COMMAND_LINE_CONFIG_TESTS"
|
||||||
CorsoCLIRepoTests = "CORSO_COMMAND_LINE_REPO_TESTS"
|
CorsoCLIRepoTests = "CORSO_COMMAND_LINE_REPO_TESTS"
|
||||||
|
CorsoCLIRestoreTests = "CORSO_COMMAND_LINE_RESTORE_TESTS"
|
||||||
CorsoCLITests = "CORSO_COMMAND_LINE_TESTS"
|
CorsoCLITests = "CORSO_COMMAND_LINE_TESTS"
|
||||||
CorsoGraphConnectorTests = "CORSO_GRAPH_CONNECTOR_TESTS"
|
CorsoGraphConnectorTests = "CORSO_GRAPH_CONNECTOR_TESTS"
|
||||||
CorsoKopiaWrapperTests = "CORSO_KOPIA_WRAPPER_TESTS"
|
CorsoKopiaWrapperTests = "CORSO_KOPIA_WRAPPER_TESTS"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user