diff --git a/src/cli/flags/repo.go b/src/cli/flags/repo.go index 2db4c23fc..797a345f0 100644 --- a/src/cli/flags/repo.go +++ b/src/cli/flags/repo.go @@ -19,7 +19,7 @@ const ( var ( BackupIDFV string - BackupIDsFV []string + BackupIDsFV []string AWSAccessKeyFV string AWSSecretAccessKeyFV string AWSSessionTokenFV string diff --git a/src/pkg/repository/repository.go b/src/pkg/repository/repository.go index 01ba8bdd9..85abe7c34 100644 --- a/src/pkg/repository/repository.go +++ b/src/pkg/repository/repository.go @@ -272,7 +272,9 @@ func (r *repository) Connect(ctx context.Context) (err error) { return nil } -// UpdatePassword updates Kopia password +// UpdatePassword will- +// - connect to the provider storage using existing password +// - update the repo with new password func (r *repository) UpdatePassword(ctx context.Context, password string) (err error) { ctx = clues.Add( ctx, diff --git a/src/pkg/repository/repository_test.go b/src/pkg/repository/repository_test.go index 9d9125030..83c60fc77 100644 --- a/src/pkg/repository/repository_test.go +++ b/src/pkg/repository/repository_test.go @@ -236,7 +236,7 @@ func (suite *RepositoryIntegrationSuite) TestConnect() { assert.NoError(t, err, clues.ToCore(err)) } -func (suite *RepositoryIntegrationSuite) TestUpdate() { +func (suite *RepositoryIntegrationSuite) TestRepository_UpdatePassword() { t := suite.T() ctx, flush := tester.NewContext(t)