Skip to content

refactor(http): inline base64 and drop unused test setup - #23

Merged
fjlopez merged 1 commit into
devfrom
cleanup/px-2-dead-code
Oct 15, 2026
Merged

fjlopez merged 1 commit into
devfrom
cleanup/px-2-dead-code

Conversation

@fjlopez

@fjlopez fjlopez commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Why

The JDBC test class initialized a Jackson tester it does not declare. encodeAuthorization only forwarded Base64.getEncoder().encodeToString.

What changed

  • The JDBC test drops setup, the Jackson imports, and @TestInstance(Lifecycle.PER_CLASS).
  • Basic auth encoding calls Base64.getEncoder().encodeToString at the only call site.

Scope

Dead setup and one forwarder. The trust-all catch in HttpClientFactoryService stays.

Blast Radius

The encoded header is the same string as before. Proxy callers see no change. The JDBC test still runs one request.

Verification

  • ./gradlew test --tests org.sitmun.proxy.middleware.protocols.jdbc.ExecutionRequestExecutorServiceTest --tests org.sitmun.proxy.middleware.protocols.http.HttpRequestDecoratorAddBasicSecurityTest spotlessCheck passed.

The JDBC tester initialized a Jackson tester the class does not declare. Basic auth encoding now calls Base64 at its only call site.
@fjlopez
fjlopez changed the base branch from cleanup/px-1-false-tests to dev October 15, 2026 08:48
@fjlopez

fjlopez commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Reopening so CI runs against dev.

@fjlopez fjlopez closed this Oct 15, 2026
@fjlopez fjlopez reopened this Oct 15, 2026
@fjlopez
fjlopez merged commit c439b9b into dev Oct 15, 2026
2 checks passed
@fjlopez
fjlopez deleted the cleanup/px-2-dead-code branch October 15, 2026 13: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.

1 participant