File: auth-options.yml

package info (click to toggle)
ruby-mongo 2.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,020 kB
  • sloc: ruby: 110,810; makefile: 5
file content (49 lines) | stat: -rw-r--r-- 1,821 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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: "Mixed case in auth mechanism properties is preserved"
        uri: "mongodb://foo:bar@example.com/?authMechanism=GSSAPI&authMechanismProperties=PropertyName:PropertyValue&authSource=$external"
        valid: true
        warning: false
        hosts: ~
        auth: ~
        options:
            authMechanism: "GSSAPI"
            authMechanismProperties:
                PropertyName: PropertyValue
                service_name: mongodb
            authSource: "$external"
    -
        description: "Auth mechanism properties are all invalid"
        uri: "mongodb://foo:bar@example.com/?authMechanism=GSSAPI&authMechanismProperties=PropertyName&authSource=$external"
        valid: true
        warning: true
        hosts: ~
        auth: ~
        options:
            authMechanism: "GSSAPI"
            authMechanismProperties:
                service_name: mongodb
            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"