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(CodeArts/Deploy): support to copy application #6102

Conversation

saf3dfsa
Copy link
Contributor

@saf3dfsa saf3dfsa commented Dec 26, 2024

What this PR does / why we need it:
support to copy application
Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)
fixes #xxx

Special notes for your reviewer:

Release note:

support to copy application

PR Checklist

  • Tests added/passed.
make testacc TEST="./huaweicloud/services/acceptance/codeartsdeploy" TESTARGS="-run TestAccCodeArtsDeployApplicationCopy_basic"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud/services/acceptance/codeartsdeploy -v -run TestAccCodeArtsDeployApplicationCopy_basic -timeout 360m -parallel 4
=== RUN   TestAccCodeArtsDeployApplicationCopy_basic
=== PAUSE TestAccCodeArtsDeployApplicationCopy_basic
=== CONT  TestAccCodeArtsDeployApplicationCopy_basic
--- PASS: TestAccCodeArtsDeployApplicationCopy_basic (49.18s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/acceptance/codeartsdeploy    49.243s
  • Documentation updated.

  • Schema updated.

  • CheckDeleted.

    • a. During query operation (Read Context)
      aa. Resource not found
      >>>>>> Paste the screenshot here <<<<<<
      image

    • b. During delete/disassociate/unbind operation (Delete Context)
      ba. Resource not found
      >>>>>> Paste the screenshot here <<<<<<
      image

@Jason-Zhang9309
Copy link
Collaborator

/lgtm

@github-ci-robot
Copy link
Collaborator

This PR needs rebase.

@saf3dfsa saf3dfsa force-pushed the feat(CodeArts/Deploy)_support_to_copy_application branch from e3cb95d to 20c7246 Compare January 16, 2025 12:25
@github-ci-robot github-ci-robot removed the LGTM /lgtm label Jan 16, 2025
@github-actions github-actions bot added size/L and removed size/M labels Jan 16, 2025
@saf3dfsa saf3dfsa force-pushed the feat(CodeArts/Deploy)_support_to_copy_application branch 2 times, most recently from 3320864 to 66041a8 Compare January 17, 2025 01:46
}

if _, ok := d.GetOk("permission_level"); ok {
if err := updateDeployApplicationPermissionLevel(ctx, client, d, d.Timeout(schema.TimeoutUpdate)); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if err := updateDeployApplicationPermissionLevel(ctx, client, d, d.Timeout(schema.TimeoutUpdate)); err != nil {
if err := updateDeployApplicationPermissionLevel(ctx, client, d, d.Timeout(schema.TimeoutCreate)); err != nil {

Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},

Copy link
Collaborator

Choose a reason for hiding this comment

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

timeouts should be added

@saf3dfsa saf3dfsa force-pushed the feat(CodeArts/Deploy)_support_to_copy_application branch from 66041a8 to 605f4fa Compare January 17, 2025 02:44
@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 Jan 17, 2025
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 431da47 into huaweicloud:master Jan 17, 2025
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.

4 participants