Skip to content

test(client): add User-Agent header tests (DAK-7617) - #149

Merged
ferhimedamine merged 1 commit into
mainfrom
test/user-agent-header
Aug 2, 2026
Merged

test(client): add User-Agent header tests (DAK-7617)#149
ferhimedamine merged 1 commit into
mainfrom
test/user-agent-header

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Summary

  • PR#147 added dakera-go/<Version> as the default User-Agent header on every request (DAK-7617), but shipped with no test coverage.
  • Adds TestUserAgentHeader: spins up a test server, captures the header, asserts dakera-go/0.11.102 value — same pattern as the existing TestAuthorizationHeader.
  • Adds TestUserAgentHeader_Version: sanity-checks that Version constant is non-empty and contains a . (semver-like format the server analytics expect).

Test plan

  • Pattern mirrors existing TestAuthorizationHeader (same imports, same httptest pattern)
  • CI will run go test ./...

🤖 Generated with Claude Code

PR#147 added the default dakera-go/<Version> User-Agent but shipped
with no test. Adds TestUserAgentHeader (verifies header value on
every request) and TestUserAgentHeader_Version (sanity-checks that
Version is non-empty and contains a dot).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@ferhimedamine ferhimedamine added the auto-merge Auto-merge when CI passes label Aug 1, 2026
@ferhimedamine
ferhimedamine merged commit 1b02b74 into main Aug 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Auto-merge when CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant