uber / tchannel-go

Go implementation of a multiplexing and framing protocol for RPC calls
http://uber.github.io/tchannel/
MIT License
490 stars 84 forks source link

Add option to serve TLS in testutils.NewServerChannel #882

Closed DheerendraRathor closed 2 years ago

DheerendraRathor commented 2 years ago

Added ServeTLS in testutils.ChannelOpts to create a test server with TLS listener listening on port 0. TLS listener uses a static cert/key pair present in internal/testcert package to prevent accidental use of the cert in production.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

codecov[bot] commented 2 years ago

Codecov Report

Merging #882 (5cc4eaa) into dev (13b3dec) will increase coverage by 0.56%. The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #882      +/-   ##
==========================================
+ Coverage   88.93%   89.50%   +0.56%     
==========================================
  Files          43       43              
  Lines        4439     4439              
==========================================
+ Hits         3948     3973      +25     
+ Misses        370      349      -21     
+ Partials      121      117       -4     
Impacted Files Coverage Δ
outbound.go 87.13% <0.00%> (-1.76%) :arrow_down:
peer.go 94.60% <0.00%> (+0.71%) :arrow_up:
channel.go 90.69% <0.00%> (+1.55%) :arrow_up:
inbound.go 82.38% <0.00%> (+1.55%) :arrow_up:
connection.go 89.37% <0.00%> (+3.46%) :arrow_up:
sockio_unix.go 100.00% <0.00%> (+15.38%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a7eda2d...5cc4eaa. Read the comment docs.