@@ -101,7 +101,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
101
101
new Document (' _id' , 3 ). append(' x' , 3 ). append(' c' , ' c' )]
102
102
}
103
103
104
- @IgnoreIf ({ !serverVersionAtLeast([ 3 , 3 , 10 ] ) })
104
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
105
105
def ' $project an exclusion' () {
106
106
expect :
107
107
aggregate([project(exclude(' a' , ' a1' , ' z' ))]) == [new Document (' _id' , 1 ). append(' x' , 1 ). append(' y' , ' a' ),
@@ -135,7 +135,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
135
135
new Document (' a' , 6 )]
136
136
}
137
137
138
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 1 , 10 ) ) })
138
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 2 ) })
139
139
def ' $unwind with UnwindOptions' () {
140
140
given :
141
141
getCollectionHelper(). drop()
@@ -183,7 +183,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
183
183
new Document (' _id' , false ). append(' acc' , [false ])])
184
184
}
185
185
186
- @IgnoreIf ({ !serverVersionAtLeast(asList( 2 , 6 , 0 ) ) })
186
+ @IgnoreIf ({ !serverVersionAtLeast(2 , 6 ) })
187
187
def ' $out' () {
188
188
given :
189
189
def outCollectionName = getCollectionName() + ' .out'
@@ -195,7 +195,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
195
195
getCollectionHelper(new MongoNamespace (getDatabaseName(), outCollectionName)). find() == [a, b, c]
196
196
}
197
197
198
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 1 , 8 ) ) })
198
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 2 ) })
199
199
def ' $stdDev' () {
200
200
when :
201
201
def results = aggregate([group(null , stdDevPop(' stdDevPop' , ' $x' ), stdDevSamp(' stdDevSamp' , ' $x' ))]). first()
@@ -207,14 +207,14 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
207
207
results. get(' stdDevSamp' ) == 1.0
208
208
}
209
209
210
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 1 , 8 ) ) })
210
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 2 ) })
211
211
def ' $sample' () {
212
212
expect :
213
213
containsAny([a, b, c], aggregate([sample(1 )]). first())
214
214
}
215
215
216
216
217
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 1 , 8 ) ) })
217
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 2 ) })
218
218
def ' $lookup' () {
219
219
given :
220
220
def fromCollectionName = ' lookupCollection'
@@ -242,7 +242,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
242
242
fromHelper?. drop()
243
243
}
244
244
245
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
245
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
246
246
def ' $facet' () {
247
247
given :
248
248
def helper = getCollectionHelper()
@@ -294,7 +294,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
294
294
helper?. drop()
295
295
}
296
296
297
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
297
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
298
298
def ' $graphLookup' () {
299
299
given :
300
300
def fromCollectionName = ' contacts'
@@ -333,7 +333,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
333
333
fromHelper?. drop()
334
334
}
335
335
336
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
336
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
337
337
def ' $graphLookup with options' () {
338
338
given :
339
339
def fromCollectionName = ' contacts'
@@ -374,7 +374,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
374
374
fromHelper?. drop()
375
375
}
376
376
377
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
377
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
378
378
def ' $bucket' () {
379
379
given :
380
380
def helper = getCollectionHelper()
@@ -408,7 +408,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
408
408
helper?. drop()
409
409
}
410
410
411
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
411
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
412
412
def ' $bucketAuto' () {
413
413
given :
414
414
def helper = getCollectionHelper()
@@ -442,7 +442,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
442
442
helper?. drop()
443
443
}
444
444
445
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
445
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
446
446
def ' $bucketAuto with options' () {
447
447
given :
448
448
def helper = getCollectionHelper()
@@ -468,7 +468,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
468
468
helper?. drop()
469
469
}
470
470
471
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
471
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
472
472
def ' $count' () {
473
473
given :
474
474
def helper = getCollectionHelper()
@@ -503,7 +503,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
503
503
helper?. drop()
504
504
}
505
505
506
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 9 ) ) })
506
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
507
507
def ' $sortByCount' () {
508
508
given :
509
509
def helper = getCollectionHelper()
@@ -542,7 +542,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
542
542
helper?. drop()
543
543
}
544
544
545
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 11 ) ) })
545
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
546
546
def ' $addFields' () {
547
547
given :
548
548
def helper = getCollectionHelper()
@@ -616,7 +616,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
616
616
helper?. drop()
617
617
}
618
618
619
- @IgnoreIf ({ !serverVersionAtLeast(asList( 3 , 3 , 11 ) ) })
619
+ @IgnoreIf ({ !serverVersionAtLeast(3 , 4 ) })
620
620
def ' $replaceRoot' () {
621
621
given :
622
622
def helper = getCollectionHelper()
0 commit comments