Skip to content

test: add test tls/mtls - #791

Merged
NguyenHoangSon96 merged 4 commits into
masterfrom
test/add-test-mtls
Nov 5, 2026
Merged

NguyenHoangSon96 merged 4 commits into
masterfrom
test/add-test-mtls

Conversation

@NguyenHoangSon96

@NguyenHoangSon96 NguyenHoangSon96 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #

Proposed Changes

  • Add tests to make sure that TLS/mTLS is working with our client.
  • Examples added for config TLS/mTLS.
  • Only support bundled certificate and key inside a single .p12 file as of now.

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • dotnet test completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@NguyenHoangSon96 NguyenHoangSon96 self-assigned this Oct 27, 2026
@NguyenHoangSon96 NguyenHoangSon96 changed the title Test/add test mtls test: add test tls/mtls Oct 27, 2026
@NguyenHoangSon96
NguyenHoangSon96 marked this pull request as ready for review October 27, 2026 08:03
Copilot AI balanced review requested due to automatic review settings October 27, 2026 08:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@NguyenHoangSon96
NguyenHoangSon96 removed the request for review from karel-rehor November 3, 2026 08:37
@karel-rehor
karel-rehor requested review from karel-rehor and a balanced review from Copilot November 3, 2026 09:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved issues cause server leaks, fixed-port conflicts, and platform-dependent TLS/mTLS test failures, while the example lacks the API token required for authenticated queries.

4 open issues

Review effort: Balanced

Comment thread Client.Test/InfluxDbClientTest.cs Resolved
Comment thread Client.Test/InfluxDbClientTest.cs Resolved
Comment thread Client.Test/TestWebFactory.cs Resolved
Comment thread Examples/TlsExample.cs Resolved

@karel-rehor karel-rehor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I managed to trigger copilot for this project. New user and new month. There are some helpful suggestions.

Do we have tests for .pem certificate files?

Also please ensure for linux contributors, that test ports used are higher than 1024.

Comment thread Client.Test/TestWebFactory.cs Resolved

@karel-rehor karel-rehor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new TlsExample is not very runnable "Out of the box". Granted it is a bit more than a basic example. However if it is plugged into the RunExamples class, it should be runnable with either an explanatory exit message, or some reassuring console output. It could also be a bit more configurable.

Comment thread Examples/TlsExample.cs Resolved
Comment thread Examples/TlsExample.cs Resolved
Comment thread Examples/TlsExample.cs Resolved

@karel-rehor karel-rehor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local tests with net8.0 pass.

Looks good to me. 🚴 🏁

@NguyenHoangSon96
NguyenHoangSon96 merged commit 1a971d1 into master Nov 5, 2026
12 checks passed
@NguyenHoangSon96
NguyenHoangSon96 deleted the test/add-test-mtls branch November 5, 2026 09: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.

3 participants