File: write-concern.yml

package info (click to toggle)
golang-mongodb-mongo-driver 1.8.1%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 18,500 kB
  • sloc: perl: 533; ansic: 491; python: 432; makefile: 187; sh: 72
file content (77 lines) | stat: -rw-r--r-- 2,344 bytes parent folder | download | duplicates (8)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
tests:
    -
        description: "Default"
        uri: "mongodb://localhost/"
        valid: true
        warning: false
        writeConcern: { }
    -
        description: "w as a valid number"
        uri: "mongodb://localhost/?w=1"
        valid: true
        warning: false
        writeConcern: { w: 1 }
    -
        description: "w as an invalid number"
        uri: "mongodb://localhost/?w=-2"
        valid: false
        warning: ~
    -
        description: "w as a string"
        uri: "mongodb://localhost/?w=majority"
        valid: true
        warning: false
        writeConcern: { w: "majority" }
    -
        description: "wtimeoutMS as a valid number"
        uri: "mongodb://localhost/?wtimeoutMS=500"
        valid: true
        warning: false
        writeConcern: { wtimeoutMS: 500 }
    -
        description: "wtimeoutMS as an invalid number"
        uri: "mongodb://localhost/?wtimeoutMS=-500"
        valid: false
        warning: ~
    -
        description: "journal as false"
        uri: "mongodb://localhost/?journal=false"
        valid: true
        warning: false
        writeConcern: { journal: false }
    -
        description: "journal as true"
        uri: "mongodb://localhost/?journal=true"
        valid: true
        warning: false
        writeConcern: { journal: true }
    -
        description: "All options combined"
        uri: "mongodb://localhost/?w=3&wtimeoutMS=500&journal=true"
        valid: true
        warning: false
        writeConcern: { w: 3, wtimeoutMS: 500, journal: true }
    -
        description: "Unacknowledged with w"
        uri: "mongodb://localhost/?w=0"
        valid: true
        warning: false
        writeConcern: { w: 0 }
    -
        description: "Unacknowledged with w and journal"
        uri: "mongodb://localhost/?w=0&journal=false"
        valid: true
        warning: false
        writeConcern: { w: 0, journal: false }
    -
        description: "Unacknowledged with w and wtimeoutMS"
        uri: "mongodb://localhost/?w=0&wtimeoutMS=500"
        valid: true
        warning: false
        writeConcern: { w: 0, wtimeoutMS: 500 }
    -
        description: "Acknowledged with w as 0 and journal true"
        uri: "mongodb://localhost/?w=0&journal=true"
        valid: false
        warning: false
        writeConcern: { w: 0, journal: true }