Skip to content

feat: Advertise post and report capabilities in SSE contract test service - #149

Merged
kinyoklion merged 1 commit into
mainfrom
rlamb/service-advertise-post-report
Nov 2, 2026
Merged

kinyoklion merged 1 commit into
mainfrom
rlamb/service-advertise-post-report

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What

Adds "post" and "report" to the capabilities the contract-test service advertises in contract-tests/src/bin/sse-test-api/main.rs.

Why

A capability audit of the SSE contract-test services (write-up) found the service already fully wires the harness's method/body params (stream_entity.rs maps them to the client's method/body builder options) but never advertises the capabilities, so these suite tests were silently skipping:

  • HTTP behavior/POST request
  • HTTP behavior/REPORT request
  • reconnection/resends request body if any when reconnecting

How verified

Ran the full sse-contract-tests harness locally (harness @ main + pending regression tests) against the rebuilt service on linux/arm64: all tests pass, including the newly unlocked ones.

Draft for review of the approach; one-line-per-capability change.

Opened from termag

SDK-3420


Note

Overview
The SSE contract-test service status response now includes post and report in its advertised capabilities list.

That aligns the harness with behavior already implemented via Config method / body (and StreamEntity), so suite cases for POST/REPORT HTTP behavior and reconnection request-body resend are no longer skipped for lack of capability flags.

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

The service has always fully wired the method/body parameters (mapped to
ClientBuilder method/body options), but never advertised the "post" and
"report" capabilities, so the SSE contract test suite's POST/REPORT tests
and the request-body-resend-on-reconnect test silently skipped.

Verified: with the strings added, the full contract test suite passes,
including the newly unlocked tests.

Generated-by: termag
@kinyoklion
kinyoklion marked this pull request as ready for review October 30, 2026 23:23
@kinyoklion
kinyoklion requested a review from a team as a code owner October 30, 2026 23:23
@kinyoklion
kinyoklion merged commit 538b326 into main Nov 2, 2026
14 checks passed
@kinyoklion
kinyoklion deleted the rlamb/service-advertise-post-report branch November 2, 2026 23:54
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