Skip to content

Commit

Permalink
Temporarily moves tests to old proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cole committed Apr 25, 2019
1 parent 1493b51 commit 93080a5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion benchmarks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<version>${wire.version}</version>
</dependency>
<dependency>
<groupId>org.apache.zipkin.proto3</groupId>
<groupId>io.zipkin.proto3</groupId>
<artifactId>zipkin-proto3</artifactId>
</dependency>
</dependencies>
Expand Down
29 changes: 6 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,26 +154,6 @@
<url>https://github.com/openzipkin/zipkin/issues</url>
</issueManagement>

<repositories>
<repository>
<id>apache.snapshots.https</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>apache.snapshots.https</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>

<dependencyManagement>
<dependencies>
<dependency>
Expand Down Expand Up @@ -382,9 +362,9 @@
</dependency>

<dependency>
<groupId>org.apache.zipkin.proto3</groupId>
<groupId>io.zipkin.proto3</groupId>
<artifactId>zipkin-proto3</artifactId>
<version>0.2.1-SNAPSHOT</version>
<version>0.2.0</version>
</dependency>
<dependency>
<groupId>com.squareup.wire</groupId>
Expand Down Expand Up @@ -546,7 +526,8 @@
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>zipkin-proto3</includeArtifactIds>
<!-- TODO: Remove protobuf-java once using org.apache.zipkin.proto3 -->
<includeArtifactIds>protobuf-java,zipkin-proto3</includeArtifactIds>
<includes>**/*.proto</includes>
<outputDirectory>${unpack-proto.directory}</outputDirectory>
</configuration>
Expand All @@ -566,6 +547,8 @@
<configuration>
<protoSourceDirectory>${unpack-proto.directory}</protoSourceDirectory>
<includes>
<!-- TODO: Remove google.protobuf.Empty once using org.apache.zipkin.proto3 -->
<include>google.protobuf.Empty</include>
<include>zipkin.proto3.*</include>
</includes>
</configuration>
Expand Down
15 changes: 14 additions & 1 deletion zipkin-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,23 @@

<!-- to test the experimental grpc endpoint with the square/wire library -->
<dependency>
<groupId>org.apache.zipkin.proto3</groupId>
<groupId>io.zipkin.proto3</groupId>
<artifactId>zipkin-proto3</artifactId>
<scope>test</scope>
</dependency>
<!-- TODO: This only resolves google empty. Remove this once using org.apache.zipkin.proto3 -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.7.1</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.squareup.wire</groupId>
<artifactId>wire-grpc-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package zipkin2.server.internal

import com.google.protobuf.Empty
import com.linecorp.armeria.server.Server
import com.squareup.wire.GrpcClient
import com.squareup.wire.Service
Expand All @@ -37,7 +38,6 @@ import zipkin2.TestObjects
import zipkin2.codec.SpanBytesDecoder
import zipkin2.codec.SpanBytesEncoder
import zipkin2.proto3.ListOfSpans
import zipkin2.proto3.ReportResponse
import zipkin2.storage.InMemoryStorage

@SpringBootTest(classes = [ZipkinServer::class],
Expand All @@ -59,7 +59,7 @@ class ITZipkinGrpcCollector {
requestAdapter = "zipkin2.proto3.ListOfSpans#ADAPTER",
responseAdapter = "zipkin2.proto3.ReportResponse#ADAPTER"
)
suspend fun Report(request: ListOfSpans): ReportResponse
suspend fun Report(request: ListOfSpans): Empty
}

@Before fun sanityCheckCodecCompatible() {
Expand Down

0 comments on commit 93080a5

Please sign in to comment.