Skip to content

Commit 8e9336f

Browse files
committed
test: add region tags for showcase test
1 parent 21647c7 commit 8e9336f

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

  • java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it

java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelTracing.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ void testTracing_successfulEcho_grpc() throws Exception {
136136
.getAttributes()
137137
.get(AttributeKey.stringKey(ObservabilityAttributes.GRPC_RPC_METHOD_ATTRIBUTE)))
138138
.isEqualTo("google.showcase.v1beta1.Echo/Echo");
139+
// {x-version-update-start:gapic-showcase:current}
140+
assertThat(
141+
attemptSpan
142+
.getAttributes()
143+
.get(AttributeKey.stringKey(ObservabilityAttributes.VERSION_ATTRIBUTE)))
144+
.isEqualTo("0.0.0-SNAPSHOT");
145+
// {x-version-update-end}
139146
}
140147
}
141148

@@ -178,11 +185,13 @@ void testTracing_successfulEcho_httpjson() throws Exception {
178185
.getAttributes()
179186
.get(AttributeKey.stringKey(ObservabilityAttributes.REPO_ATTRIBUTE)))
180187
.isEqualTo(SHOWCASE_REPO);
188+
// {x-version-update-start:gapic-showcase:current}
181189
assertThat(
182190
attemptSpan
183-
.getAttributes()
184-
.get(AttributeKey.stringKey(ObservabilityAttributes.ARTIFACT_ATTRIBUTE)))
185-
.isEqualTo(SHOWCASE_ARTIFACT);
191+
.getAttributes()
192+
.get(AttributeKey.stringKey(ObservabilityAttributes.VERSION_ATTRIBUTE)))
193+
.isEqualTo("0.0.0-SNAPSHOT");
194+
// {x-version-update-end}
186195
}
187196
}
188197
}

0 commit comments

Comments
 (0)