@@ -144,7 +144,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
144144 new Document (' _id' , 3 ). append(' x' , 3 ). append(' c' , ' c' )]
145145 }
146146
147- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
148147 def ' $project an exclusion' () {
149148 expect :
150149 aggregate([project(exclude(' a' , ' a1' , ' z' , ' o' ))]) == [new Document (' _id' , 1 ). append(' x' , 1 ). append(' y' , ' a' ),
@@ -178,7 +177,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
178177 new Document (' a' , 6 )]
179178 }
180179
181- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
182180 def ' $unwind with UnwindOptions' () {
183181 given :
184182 getCollectionHelper(). drop()
@@ -226,7 +224,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
226224 new Document (' _id' , false ). append(' acc' , [false ])])
227225 }
228226
229- @IgnoreIf ({ serverVersionLessThan(3 , 6 ) })
230227 def ' $group with $mergeObjects' () {
231228 aggregate([group(null , mergeObjects(' acc' , ' $o' ))]). containsAll(
232229 [new Document (' _id' , null ). append(' acc' , new Document (' a' , 1 ). append(' b' , 2 ). append(' c' , 3 ))])
@@ -322,7 +319,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
322319 getCollectionHelper(new MongoNamespace (outDatabaseName, outCollectionName)). find() == [a, b, c]
323320 }
324321
325- @IgnoreIf ({ serverVersionLessThan(4 , 2 ) })
326322 def ' $merge' () {
327323 given :
328324 def outCollectionName = getCollectionName() + ' .out'
@@ -408,7 +404,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
408404 getCollectionHelper(new MongoNamespace (getDatabaseName(), outCollectionName)). find() == [a, b, c]
409405 }
410406
411- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
412407 def ' $stdDev' () {
413408 when :
414409 def results = aggregate([group(null , stdDevPop(' stdDevPop' , ' $x' ), stdDevSamp(' stdDevSamp' , ' $x' ))]). first()
@@ -420,14 +415,12 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
420415 results. get(' stdDevSamp' ) == 1.0
421416 }
422417
423- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
424418 def ' $sample' () {
425419 expect :
426420 containsAny([a, b, c], aggregate([sample(1 )]). first())
427421 }
428422
429423
430- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
431424 def ' $lookup' () {
432425 given :
433426 def fromCollectionName = ' lookupCollection'
@@ -455,7 +448,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
455448 fromHelper?. drop()
456449 }
457450
458- @IgnoreIf ({ serverVersionLessThan(3 , 6 ) })
459451 def ' $lookup with pipeline' () {
460452 given :
461453 def fromCollectionName = ' warehouses'
@@ -500,7 +492,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
500492 fromHelper?. drop()
501493 }
502494
503- @IgnoreIf ({ serverVersionLessThan(3 , 6 ) })
504495 def ' $lookup with pipeline without variables' () {
505496 given :
506497 def fromCollectionName = ' holidays'
@@ -555,7 +546,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
555546 fromCollection?. drop()
556547 }
557548
558- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
559549 def ' $facet' () {
560550 given :
561551 def helper = getCollectionHelper()
@@ -612,7 +602,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
612602 helper?. drop()
613603 }
614604
615- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
616605 def ' $graphLookup' () {
617606 given :
618607 def fromCollectionName = ' contacts'
@@ -651,7 +640,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
651640 fromHelper?. drop()
652641 }
653642
654- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
655643 def ' $graphLookup with depth options' () {
656644 given :
657645 def fromCollectionName = ' contacts'
@@ -692,7 +680,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
692680 fromHelper?. drop()
693681 }
694682
695- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
696683 def ' $graphLookup with query filter option' () {
697684 given :
698685 def fromCollectionName = ' contacts'
@@ -743,7 +730,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
743730 fromHelper?. drop()
744731 }
745732
746- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
747733 def ' $bucket' () {
748734 given :
749735 def helper = getCollectionHelper()
@@ -777,7 +763,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
777763 helper?. drop()
778764 }
779765
780- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
781766 def ' $bucketAuto' () {
782767 given :
783768 def helper = getCollectionHelper()
@@ -811,7 +796,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
811796 helper?. drop()
812797 }
813798
814- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
815799 def ' $bucketAuto with options' () {
816800 given :
817801 def helper = getCollectionHelper()
@@ -837,7 +821,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
837821 helper?. drop()
838822 }
839823
840- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
841824 def ' $count' () {
842825 given :
843826 def helper = getCollectionHelper()
@@ -873,7 +856,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
873856 helper?. drop()
874857 }
875858
876- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
877859 def ' $sortByCount' () {
878860 given :
879861 def helper = getCollectionHelper()
@@ -952,7 +934,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
952934 helper?. drop()
953935 }
954936
955- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
956937 def ' $addFields' () {
957938 given :
958939 def helper = getCollectionHelper()
@@ -1026,15 +1007,13 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
10261007 helper?. drop()
10271008 }
10281009
1029- @IgnoreIf ({ serverVersionLessThan(4 , 2 ) })
10301010 def ' $set' () {
10311011 expect :
10321012 aggregate([set(new Field (' c' , ' $y' ))]) == [new Document (a). append(' c' , ' a' ),
10331013 new Document (b). append(' c' , ' b' ),
10341014 new Document (c). append(' c' , ' c' )]
10351015 }
10361016
1037- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
10381017 def ' $replaceRoot' () {
10391018 given :
10401019 def helper = getCollectionHelper()
@@ -1065,7 +1044,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
10651044 results == [Document . parse(' {b: 1, _id: 7}' )]
10661045 }
10671046
1068- @IgnoreIf ({ serverVersionLessThan(4 , 2 ) })
10691047 def ' $replaceWith' () {
10701048 given :
10711049 def helper = getCollectionHelper()
0 commit comments