Skip to content

Commit d68c2d5

Browse files
committed
Add explicit "$SYS" test case
Signed-off-by: Joseph Riddle <[email protected]>
1 parent 1ded1cc commit d68c2d5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

conf/parse_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,17 @@ func TestEnvVariableEmbeddedOutsideOfQuotes(t *testing.T) {
242242
}
243243
}
244244

245+
func TestEnvVariableEmbeddedSYS(t *testing.T) {
246+
// https://github.com/nats-io/nats-server/pull/5544#discussion_r1641577620
247+
cluster := `
248+
system_account: "$SYS"
249+
`
250+
ex := map[string]any{
251+
"system_account": "$SYS",
252+
}
253+
test(t, cluster, ex)
254+
}
255+
245256
func TestBcryptVariable(t *testing.T) {
246257
ex := map[string]any{
247258
"password": "$2a$11$ooo",

0 commit comments

Comments
 (0)