Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
brandboat committed Dec 15, 2024
1 parent b94defa commit b61db67
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.apache.kafka.metadata.properties.MetaProperties;
import org.apache.kafka.metadata.properties.MetaPropertiesEnsemble;
import org.apache.kafka.metadata.properties.MetaPropertiesVersion;
import org.apache.kafka.server.common.Feature;
import org.apache.kafka.server.common.MetadataVersion;

import java.io.File;
Expand Down Expand Up @@ -62,7 +63,15 @@ public static class Builder {
private BootstrapMetadata bootstrapMetadata;

public Builder() {
this(BootstrapMetadata.fromVersion(MetadataVersion.latestTesting(), "testkit"));
this(BootstrapMetadata.fromVersions(
MetadataVersion.latestTesting(),
Feature.PRODUCTION_FEATURES.stream()
.collect(Collectors.toMap(
Feature::featureName,
feature -> feature.defaultLevel(MetadataVersion.latestTesting()),
(existing, replacement) -> existing,
TreeMap::new)),
"testkit"));
}

public Builder(BootstrapMetadata bootstrapMetadata) {
Expand Down

0 comments on commit b61db67

Please sign in to comment.