Skip to content

Commit

Permalink
Test config & partition update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Mar 9, 2018
1 parent 0b6c7c8 commit 22f774f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kafka/resource_kafka_topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ func testResourceTopic_updatePartitionsCheck(s *terraform.State) error {
if topic.Partitions != 2 {
return fmt.Errorf("partitions did not get increated got: %d", topic.Partitions)
}

if v, ok := topic.Config["segment.ms"]; ok && *v != "33333" {
return fmt.Errorf("segment.ms != %v", topic)
}
return nil
}

Expand Down Expand Up @@ -167,7 +171,7 @@ resource "kafka_topic" "test" {
config = {
"retention.ms" = "11111"
"segment.ms" = "22222"
"segment.ms" = "33333"
}
}
`

0 comments on commit 22f774f

Please sign in to comment.