Skip to content

Commit c94fefe

Browse files
authored
DRIVERS-2286 add tests for Decimal (#1364)
* add Decimal128 specification tests * add prose tests for Decimal128 * only run Decimal (without precision) on replicaset
1 parent 18932c0 commit c94fefe

File tree

41 files changed

+34387
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+34387
-4
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"escCollection": "enxcol_.default.esc",
3+
"eccCollection": "enxcol_.default.ecc",
4+
"ecocCollection": "enxcol_.default.ecoc",
5+
"fields": [
6+
{
7+
"keyId": {
8+
"$binary": {
9+
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
10+
"subType": "04"
11+
}
12+
},
13+
"path": "encryptedDecimal",
14+
"bsonType": "decimal",
15+
"queries": {
16+
"queryType": "rangePreview",
17+
"contention": {
18+
"$numberLong": "0"
19+
},
20+
"sparsity": {
21+
"$numberLong": "1"
22+
}
23+
}
24+
}
25+
]
26+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"escCollection": "enxcol_.default.esc",
3+
"eccCollection": "enxcol_.default.ecc",
4+
"ecocCollection": "enxcol_.default.ecoc",
5+
"fields": [
6+
{
7+
"keyId": {
8+
"$binary": {
9+
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
10+
"subType": "04"
11+
}
12+
},
13+
"path": "encryptedDecimalPrecision",
14+
"bsonType": "decimal",
15+
"queries": {
16+
"queryType": "rangePreview",
17+
"contention": {
18+
"$numberLong": "0"
19+
},
20+
"sparsity": {
21+
"$numberLong": "1"
22+
},
23+
"min": {
24+
"$numberDecimal": "0.0"
25+
},
26+
"max": {
27+
"$numberDecimal": "200.0"
28+
},
29+
"precision": {
30+
"$numberInt": "2"
31+
}
32+
}
33+
}
34+
]
35+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"fields": [
3+
{
4+
"keyId": {
5+
"$binary": {
6+
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7+
"subType": "04"
8+
}
9+
},
10+
"path": "encryptedDecimalNoPrecision",
11+
"bsonType": "decimal",
12+
"queries": {
13+
"queryType": "rangePreview",
14+
"sparsity": {
15+
"$numberInt": "1"
16+
}
17+
}
18+
}
19+
]
20+
}
21+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"fields": [
3+
{
4+
"keyId": {
5+
"$binary": {
6+
"base64": "EjRWeBI0mHYSNBI0VniQEg==",
7+
"subType": "04"
8+
}
9+
},
10+
"path": "encryptedDecimalPrecision",
11+
"bsonType": "decimal",
12+
"queries": {
13+
"queryType": "rangePreview",
14+
"sparsity": {
15+
"$numberInt": "1"
16+
},
17+
"min": {
18+
"$numberDecimal": "0.0"
19+
},
20+
"max": {
21+
"$numberDecimal": "200.0"
22+
},
23+
"precision": {
24+
"$numberInt": "2"
25+
}
26+
}
27+
}
28+
]
29+
}

source/client-side-encryption/etc/test-templates/fle2-Range-Decimal-Aggregate.yml.template

Lines changed: 1673 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)