PYTHON-4923 - Add mixed case tests for read preference tags (#1990)

This commit is contained in:
Noah Stapp 2024-11-01 13:21:17 -04:00 committed by GitHub
parent c680f63427
commit 6862e94d17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,6 +36,21 @@
]
}
},
{
"description": "Read preference tags are case sensitive",
"uri": "mongodb://example.com/?readPreference=secondary&readPreferenceTags=dc:NY",
"valid": true,
"warning": false,
"hosts": null,
"auth": null,
"options": {
"readPreferenceTags": [
{
"dc": "NY"
}
]
}
},
{
"description": "Invalid readPreferenceTags causes a warning",
"uri": "mongodb://example.com/?readPreferenceTags=invalid",
@ -43,7 +58,7 @@
"warning": true,
"hosts": null,
"auth": null,
"options": {}
"options": null
},
{
"description": "Non-numeric maxStalenessSeconds causes a warning",
@ -52,7 +67,7 @@
"warning": true,
"hosts": null,
"auth": null,
"options": {}
"options": null
},
{
"description": "Too low maxStalenessSeconds causes a warning",
@ -61,7 +76,7 @@
"warning": true,
"hosts": null,
"auth": null,
"options": {}
"options": null
}
]
}