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

feat(hss/host_protection): support `is_wait_host_available` parameter

Open jinyangyang222 opened this issue 7 months ago • 1 comments

What this PR does / why we need it:

  1. Support is_wait_host_available parameter to control whether to wait for the host agent status to become online.
  2. enterprise_project_id parameter add Computed attribute.
  3. Update test cases.

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:


PR Checklist

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

Acceptance Steps Performed

$ export HW_HSS_HOST_PROTECTION_HOST_ID=xxxxxxx
$ make testacc TEST="./huaweicloud/services/acceptance/hss" TESTARGS="-run TestAccHostProtection_basic"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud/services/acceptance/hss -v -run TestAccHostProtection_basic -timeout 360m -parallel 4
=== RUN   TestAccHostProtection_basic
=== PAUSE TestAccHostProtection_basic
=== CONT  TestAccHostProtection_basic
--- PASS: TestAccHostProtection_basic (269.41s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/acceptance/hss       269.450s

jinyangyang222 avatar Jul 05 '24 06:07 jinyangyang222