Skip to content

Commit 043af92

Browse files
authored
adjust compile regexp (#1372)
1 parent f2ce901 commit 043af92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tencentcloud/resource_tc_cos_bucket_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func TestAccTencentCloudCosBucket_replication(t *testing.T) {
463463
Config: testAccBucketReplication(),
464464
Check: resource.ComposeAggregateTestCheckFunc(
465465
testAccCheckCosBucketExists("tencentcloud_cos_bucket.with_replication"),
466-
resource.TestMatchResourceAttr("tencentcloud_cos_bucket.with_replication", "replica_role", regexp.MustCompile(`^qcs::cam::uin/\\d+:uin/\\d+$`)),
466+
resource.TestMatchResourceAttr("tencentcloud_cos_bucket.with_replication", "replica_role", regexp.MustCompile(`^qcs::cam::uin/\d+:uin/\d+$`)),
467467
resource.TestCheckResourceAttr("tencentcloud_cos_bucket.with_replication", "replica_rules.#", "1"),
468468
resource.TestCheckResourceAttr("tencentcloud_cos_bucket.with_replication", "replica_rules.0.id", "test-rep1"),
469469
resource.TestCheckResourceAttr("tencentcloud_cos_bucket.with_replication", "replica_rules.0.status", "Enabled"),

0 commit comments

Comments
 (0)