add stream name to create subject

I anticipate it would be desirable to allow a microservice running
in an account to create only the stream it needs when it starts up
if there is no stream but no others, so a ACL would be written to
allow that.

Thus adding the T pattern to stream create too.
This commit is contained in:
R.I.Pienaar
2020-01-17 11:58:07 +01:00
committed by Derek Collison
parent 72cda966f4
commit 25e535eab8
2 changed files with 4 additions and 3 deletions

View File

@@ -3436,7 +3436,7 @@ func TestJetStreamRequestAPI(t *testing.T) {
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
resp, _ = nc.Request(server.JetStreamCreateStream, req, time.Second)
resp, _ = nc.Request(fmt.Sprintf(server.JetStreamCreateStreamT, msetCfg.Name), req, time.Second)
expectOKResponse(t, resp)
// Now lookup info again and see that we can see the new stream.