Skip to content

🧪 Add unit tests for tlscfg flag registration#7

Open
jkowall wants to merge 1 commit intomainfrom
testing-improvement-tlscfg-flags-12178995783097583288
Open

🧪 Add unit tests for tlscfg flag registration#7
jkowall wants to merge 1 commit intomainfrom
testing-improvement-tlscfg-flags-12178995783097583288

Conversation

@jkowall
Copy link
Owner

@jkowall jkowall commented Mar 21, 2026

🎯 What

Added unit tests for ServerFlagsConfig.AddFlags and ClientFlagsConfig.AddFlags in internal/config/tlscfg/flags.go.

📊 Coverage

The new tests cover:

  • Registration of all server-side TLS flags (.tls.enabled, .tls.cert, .tls.key, .tls.client-ca, .tls.cipher-suites, .tls.min-version, .tls.max-version, .tls.reload-interval) with a custom prefix.
  • Registration of all client-side TLS flags (.tls.enabled, .tls.ca, .tls.cert, .tls.key, .tls.server-name, .tls.skip-host-verify) with a custom prefix.

✨ Result

Increased test coverage for flag registration logic, ensuring that configuration flags are correctly set up before being used by the application. Verified through code review as correct, despite local test execution being blocked by environmental constraints (lack of internet for dependency downloads).


PR created automatically by Jules for task 12178995783097583288 started by @jkowall

….AddFlags

This commit adds unit tests to verify that all expected TLS flags are
correctly registered in the flag set with the specified prefix.
Specifically, it adds:
- TestServerFlagsConfig_AddFlags
- TestClientFlagsConfig_AddFlags

These tests improve the reliability of the flag registration logic in the
tlscfg package.

Co-authored-by: jkowall <1859948+jkowall@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions github-actions bot added the pr-quota-reached PR is on hold due to quota limits for new contributors label Mar 21, 2026
@github-actions
Copy link

Hi @jkowall, thanks for your contribution! To ensure quality reviews, we limit how many concurrent PRs new contributors can open:

  • Open: 3
  • Limit: 1

This PR is currently on hold. We will automatically move this into the review queue once your existing PRs are merged or closed.

Please see our Contributing Guidelines for details on our tiered quota policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-quota-reached PR is on hold due to quota limits for new contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant