terraform-provider-huaweicloud icon indicating copy to clipboard operation
terraform-provider-huaweicloud copied to clipboard

feat(apig/throttle): new data source supported for associated res query

Open Lance52259 opened this issue 9 months ago • 2 comments

What this PR does / why we need it: Support a new data source that used to query throttling policies associated with the API.

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:

1. new data source supported for associated resources query.

PR Checklist

  • [x] Tests added/passed.
  • [x] Documentation updated.
  • [x] Schema updated.

Acceptance Steps Performed

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

Lance52259 avatar May 09 '24 02:05 Lance52259

[APPROVALNOTIFIER] This PR is APPROVED

This PR has been approved by: @Lance52259

github-ci-robot avatar May 09 '24 02:05 github-ci-robot

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

Lance52259 avatar May 09 '24 14:05 Lance52259

/lgtm

jinyangyang222 avatar May 10 '24 07:05 jinyangyang222