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

feat(dds): support to modify params for instance #4822

Conversation

saf3dfsa
Copy link
Contributor

@saf3dfsa saf3dfsa commented May 15, 2024

What this PR does / why we need it:
Support to modify params for instance.

PR Checklist

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

Acceptance Steps Performed

make testacc TEST="./huaweicloud/services/acceptance/dds" TESTARGS="-run TestAccDDSV3InstanceModifyParams_basic"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud/services/acceptance/dds -v -run TestAccDDSV3InstanceModifyParams_basic -timeout 360m -parallel 4
=== RUN   TestAccDDSV3InstanceModifyParams_basic
=== PAUSE TestAccDDSV3InstanceModifyParams_basic
=== CONT  TestAccDDSV3InstanceModifyParams_basic
--- PASS: TestAccDDSV3InstanceModifyParams_basic (891.82s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/acceptance/dds       891.901s

@Jason-Zhang9309
Copy link
Collaborator

/lgtm

@github-ci-robot github-ci-robot added the LGTM /lgtm label May 15, 2024
return diag.FromErr(err)
}

d.SetId(instId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the ID is error, if group or node params are modified, then the instance ID may same, but entity ID is different, so the resource ID should contains entity ID if the valuie of entity_id is not empty

}
}

func resourceDDSInstanceParametersModifyRead(ctx context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@saf3dfsa saf3dfsa force-pushed the feat(dds)_support_to_modify_params_for_instance branch from 5a92786 to 75bb2e8 Compare May 16, 2024 06:14
@github-ci-robot github-ci-robot removed the LGTM /lgtm label May 16, 2024
@saf3dfsa saf3dfsa force-pushed the feat(dds)_support_to_modify_params_for_instance branch from 75bb2e8 to 7380565 Compare May 16, 2024 06:24
@houpeng80
Copy link
Collaborator

/lgtm
/approve

@github-ci-robot github-ci-robot added LGTM /lgtm approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 16, 2024
Copy link
Collaborator

@github-ci-robot github-ci-robot left a comment

Choose a reason for hiding this comment

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

This PR has been approved by: @houpeng80

/lgtm
/approve

@github-ci-robot github-ci-robot merged commit 500bd02 into huaweicloud:master May 16, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. feature LGTM /lgtm size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants