Issue #451 Agent and Server examples cannot find the certificates when the CWD is different#454
Conversation
…ed cert as []byte
…s embedded cert as []byte" This reverts commit 602031a.
* Move certs.go to examples * Embed all the cert files * Replace the ReadFile(file) by its embedded cert as []byte
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #454 +/- ##
==========================================
+ Coverage 78.23% 80.84% +2.61%
==========================================
Files 28 27 -1
Lines 2825 2709 -116
==========================================
- Hits 2210 2190 -20
+ Misses 487 394 -93
+ Partials 128 125 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jackgopack4
left a comment
There was a problem hiding this comment.
these make sense to me, thanks for this work
|
I checked out your branch, run It works fine on the main branch, so something is off with the PR. I did not diagnose further. |
I need to add the template to the embed files |
|
@tigrannajaryan I fixed the issue with the html templates. Please, review the changes |
| "../internal/certs/server_certs/server.cert.pem", | ||
| "../internal/certs/server_certs/server.key.pem", | ||
| ) | ||
| ca := testcerts.NewCA() |
internal/certs.gotointernal/examples/certs.goserver/serverimpl_test.go, leveraging testcerts instead of the moved certs.go