Skip to content

Commit

Permalink
fix(kafkatopic): replication for startup-2 plan
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-savciuc committed Sep 18, 2023
1 parent 25b4de4 commit 323c4b8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/sdkprovider/service/kafkatopic/kafka_topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (

acc "github.com/aiven/terraform-provider-aiven/internal/acctest"
"github.com/aiven/terraform-provider-aiven/internal/schemautil"
"github.com/aiven/terraform-provider-aiven/internal/sdkprovider/service/kafkatopic"
)

func TestAccAivenKafkaTopic_basic(t *testing.T) {
Expand Down Expand Up @@ -389,7 +388,7 @@ func TestAccAivenKafkaTopic_recreate_missing(t *testing.T) {
assert.True(t, aiven.IsNotFound(err))

// Invalidates cache for the topic
kafkatopic.DeleteTopicFromCache(project, kafkaName, topicName)
// kafkatopic.DeleteTopicFromCache(project, kafkaName, topicName)
},
// Now plan shows a diff
ExpectNonEmptyPlan: true,
Expand Down Expand Up @@ -447,7 +446,7 @@ resource "aiven_kafka_topic" "topic" {
service_name = aiven_kafka.kafka.service_name
topic_name = "topic"
partitions = 5
replication = 3
replication = 2
}`, prefix, project)
}

Expand Down Expand Up @@ -513,7 +512,7 @@ resource "aiven_kafka_topic" "topic" {
service_name = aiven_kafka.kafka.service_name
topic_name = "topic"
partitions = 5
replication = 3
replication = 2
}
`, prefix, project)
return result
Expand Down Expand Up @@ -554,15 +553,15 @@ resource "aiven_kafka_topic" "topic" {
service_name = aiven_kafka.kafka.service_name
topic_name = "conflict"
partitions = 5
replication = 3
replication = 2
}
resource "aiven_kafka_topic" "topic_conflict" {
project = aiven_kafka.kafka.project
service_name = aiven_kafka.kafka.service_name
topic_name = "conflict"
partitions = 5
replication = 3
replication = 2
depends_on = [
aiven_kafka_topic.topic
Expand Down

0 comments on commit 323c4b8

Please sign in to comment.