Skip to content

test: declare polling-gzip contract test capability - #193

Merged
keelerm84 merged 1 commit into
mainfrom
mk/SDK-2718/polling-gzip
Jul 20, 2026
Merged

test: declare polling-gzip contract test capability#193
keelerm84 merged 1 commit into
mainfrom
mk/SDK-2718/polling-gzip

Conversation

@keelerm84

@keelerm84 keelerm84 commented Jul 20, 2026

Copy link
Copy Markdown
Member

What

Declares the polling-gzip contract-test capability for the Java server SDK, so the sdk-test-harness verifies Accept-Encoding: gzip on FDv2 polling requests.

Part of epic SDK-950 (Polling Gzip Support) · ticket SDK-2718.

Why this is capability-only

The Java SDK already requests and decompresses gzip on polling transparently via OkHttp's BridgeInterceptor (the SDK sets no Accept-Encoding header and adds no encoding interceptor), so no SDK code change is required — only the capability declaration in the contract-test service.

Changes

  • lib/sdk/server/contract-tests/service/src/main/java/sdktest/TestService.java — add "polling-gzip" to CAPABILITIES

Verification

Ran the v3 harness polling suite locally against the built (installDist) test service with the capability enabled — all polling tests pass, including polling/requests/method and headers (the Accept-Encoding: gzip assertion). The mock returns HTTP 400 if the header is absent, so a green run confirms the header is sent and responses are decompressed end-to-end.


Note

Low Risk
Single string added to the contract-test capabilities array with no production SDK or runtime logic changes.

Overview
Adds polling-gzip to the Java server contract-test service’s advertised capabilities in TestService.java, so the sdk-test-harness runs polling gzip checks (including Accept-Encoding: gzip on FDv2 polling) against this SDK.

This is a capability-only change: the harness gates those tests on the capability list returned from GET /; no production SDK behavior is modified in this PR.

Reviewed by Cursor Bugbot for commit 75435d9. Bugbot is set up for automated code reviews on this repo. Configure here.

Advertise the polling-gzip capability so the sdk-test-harness verifies
Accept-Encoding: gzip on FDv2 polling requests. The Java SDK already
sends the header and decompresses transparently via OkHttp, so no SDK
code change is required.

Verified locally: the v3 harness polling suite (including the
"method and headers" Accept-Encoding assertion) passes with the
capability enabled.

SDK-2718
@keelerm84
keelerm84 requested a review from a team as a code owner July 20, 2026 15:43
@keelerm84
keelerm84 merged commit 573b1cb into main Jul 20, 2026
26 checks passed
@keelerm84
keelerm84 deleted the mk/SDK-2718/polling-gzip branch July 20, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants