From 323c4b8c19ae2bf8003ddfb50cb80e37b738844f Mon Sep 17 00:00:00 2001 From: Ivan Savciuc Date: Mon, 18 Sep 2023 13:21:36 +0200 Subject: [PATCH] fix(kafkatopic): replication for startup-2 plan --- .../service/kafkatopic/kafka_topic_test.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/internal/sdkprovider/service/kafkatopic/kafka_topic_test.go b/internal/sdkprovider/service/kafkatopic/kafka_topic_test.go index 4c77f3f41..f01acb6be 100644 --- a/internal/sdkprovider/service/kafkatopic/kafka_topic_test.go +++ b/internal/sdkprovider/service/kafkatopic/kafka_topic_test.go @@ -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) { @@ -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, @@ -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) } @@ -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 @@ -554,7 +553,7 @@ 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" { @@ -562,7 +561,7 @@ resource "aiven_kafka_topic" "topic_conflict" { service_name = aiven_kafka.kafka.service_name topic_name = "conflict" partitions = 5 - replication = 3 + replication = 2 depends_on = [ aiven_kafka_topic.topic