From 10b478a4cf67ab04020d7cf6c9a1086adf91ecb6 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Thu, 25 Apr 2019 14:21:07 +0800 Subject: [PATCH] Temporarily moves tests to old proto See https://github.com/apache/incubator-zipkin-api/pull/64 --- benchmarks/pom.xml | 15 +++++++++- pom.xml | 29 ++++--------------- zipkin-server/pom.xml | 15 +++++++++- .../server/internal/ITZipkinGrpcCollector.kt | 6 ++-- 4 files changed, 37 insertions(+), 28 deletions(-) diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml index 0ae57bb421b..516d6d4d275 100644 --- a/benchmarks/pom.xml +++ b/benchmarks/pom.xml @@ -80,9 +80,22 @@ ${wire.version} - org.apache.zipkin.proto3 + io.zipkin.proto3 zipkin-proto3 + + + com.google.protobuf + protobuf-java + 3.7.1 + test + + + * + * + + + diff --git a/pom.xml b/pom.xml index 6e34b0a9418..1efcd5c86ad 100755 --- a/pom.xml +++ b/pom.xml @@ -154,26 +154,6 @@ https://github.com/openzipkin/zipkin/issues - - - apache.snapshots.https - https://repository.apache.org/content/repositories/snapshots/ - - false - - - - - - - apache.snapshots.https - https://repository.apache.org/content/repositories/snapshots/ - - false - - - - @@ -382,9 +362,9 @@ - org.apache.zipkin.proto3 + io.zipkin.proto3 zipkin-proto3 - 0.2.1-SNAPSHOT + 0.2.0 com.squareup.wire @@ -546,7 +526,8 @@ unpack-dependencies - zipkin-proto3 + + protobuf-java,zipkin-proto3 **/*.proto ${unpack-proto.directory} @@ -566,6 +547,8 @@ ${unpack-proto.directory} + + google.protobuf.Empty zipkin.proto3.* diff --git a/zipkin-server/pom.xml b/zipkin-server/pom.xml index d418a58181c..7f1c612cd00 100644 --- a/zipkin-server/pom.xml +++ b/zipkin-server/pom.xml @@ -133,10 +133,23 @@ - org.apache.zipkin.proto3 + io.zipkin.proto3 zipkin-proto3 test + + + com.google.protobuf + protobuf-java + 3.7.1 + test + + + * + * + + + com.squareup.wire wire-grpc-client diff --git a/zipkin-server/src/test/kotlin/zipkin2/server/internal/ITZipkinGrpcCollector.kt b/zipkin-server/src/test/kotlin/zipkin2/server/internal/ITZipkinGrpcCollector.kt index c87d133ef3d..85c5e0634f0 100644 --- a/zipkin-server/src/test/kotlin/zipkin2/server/internal/ITZipkinGrpcCollector.kt +++ b/zipkin-server/src/test/kotlin/zipkin2/server/internal/ITZipkinGrpcCollector.kt @@ -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 @@ -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], @@ -57,9 +57,9 @@ class ITZipkinGrpcCollector { @WireRpc( path = "/zipkin.proto3.SpanService/Report", requestAdapter = "zipkin2.proto3.ListOfSpans#ADAPTER", - responseAdapter = "zipkin2.proto3.ReportResponse#ADAPTER" + responseAdapter = "com.google.protobuf.Empty#ADAPTER" ) - suspend fun Report(request: ListOfSpans): ReportResponse + suspend fun Report(request: ListOfSpans): Empty } @Before fun sanityCheckCodecCompatible() {