Skip to content

Commit 74bd305

Browse files
committed
feat(tco): add resource_tc_organization_org_manage_policy_config
1 parent e8199cd commit 74bd305

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# This workflow contains a single job called "build"
1919
golangci-lint:
2020
# The type of runner that the job will run on
21-
runs-on: macos-latest
21+
runs-on: windows-latest
2222

2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:

tencentcloud/services/tco/resource_tc_organization_org_manage_policy_target_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tco
1+
package tco_test
22

33
import (
44
"testing"

tencentcloud/services/tco/resource_tc_organization_org_manage_policy_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ func TestAccTencentCloudOrganizationOrgManagePolicyResource_basic(t *testing.T)
2828
{
2929
Config: testAccOrganizationOrgManagePolicyUpdate,
3030
Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_organization_org_manage_policy.org_manage_policy", "id"),
31-
resource.TestCheckResourceAttr("tencentcloud_organization_org_manage_policy.org_manage_policy", "name", "iac-example"),
31+
resource.TestCheckResourceAttr("tencentcloud_organization_org_manage_policy.org_manage_policy", "name", "iac-example-1"),
3232
resource.TestCheckResourceAttrSet("tencentcloud_organization_org_manage_policy.org_manage_policy", "content"),
33-
resource.TestCheckResourceAttr("tencentcloud_organization_org_manage_policy.org_manage_policy", "type", "TAG_POLICY"),
33+
resource.TestCheckResourceAttr("tencentcloud_organization_org_manage_policy.org_manage_policy", "type", "SERVICE_CONTROL_POLICY"),
3434
resource.TestCheckResourceAttr("tencentcloud_organization_org_manage_policy.org_manage_policy", "description", "Full access policy"),
3535
),
3636
},
@@ -56,9 +56,9 @@ resource "tencentcloud_organization_org_manage_policy" "org_manage_policy" {
5656
const testAccOrganizationOrgManagePolicyUpdate = `
5757
5858
resource "tencentcloud_organization_org_manage_policy" "org_manage_policy" {
59-
name = "iac-example"
59+
name = "iac-example-1"
6060
content = "{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}"
61-
type = "TAG_POLICY"
61+
type = "SERVICE_CONTROL_POLICY"
6262
description = "Full access policy"
6363
}
6464

0 commit comments

Comments
 (0)