Skip to content

Commit

Permalink
fix debug prints. update certs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Oct 7, 2019
1 parent 5689b36 commit fee785a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 90 deletions.
3 changes: 0 additions & 3 deletions internal/helloworld/greeter_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,11 @@ func (c *HWStatsHandler) GetConnectionCount() int {

// HandleConn handle the connection
func (c *HWStatsHandler) HandleConn(ctx context.Context, cs stats.ConnStats) {
fmt.Println("!!! HandleConn")
// no-op
}

// TagConn exists to satisfy gRPC stats.Handler.
func (c *HWStatsHandler) TagConn(ctx context.Context, cti *stats.ConnTagInfo) context.Context {
fmt.Println("!!! TagConn")

c.mutex.Lock()
c.connCount++
c.mutex.Unlock()
Expand Down
18 changes: 0 additions & 18 deletions localhost.crt

This file was deleted.

28 changes: 0 additions & 28 deletions localhost.key

This file was deleted.

1 change: 0 additions & 1 deletion runner/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,6 @@ func TestRunUnarySecure(t *testing.T) {
WithDialTimeout(time.Duration(20*time.Second)),
WithData(data),
WithRootCertificate("../testdata/localhost.crt"),
WithSkipTLSVerify(true),
)

assert.NoError(t, err)
Expand Down
28 changes: 14 additions & 14 deletions testdata/localhost.crt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
-----BEGIN CERTIFICATE-----
MIIC5TCCAc2gAwIBAgIJAOhuGo+MSunWMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNV
BAMMCWxvY2FsaG9zdDAeFw0xOTA5MDIyMDA2NTNaFw0xOTEwMDIyMDA2NTNaMBQx
MIIC5TCCAc2gAwIBAgIJAPNhn1+v1tJ7MA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNV
BAMMCWxvY2FsaG9zdDAeFw0xOTEwMDcxMjU3MjFaFw0xOTExMDYxMjU3MjFaMBQx
EjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJK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s5FiLzwxbQajHM1hjSy85frCkY8B6U
88vAjAhs/fci1OSF2VYaQgShPzwlXFjEjn6veM0q4PN0+5SRTuQmJvXnjqeu+8+e
Ay+qmdmfM2T6CZ2dTuvIriMwAZCzsMsFhg==
AQsFAAOCAQEAIkTmZJeXKciarH9t3G4SnHZt0UGSbsF8auuMAVQy84wAgXBUO8y3
6Es+3oookESlsUPWBAiTX/1UBM4rY8SRxkj0EGWoGXhyRdZCVdiix6pf6V1PFR+h
zF+GD+STJ+CgGK3SYQmB16X+O7FOXZ7xf2zFnGpyAp6cFAHJmj8omI4FdR1FVdOS
l/InfN2jQh3dz4YIYqI/f0EvIc2E+NIkKTKZ79xlMjuWuxx3fQaD+Z8uC4JtsZMq
PeAsAhmza9fwloJH53I5/fVsMSHHHJZHwI6xgeslf5bfbsLu0p3PxGVfNVtw0KOo
eQf6CJTa5laiqJTk6xpVa0TIibhCgPM/1Q==
-----END CERTIFICATE-----
52 changes: 26 additions & 26 deletions testdata/localhost.key
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDMXik8U2nEXJKS
YC8KlskJKraQDGzCbwWLUTxVezRLq/M4a8Ru5+LkcHLr0cxkylEmRwrdfwWRpjaS
C15lAetNLHCVwma5dcvHGqqOii7jluMjAlX4DoNPGjVv9WBj66kCZT1Bk+1Im1Jt
F7ILhZea/7wz5AzgdpZ0D/ce3cbx7w8CHH7p86B+Odueo1PA2E3YqA2hb1RFslot
O6ARBHA7q8g/lN9HlH8qWi0Qe2A7QGKc0TtRVnUEvpgJN/QPbQjTY+D4jka0s0Dd
r9hETJcIdMNDf2KqGrkLW+PFDZoC71hQHqP23SPa+bjEbserXYWNGVSgUDcyVbQI
oPSvXT7JAgMBAAECggEADoQVq7pFBfSJWKpKTRc+uk71Xq/zPbBDFY00muHAaiuR
gA1vi20fGZi/IO7q9LHGJ9Dd/bObA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VRFuiIrglBVLhYEcPg7c+YCrWDEhux1qooPY7ZTQ5vYMFBwQfbKX1jQWMEL
SEDxKnHju/cKK7xdEzDPuB47YauqSglmtSjfXvKep66cs9inQVLXza96YgBJWunA
JZhSiMo2tQKBgQDdIV3s7KHEVDgrsdGk1womfZhO7c8BIZTzSdldAfcF6y1/GFSV
tihFpnkoOmpMfiVO4NEenxxqMQQy++kxlc/9w5z5MydDIVDfdi+hOTniDLrnUW2d
6C08iw/uxLu9UkdRuv2z3+tuNNjRACiah78EG68StwgZ+1k1N+ExGVdVIQKBgQDX
6JaeJNXYQB5OX1nI2rsBgNGrAeef3vY75XCr+Bah+rOptIBEjMHpkejSd0GNsH8Y
0AjoQcA+xGvjU2RU9z0y3JNGXDZ5Z+IOYeVSNYXuu/CqBBPZtuss/pNZM93vR1az
IVySZ+/jPhSW+vmuoQvWgH2ZphfFxMkB7MWhdNI9EQKBgFu9asnDJ2E04kbERSD4
ppbAmvnuHg+y28zOa3hfPKF5OIqqE/9iQQAis/QVff8yzX7mHzXzIPSoeTwiKvkZ
TQRgjPoApPpcGclGNqdRfOuGejBSBLauzw3w36Aq/ytLznm81fZOXWHStAaKzKoW
SBwRX0kphieGnrLfWJ1bfiao
-----END PRIVATE KEY-----

0 comments on commit fee785a

Please sign in to comment.