Skip to content

Commit 7978e4f

Browse files
committed
regenerate test schemas
1 parent 3602303 commit 7978e4f

File tree

18 files changed

+54
-17
lines changed

18 files changed

+54
-17
lines changed

generator/config/accumulator/stdDevSamp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tests:
2424
ageStdDev:
2525
$stdDevSamp: $age
2626
schema:
27-
TestCollection:
27+
users:
2828
_id:
2929
types:
3030
- bsonType: Number

generator/config/expression/add.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tests:
2929
- $price
3030
- $fee
3131
schema:
32-
TestCollection:
32+
sales:
3333
_id:
3434
types:
3535
- bsonType: Number
@@ -55,7 +55,7 @@ tests:
5555
- $date
5656
- 259200000
5757
schema:
58-
TestCollection:
58+
sales:
5959
_id:
6060
types:
6161
- bsonType: Number

generator/config/expression/arrayElemAt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tests:
2828
- $favorites
2929
- -1
3030
schema:
31-
TestCollection:
31+
users:
3232
_id:
3333
types:
3434
- bsonType: Number

generator/config/expression/cond.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests:
3131
then: 30
3232
else: 20
3333
schema:
34-
TestCollection:
34+
inventory:
3535
_id:
3636
types:
3737
- bsonType: Number

generator/config/expression/dateAdd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ tests:
7575
shipping:
7676
custId:
7777
types:
78-
- bsonType: Number
78+
- bsonType: Int32
7979
purchaseDate:
8080
types:
8181
- bsonType: Date

generator/config/expression/let.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ tests:
4141
- $$total
4242
- $$discounted
4343
schema:
44-
TestCollection:
44+
sales:
4545
_id:
4646
types:
4747
- bsonType: Number

generator/config/expression/ln.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tests:
2222
y:
2323
$ln: $sales
2424
schema:
25-
TestCollection:
25+
sales:
2626
_id:
2727
types:
2828
- bsonType: Number

generator/config/expression/reverseArray.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tests:
2121
reverseFavorites:
2222
$reverseArray: $favorites
2323
schema:
24-
TestCollection:
24+
users:
2525
_id:
2626
types:
2727
- bsonType: Number

generator/config/expression/setField.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ tests:
162162
item:
163163
types:
164164
- bsonType: String
165-
price:
165+
qty:
166166
types:
167167
- bsonType: Number
168-
qty:
168+
$price:
169169
types:
170170
- bsonType: Number

generator/config/expression/slice.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tests:
3838
- $favorites
3939
- 3
4040
schema:
41-
TestCollection:
41+
users:
4242
_id:
4343
types:
4444
- bsonType: Number

generator/config/expression/sqrt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests:
3131
- $p1.x
3232
- 2
3333
schema:
34-
TestCollection:
34+
points:
3535
_id:
3636
types:
3737
- bsonType: Number

generator/config/expression/sum.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tests:
2929
- $final
3030
- $midterm
3131
schema:
32-
TestCollection:
32+
students:
3333
_id:
3434
types:
3535
- bsonType: Number

generator/config/query/and.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,20 @@ tests:
2929
- bsonType: Double
3030
qty:
3131
types:
32-
- bsonType: Double
32+
- bsonType: Int32
33+
- bsonType: Undefined
34+
quantity:
35+
types:
36+
- bsonType: Int32
3337
- bsonType: Undefined
3438
sale:
3539
types:
3640
- bsonType: Boolean
41+
tags:
42+
types:
43+
- bsonType: Array
44+
types:
45+
- bsonType: String
3746
- name: AND Queries With Multiple Expressions Specifying the Same Operator
3847
link: https://www.mongodb.com/docs/manual/reference/operator/query/and/#and-queries-with-multiple-expressions-specifying-the-same-operator
3948
pipeline:

generator/config/query/exists.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,18 @@ tests:
3030
types:
3131
- bsonType: Int32
3232
- bsonType: Undefined
33+
quantity:
34+
types:
35+
- bsonType: Int32
36+
- bsonType: Undefined
3337
sale:
3438
types:
3539
- bsonType: Boolean
40+
tags:
41+
types:
42+
- bsonType: Array
43+
types:
44+
- bsonType: String
3645
- name: Null Values
3746
link: https://www.mongodb.com/docs/manual/reference/operator/query/exists/#null-values
3847
pipeline:

generator/config/query/nor.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ tests:
3636
sale:
3737
types:
3838
- bsonType: Boolean
39+
tags:
40+
types:
41+
- bsonType: Array
42+
types:
43+
- bsonType: String
3944
- name: Additional Comparisons
4045
link: https://www.mongodb.com/docs/manual/reference/operator/query/nor/#-nor-and-additional-comparisons
4146
pipeline:

generator/config/query/not.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,18 @@ tests:
2727
types:
2828
- bsonType: Int32
2929
- bsonType: Undefined
30+
quantity:
31+
types:
32+
- bsonType: Int32
33+
- bsonType: Undefined
3034
sale:
3135
types:
3236
- bsonType: Boolean
37+
tags:
38+
types:
39+
- bsonType: Array
40+
types:
41+
- bsonType: String
3342
- name: Regular Expressions
3443
link: https://www.mongodb.com/docs/manual/reference/operator/query/not/#regular-expressions
3544
pipeline:

generator/config/query/or.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ tests:
3737
sale:
3838
types:
3939
- bsonType: Boolean
40+
tags:
41+
types:
42+
- bsonType: Array
43+
types:
44+
- bsonType: String
4045
- name: Error Handling
4146
link: https://www.mongodb.com/docs/manual/reference/operator/query/or/#error-handling
4247
pipeline:

generator/config/stage/redact.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tests:
2929
then: $$DESCEND
3030
else: $$PRUNE
3131
schema:
32-
TestCollection:
32+
forecasts:
3333
_id:
3434
types:
3535
- bsonType: Number
@@ -85,7 +85,7 @@ tests:
8585
then: $$PRUNE
8686
else: $$DESCEND
8787
schema:
88-
TestCollection:
88+
forecasts:
8989
_id:
9090
types:
9191
- bsonType: Number

0 commit comments

Comments
 (0)