Skip to content

Commit 7e5e9ad

Browse files
committed
Change uri_options/auth-options spec test to enable conditional tests
JAVA-3558
1 parent b28be53 commit 7e5e9ad

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

driver-core/src/test/resources/uri-options/auth-options.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"tests": [
33
{
4-
"description": "Valid auth options are parsed correctly",
4+
"description": "Valid auth options are parsed correctly (GSSAPI)",
55
"uri": "mongodb://foo:[email protected]/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authSource=$external",
66
"valid": true,
77
"warning": false,
@@ -15,6 +15,18 @@
1515
},
1616
"authSource": "$external"
1717
}
18+
},
19+
{
20+
"description": "Valid auth options are parsed correctly (SCRAM-SHA-1)",
21+
"uri": "mongodb://foo:[email protected]/?authMechanism=SCRAM-SHA-1&authSource=authSourceDB",
22+
"valid": true,
23+
"warning": false,
24+
"hosts": null,
25+
"auth": null,
26+
"options": {
27+
"authMechanism": "SCRAM-SHA-1",
28+
"authSource": "authSourceDB"
29+
}
1830
}
1931
]
2032
}

0 commit comments

Comments
 (0)