Skip to content

Commit

Permalink
test(jikkou): update integration-tests for topics
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Jan 17, 2022
1 parent 91c8142 commit 53b7007
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import io.streamthoughts.kafka.specs.config.JikkouConfig;
import io.streamthoughts.kafka.specs.io.SpecFileLoader;
import io.streamthoughts.kafka.specs.manager.KafkaResourceManager;
import io.streamthoughts.kafka.specs.manager.KafkaResourceOperationContext;
import io.streamthoughts.kafka.specs.manager.KafkaResourceUpdateContext;
import io.streamthoughts.kafka.specs.manager.KafkaTopicManager;
import io.streamthoughts.kafka.specs.manager.TopicDescribeOptions;
import io.streamthoughts.kafka.specs.model.V1SpecFile;
Expand Down Expand Up @@ -57,6 +57,7 @@ public class AdminClientKafkaTopicManagerITest {
new RedpandaContainerConfig()
.withKafkaApiFixedExposedPort(9092)
.withAttachContainerOutputLog(true)
.withTransactionEnabled(false)
);

private KafkaTopicManager manager;
Expand All @@ -82,7 +83,7 @@ public void should_update_kafka_topic_using_admin_client_given_create_only() {
manager.update(
KafkaResourceManager.UpdateMode.CREATE_ONLY,
List.of(file.specs()),
KafkaResourceOperationContext.with(new TopicChangeOptions(), false)
KafkaResourceUpdateContext.with(new TopicChangeOptions(), false)
);

// Then
Expand Down Expand Up @@ -127,7 +128,7 @@ public void should_update_kafka_topic_using_admin_client_given_delete_only() {
Collection<ChangeResult<TopicChange>> results = manager.update(
KafkaResourceManager.UpdateMode.DELETE_ONLY,
List.of(new V1SpecsObject()),
KafkaResourceOperationContext.with(options, false)
KafkaResourceUpdateContext.with(options, false)
);

// Then
Expand Down Expand Up @@ -158,7 +159,7 @@ public void should_update_kafka_topic_using_admin_client_given_alter_only() {
Collection<ChangeResult<TopicChange>> results = manager.update(
KafkaResourceManager.UpdateMode.ALTER_ONLY,
objects,
KafkaResourceOperationContext.with(options, false)
KafkaResourceUpdateContext.with(options, false)
);

// Then
Expand Down Expand Up @@ -189,7 +190,7 @@ public void should_not_delete_kafka_topic_using_admin_client_given_apply_delete_
Collection<ChangeResult<TopicChange>> results = manager.update(
KafkaResourceManager.UpdateMode.APPLY,
objects,
KafkaResourceOperationContext.with(options, false)
KafkaResourceUpdateContext.with(options, false)
);

// Then
Expand Down Expand Up @@ -221,7 +222,7 @@ public void should_delete_kafka_topic_using_admin_client_given_apply_delete_orph
Collection<ChangeResult<TopicChange>> results = manager.update(
KafkaResourceManager.UpdateMode.APPLY,
objects,
KafkaResourceOperationContext.with(options, false)
KafkaResourceUpdateContext.with(options, false)
);

// Then
Expand Down

0 comments on commit 53b7007

Please sign in to comment.