Start TLS testing of service
package cluster
import (
+ "crypto/tls"
"net"
"testing"
"time"
@@ -82,6 +83,7 @@ func Test_NewServiceSetGetNodeAPIAddr(t *testing.T) {
type mockTransport struct {
tn net.Listener
+ tlsConfig *tls.Config
}
func mustNewMockTransport() *mockTransport {
@@ -94,6 +96,10 @@ func mustNewMockTransport() *mockTransport {
}
}
+func mustNewMockTLSTransport() *mockTransport {
+ // Do this next
+}
+
func (ml *mockTransport) Accept() (c net.Conn, err error) {
return ml.tn.Accept()
}
