Skip to content

Commit 67379a0

Browse files
Modified files are indented neatly
1 parent 4fe1289 commit 67379a0

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed

tencentcloud/data_source_tc_ckafka_topics.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ Example Usage
55
66
```hcl
77
resource "tencentcloud_ckafka_topic" "foo" {
8-
instance_id = "ckafka-f9ife4zz"
9-
topic_name = "example"
10-
note = "topic note"
11-
replica_num = 2
12-
partition_num = 1
13-
enable_white_list = true
14-
ip_white_list = ["ip1","ip2"]
15-
clean_up_policy = "delete"
16-
sync_replica_min_num = 1
17-
unclean_leader_election_enable = false
18-
segment = 3600000
19-
retention = 60000
20-
max_message_bytes = 0
8+
instance_id = "ckafka-f9ife4zz"
9+
topic_name = "example"
10+
note = "topic note"
11+
replica_num = 2
12+
partition_num = 1
13+
enable_white_list = true
14+
ip_white_list = ["ip1","ip2"]
15+
clean_up_policy = "delete"
16+
sync_replica_min_num = 1
17+
unclean_leader_election_enable = false
18+
segment = 3600000
19+
retention = 60000
20+
max_message_bytes = 0
2121
}
2222
```
2323
*/

tencentcloud/data_source_tc_ckafka_topics_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ func TestAccTencentCloudCkafkaTopicDataSource(t *testing.T) {
4242

4343
const testAccTencentCloudCkafkaTopicDataSourceConfig = `
4444
resource "tencentcloud_ckafka_topic" "kafka_topic" {
45-
instance_id = "ckafka-f9ife4zz"
46-
topic_name = "ckafkaTopic-tf-test"
47-
replica_num = 2
48-
partition_num = 1
49-
note = "test topic"
50-
enable_white_list = true
51-
ip_white_list = ["192.168.1.1"]
52-
clean_up_policy = "delete"
53-
sync_replica_min_num = 1
54-
unclean_leader_election_enable = false
55-
segment = 3600000
56-
retention = 60000
45+
instance_id = "ckafka-f9ife4zz"
46+
topic_name = "ckafkaTopic-tf-test"
47+
replica_num = 2
48+
partition_num = 1
49+
note = "test topic"
50+
enable_white_list = true
51+
ip_white_list = ["192.168.1.1"]
52+
clean_up_policy = "delete"
53+
sync_replica_min_num = 1
54+
unclean_leader_election_enable = false
55+
segment = 3600000
56+
retention = 60000
5757
}
5858
5959
data "tencentcloud_ckafka_topics" "kafka_topics" {

tencentcloud/resource_tc_ckafka_topic_test.go

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -126,36 +126,36 @@ func testAccCheckKafkaTopicInstanceExists(n string) resource.TestCheckFunc {
126126

127127
const testAccKafkaTopicInstance = `
128128
resource "tencentcloud_ckafka_topic" "kafka_topic" {
129-
instance_id = "ckafka-f9ife4zz"
130-
topic_name = "ckafka-topic-tf-test"
131-
note = "this is test ckafka topic"
132-
replica_num = 2
133-
partition_num = 2
134-
enable_white_list = true
135-
ip_white_list = ["192.168.1.1"]
136-
clean_up_policy = "delete"
137-
sync_replica_min_num = 1
138-
unclean_leader_election_enable = false
139-
segment = 3600000
140-
retention = 60000
141-
max_message_bytes = 0
129+
instance_id = "ckafka-f9ife4zz"
130+
topic_name = "ckafka-topic-tf-test"
131+
note = "this is test ckafka topic"
132+
replica_num = 2
133+
partition_num = 2
134+
enable_white_list = true
135+
ip_white_list = ["192.168.1.1"]
136+
clean_up_policy = "delete"
137+
sync_replica_min_num = 1
138+
unclean_leader_election_enable = false
139+
segment = 3600000
140+
retention = 60000
141+
max_message_bytes = 0
142142
}
143143
`
144144

145145
const testAccKafkaTopicInstanceUpdate = `
146146
resource "tencentcloud_ckafka_topic" "kafka_topic" {
147-
instance_id = "ckafka-f9ife4zz"
148-
topic_name = "ckafka-topic-tf-test"
149-
note = "this is test topic_update"
150-
replica_num = 2
151-
partition_num = 2
152-
enable_white_list = true
153-
ip_white_list = ["192.168.1.2"]
154-
clean_up_policy = "compact"
155-
sync_replica_min_num = 2
156-
unclean_leader_election_enable = true
157-
segment = 4000000
158-
retention = 70000
159-
max_message_bytes = 8388608
147+
instance_id = "ckafka-f9ife4zz"
148+
topic_name = "ckafka-topic-tf-test"
149+
note = "this is test topic_update"
150+
replica_num = 2
151+
partition_num = 2
152+
enable_white_list = true
153+
ip_white_list = ["192.168.1.2"]
154+
clean_up_policy = "compact"
155+
sync_replica_min_num = 2
156+
unclean_leader_election_enable = true
157+
segment = 4000000
158+
retention = 70000
159+
max_message_bytes = 8388608
160160
}
161161
`

0 commit comments

Comments
 (0)