Skip to content

Commit

Permalink
nsqadmin: use new cert filenames; update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Sep 16, 2017
1 parent b98a33d commit 6837249
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nsqadmin/nsqadmin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ func TestBothNSQDAndNSQLookup(t *testing.T) {
}

func TestTLSHTTPClient(t *testing.T) {
lgr := test.NewTestLogger(t)

nsqdOpts := nsqd.NewOptions()
nsqdOpts.TLSCert = "./test/server.pem"
nsqdOpts.TLSKey = "./test/server-key.pem"
nsqdOpts.TLSKey = "./test/server.key"
nsqdOpts.TLSRootCAFile = "./test/ca.pem"
nsqdOpts.TLSClientAuthPolicy = "require-verify"
nsqdOpts.Logger = lgr
_, nsqdHTTPAddr, nsqd := mustStartNSQD(nsqdOpts)
defer os.RemoveAll(nsqdOpts.DataPath)
defer nsqd.Exit()
Expand All @@ -68,7 +71,8 @@ func TestTLSHTTPClient(t *testing.T) {
opts.NSQDHTTPAddresses = []string{nsqdHTTPAddr.String()}
opts.HTTPClientTLSRootCAFile = "./test/ca.pem"
opts.HTTPClientTLSCert = "./test/client.pem"
opts.HTTPClientTLSKey = "./test/client-key.pem"
opts.HTTPClientTLSKey = "./test/client.key"
opts.Logger = lgr
nsqadmin := New(opts)
nsqadmin.Main()
defer nsqadmin.Exit()
Expand Down

0 comments on commit 6837249

Please sign in to comment.