Skip to content

Conversation

@ttomzhou
Copy link
Contributor

@ttomzhou ttomzhou commented Jan 13, 2021

The current version performs an old CCN non-interval rate tfstate apply operation

  • terraform.tfstate
cat terraform.tfstate 
{
  "version": 4,
  "terraform_version": "0.12.26",
  "serial": 1,
  "lineage": "0ee5508d-da38-4577-ca05-5c00f0d64857",
  "outputs": {},
  "resources": [
    {
      "mode": "managed",
      "type": "tencentcloud_ccn",
      "name": "main",
      "provider": "provider.tencentcloud",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "create_time": "2021-01-13 14:23:27",
            "description": "ci-temp-test-ccn-des",
            "id": "ccn-iit9pnov",
            "instance_count": 0,
            "name": "post_paid_ccn_test",
            "qos": "AG",
            "state": "AVAILABLE",
            "tags": null
          },
          "private": "bnVsbA=="
        }
      ]
    }
  ]
}
  • apply
terraform apply
2021/01/13 14:26:47 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
  Use TF_LOG=TRACE to see Terraform's internal logs.
  ----
tencentcloud_ccn.main: Refreshing state... [id=ccn-iit9pnov]

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

CCN intsance resource

terraform-provider-tencentcloud % make testacc TESTARGS="-run TestAccTencentCloudCcnV3Update"             
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run TestAccTencentCloudCcnV3Update -timeout 120m
?       github.com/tencentcloudstack/terraform-provider-tencentcloud    [no test files]
testing: warning: no tests to run
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/gendoc     (cached) [no tests to run]
=== RUN   TestAccTencentCloudCcnV3Update
--- PASS: TestAccTencentCloudCcnV3Update (19.34s)
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud       20.160s
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity  [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper       [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit     [no test files]

CCN regional export speed limit resource

terraform-provider-tencentcloud % make testacc TESTARGS="-run TestAccTencentCloudCcnV3BandwidthLimitOuter"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run TestAccTencentCloudCcnV3BandwidthLimitOuter -timeout 120m
?       github.com/tencentcloudstack/terraform-provider-tencentcloud    [no test files]
testing: warning: no tests to run
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/gendoc     (cached) [no tests to run]
=== RUN   TestAccTencentCloudCcnV3BandwidthLimitOuter
--- PASS: TestAccTencentCloudCcnV3BandwidthLimitOuter (17.06s)
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud       17.630s
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity  [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper       [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit     [no test files]

CCN inter-regional speed limit resource

terraform-provider-tencentcloud % make testacc TESTARGS="-run TestAccTencentCloudCcnV3BandwidthLimitInter"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run TestAccTencentCloudCcnV3BandwidthLimitInter -timeout 120m
?       github.com/tencentcloudstack/terraform-provider-tencentcloud    [no test files]
testing: warning: no tests to run
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/gendoc     (cached) [no tests to run]
=== RUN   TestAccTencentCloudCcnV3BandwidthLimitInter
--- PASS: TestAccTencentCloudCcnV3BandwidthLimitInter (17.63s)
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud       (cached)
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity  [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper       [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit     [no test files]

CCN instance data source

terraform-provider-tencentcloud % make testacc TESTARGS="-run TestAccDataSourceTencentCloudCcnV3InstancesBasic"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run TestAccDataSourceTencentCloudCcnV3InstancesBasic -timeout 120m
?       github.com/tencentcloudstack/terraform-provider-tencentcloud    [no test files]
testing: warning: no tests to run
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/gendoc     (cached) [no tests to run]
=== RUN   TestAccDataSourceTencentCloudCcnV3InstancesBasic
--- PASS: TestAccDataSourceTencentCloudCcnV3InstancesBasic (12.97s)
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud       13.767s
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity  [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper       [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit     [no test files]

CCN bandwith limit data source

terraform-provider-tencentcloud % make testacc TESTARGS="-run TestAccDataSourceTencentCloudCcnV3BandwidthLimitsInter"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run TestAccDataSourceTencentCloudCcnV3BandwidthLimitsInter -timeout 120m
?       github.com/tencentcloudstack/terraform-provider-tencentcloud    [no test files]
testing: warning: no tests to run
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/gendoc     (cached) [no tests to run]
=== RUN   TestAccDataSourceTencentCloudCcnV3BandwidthLimitsInter
--- PASS: TestAccDataSourceTencentCloudCcnV3BandwidthLimitsInter (10.00s)
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud       10.557s
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity  [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper       [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit     [no test files]

@ttomzhou ttomzhou changed the title fix ccn instance and ccn bandwith limit fix ccn instance and ccn bandwidth limit Jan 13, 2021
@gailwang gailwang merged commit 99aae10 into tencentcloudstack:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants