File: auth-options.yml

package info (click to toggle)
golang-mongodb-mongo-driver 1.17.1%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 25,988 kB
  • sloc: perl: 533; ansic: 491; python: 432; sh: 327; makefile: 174
file content (24 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
tests:
    -
        description: "Valid auth options are parsed correctly (GSSAPI)"
        uri: "mongodb://foo:bar@example.com/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authSource=$external"
        valid: true
        warning: false
        hosts: ~
        auth: ~
        options:
            authMechanism: "GSSAPI"
            authMechanismProperties:
                SERVICE_NAME: "other"
                CANONICALIZE_HOST_NAME: true
            authSource: "$external"
    -
        description: "Valid auth options are parsed correctly (SCRAM-SHA-1)"
        uri: "mongodb://foo:bar@example.com/?authMechanism=SCRAM-SHA-1&authSource=authSourceDB"
        valid: true
        warning: false
        hosts: ~
        auth: ~
        options:
            authMechanism: "SCRAM-SHA-1"
            authSource: "authSourceDB"