Skip to content

Commit d2ed653

Browse files
committed
add test case with missing password
1 parent 3ea8fc1 commit d2ed653

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ func TestSecretsMongoUrls(t *testing.T) {
256256
urls: []string{"mongodb://root@mongo:27017/admin?db=mydb&collection=mycoll"},
257257
want: []string{},
258258
},
259+
{
260+
name: "URL With Missing Password",
261+
urls: []string{"mongodb://user:@localhost:27017/database"},
262+
want: []string{},
263+
},
259264
}
260265

261266
for _, tt := range tests {

0 commit comments

Comments
 (0)