Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Docs] OpenGauss supports restore password and rename #898

Merged
merged 2 commits into from
Feb 5, 2021
Merged

[Feature][Docs] OpenGauss supports restore password and rename #898

merged 2 commits into from
Feb 5, 2021

Conversation

Lance52259
Copy link
Collaborator

What this PR does / why we need it:
OpenGauss instance API supports rename and restore password, these actions can be supported by huaweicloud porvider.

Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

NONE

Special notes for your reviewer:

Release note:

1. supports restore and restore password.
2. update attribute description of opengauss document.
3. update acc test example.

PR Checklist

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

make testacc TEST='./huaweicloud' TESTARGS='-run=TestAccOpenGaussInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud -v -run=TestAccOpenGaussInstance_basic -timeout 360m -parallel 4
=== RUN   TestAccOpenGaussInstance_basic
=== PAUSE TestAccOpenGaussInstance_basic
=== CONT  TestAccOpenGaussInstance_basic
--- PASS: TestAccOpenGaussInstance_basic (1223.99s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud       1224.095s

}
_, err = instances.Rename(client, renameOpts, instanceId).Extract()
if err != nil {
return fmt.Errorf("Error expanding name for instance %s: %s ", instanceId, err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the error message is misleading, please modify it.

r := golangsdk.ErrResult{}
r.Result = instances.RestorePassword(client, restorePasswordOpts, instanceId)
if r.ExtractErr() != nil {
return fmt.Errorf("Error expanding name for instance %s: %s ", instanceId, r.Err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@ShiChangkuo ShiChangkuo merged commit 23647d3 into huaweicloud:master Feb 5, 2021
@Lance52259 Lance52259 deleted the OpenGaussDBPatch branch February 7, 2021 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants