Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

test: add test to verify client-lib header is included#1689

Merged
olavloite merged 1 commit into
mainfrom
add-test-for-header-value
Jul 25, 2024
Merged

test: add test to verify client-lib header is included#1689
olavloite merged 1 commit into
mainfrom
add-test-for-header-value

Conversation

@olavloite

Copy link
Copy Markdown
Collaborator

Adds a verification to an existing test that the standard Java client lib header is included by the JDBC driver.

@olavloite olavloite requested a review from a team July 25, 2024 11:05
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Jul 25, 2024
ServerCallHandler<ReqT, RespT> next) {
String clientLibToken =
headers.get(
Metadata.Key.of("x-goog-api-client", Metadata.ASCII_STRING_MARSHALLER));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious to understand where is this header value actually set?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olavloite olavloite merged commit 34cb127 into main Jul 25, 2024
@olavloite olavloite deleted the add-test-for-header-value branch July 25, 2024 15:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants