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

fix(elb/loadbalancer): fix the wrong networking client usage

Open Lance52259 opened this issue 2 years ago • 1 comments

What this PR does / why we need it: The sdk version is incorrect, should be v1 with project, but v2 without project.

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. fix the wrong networking client usage.

PR Checklist

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

Acceptance Steps Performed

make testacc TEST='./huaweicloud/services/acceptance/lb' TESTARGS='-run=TestAccDatasourceListeners_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud/services/acceptance/lb -v -run=TestAccLBV2LoadBalancer_ -timeout 360m -parallel 4
=== RUN   TestAccLBV2LoadBalancer_basic
=== PAUSE TestAccLBV2LoadBalancer_basic
=== RUN   TestAccLBV2LoadBalancer_secGroup
=== PAUSE TestAccLBV2LoadBalancer_secGroup
=== RUN   TestAccLBV2LoadBalancer_withEpsId
=== PAUSE TestAccLBV2LoadBalancer_withEpsId
=== CONT  TestAccLBV2LoadBalancer_basic
=== CONT  TestAccLBV2LoadBalancer_withEpsId
=== CONT  TestAccLBV2LoadBalancer_secGroup
--- PASS: TestAccLBV2LoadBalancer_withEpsId (69.36s)
--- PASS: TestAccLBV2LoadBalancer_basic (98.66s)
--- PASS: TestAccLBV2LoadBalancer_secGroup (138.96s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/acceptance/lb139.761s

Lance52259 avatar Aug 31 '22 08:08 Lance52259

/lgtm

Jason-Zhang9309 avatar Aug 31 '22 09:08 Jason-Zhang9309