Skip to content

Commit 4fe1289

Browse files
Modified files are indented neatly
1 parent 9b20479 commit 4fe1289

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

tencentcloud/data_source_tc_ckafka_topics.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ resource "tencentcloud_ckafka_topic" "foo" {
99
topic_name = "example"
1010
note = "topic note"
1111
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
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
1717
unclean_leader_election_enable = false
1818
segment = 3600000
1919
retention = 60000
20-
max_message_bytes = 0
20+
max_message_bytes = 0
2121
}
2222
```
2323
*/

tencentcloud/data_source_tc_ckafka_topics_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ resource "tencentcloud_ckafka_topic" "kafka_topic" {
4545
instance_id = "ckafka-f9ife4zz"
4646
topic_name = "ckafkaTopic-tf-test"
4747
replica_num = 2
48-
partition_num = 1
48+
partition_num = 1
4949
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
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
5555
segment = 3600000
5656
retention = 60000
5757
}

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)