update comments

This commit is contained in:
neha-Gupta1 2023-09-29 15:42:53 +05:30
parent a32bcfdb87
commit 328a84ed9f
3 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,7 @@ const (
var (
BackupIDFV string
BackupIDsFV []string
BackupIDsFV []string
AWSAccessKeyFV string
AWSSecretAccessKeyFV string
AWSSessionTokenFV string

View File

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

View File

@ -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)