Skip to content

Commit

Permalink
GODRIVER-2486 add tests for equals terminated keys with no values
Browse files Browse the repository at this point in the history
  • Loading branch information
ramitmittal committed Jan 9, 2025
1 parent b307d49 commit c49c883
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions testdata/connection-string/valid-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,29 @@
"options": {
"authmechanism": "MONGODB-CR"
}
},
{
"description": "Equals terminated keys with no value are parsed without error",
"uri": "mongodb://alice:[email protected]/admin?readPreferenceTags=",
"valid": true,
"warning": false,
"hosts": [
{
"type": "hostname",
"host": "example.com",
"port": null
}
],
"auth": {
"username": "alice",
"password": "secret",
"db": "admin"
},
"options": {
"readPreferenceTags": [
{}
]
}
}
]
}

0 comments on commit c49c883

Please sign in to comment.