Skip to content

Commit

Permalink
fix: Update version checker to use new dependencies (#3061)
Browse files Browse the repository at this point in the history
Use local Version class. 

Also changed the kafka streams state directory back to /tmp/kafka-streams in the KsqlResourceTest.shouldListDefaultKsqlProperty, since that is the new default upstream.
  • Loading branch information
apurvam authored Jul 11, 2019
1 parent 0a4d329 commit 508fab9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1337,15 +1337,15 @@ public void shouldListPropertiesWithNoOverrides() {
public void shouldListDefaultKsqlProperty() {
// Given:
givenKsqlConfigWith(ImmutableMap.<String, Object>builder()
.put(StreamsConfig.STATE_DIR_CONFIG, "/var/lib/kafka-streams")
.put(StreamsConfig.STATE_DIR_CONFIG, "/tmp/kafka-streams")
.build());

// When:
final PropertiesList props = makeSingleRequest("list properties;", PropertiesList.class);

// Then:
assertThat(props.getDefaultProperties(),
hasItem(KsqlConfig.KSQL_STREAMS_PREFIX + StreamsConfig.STATE_DIR_CONFIG));
hasItem(KsqlConfig.KSQL_STREAMS_PREFIX + StreamsConfig.STATE_DIR_CONFIG));
}

@Test
Expand Down
5 changes: 5 additions & 0 deletions ksql-version-metrics-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
<artifactId>jackson-databind</artifactId>
</dependency>

<dependency>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksql-engine</artifactId>
</dependency>

<!-- Required for running tests -->

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

package io.confluent.ksql.version.metrics.collector;

import io.confluent.ksql.util.Version;
import io.confluent.ksql.version.metrics.KsqlVersionMetrics;
import io.confluent.support.metrics.common.Collector;
import io.confluent.support.metrics.common.Version;
import java.time.Clock;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.when;

import io.confluent.ksql.util.Version;
import io.confluent.ksql.version.metrics.KsqlVersionMetrics;
import io.confluent.support.metrics.common.Version;
import java.time.Clock;
import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down

0 comments on commit 508fab9

Please sign in to comment.