@@ -144,7 +144,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
144
144
new Document (' _id' , 3 ). append(' x' , 3 ). append(' c' , ' c' )]
145
145
}
146
146
147
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
148
147
def ' $project an exclusion' () {
149
148
expect :
150
149
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
178
177
new Document (' a' , 6 )]
179
178
}
180
179
181
- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
182
180
def ' $unwind with UnwindOptions' () {
183
181
given :
184
182
getCollectionHelper(). drop()
@@ -226,7 +224,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
226
224
new Document (' _id' , false ). append(' acc' , [false ])])
227
225
}
228
226
229
- @IgnoreIf ({ serverVersionLessThan(3 , 6 ) })
230
227
def ' $group with $mergeObjects' () {
231
228
aggregate([group(null , mergeObjects(' acc' , ' $o' ))]). containsAll(
232
229
[new Document (' _id' , null ). append(' acc' , new Document (' a' , 1 ). append(' b' , 2 ). append(' c' , 3 ))])
@@ -322,7 +319,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
322
319
getCollectionHelper(new MongoNamespace (outDatabaseName, outCollectionName)). find() == [a, b, c]
323
320
}
324
321
325
- @IgnoreIf ({ serverVersionLessThan(4 , 2 ) })
326
322
def ' $merge' () {
327
323
given :
328
324
def outCollectionName = getCollectionName() + ' .out'
@@ -408,7 +404,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
408
404
getCollectionHelper(new MongoNamespace (getDatabaseName(), outCollectionName)). find() == [a, b, c]
409
405
}
410
406
411
- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
412
407
def ' $stdDev' () {
413
408
when :
414
409
def results = aggregate([group(null , stdDevPop(' stdDevPop' , ' $x' ), stdDevSamp(' stdDevSamp' , ' $x' ))]). first()
@@ -420,14 +415,12 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
420
415
results. get(' stdDevSamp' ) == 1.0
421
416
}
422
417
423
- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
424
418
def ' $sample' () {
425
419
expect :
426
420
containsAny([a, b, c], aggregate([sample(1 )]). first())
427
421
}
428
422
429
423
430
- @IgnoreIf ({ serverVersionLessThan(3 , 2 ) })
431
424
def ' $lookup' () {
432
425
given :
433
426
def fromCollectionName = ' lookupCollection'
@@ -455,7 +448,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
455
448
fromHelper?. drop()
456
449
}
457
450
458
- @IgnoreIf ({ serverVersionLessThan(3 , 6 ) })
459
451
def ' $lookup with pipeline' () {
460
452
given :
461
453
def fromCollectionName = ' warehouses'
@@ -500,7 +492,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
500
492
fromHelper?. drop()
501
493
}
502
494
503
- @IgnoreIf ({ serverVersionLessThan(3 , 6 ) })
504
495
def ' $lookup with pipeline without variables' () {
505
496
given :
506
497
def fromCollectionName = ' holidays'
@@ -555,7 +546,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
555
546
fromCollection?. drop()
556
547
}
557
548
558
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
559
549
def ' $facet' () {
560
550
given :
561
551
def helper = getCollectionHelper()
@@ -612,7 +602,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
612
602
helper?. drop()
613
603
}
614
604
615
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
616
605
def ' $graphLookup' () {
617
606
given :
618
607
def fromCollectionName = ' contacts'
@@ -651,7 +640,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
651
640
fromHelper?. drop()
652
641
}
653
642
654
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
655
643
def ' $graphLookup with depth options' () {
656
644
given :
657
645
def fromCollectionName = ' contacts'
@@ -692,7 +680,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
692
680
fromHelper?. drop()
693
681
}
694
682
695
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
696
683
def ' $graphLookup with query filter option' () {
697
684
given :
698
685
def fromCollectionName = ' contacts'
@@ -743,7 +730,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
743
730
fromHelper?. drop()
744
731
}
745
732
746
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
747
733
def ' $bucket' () {
748
734
given :
749
735
def helper = getCollectionHelper()
@@ -777,7 +763,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
777
763
helper?. drop()
778
764
}
779
765
780
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
781
766
def ' $bucketAuto' () {
782
767
given :
783
768
def helper = getCollectionHelper()
@@ -811,7 +796,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
811
796
helper?. drop()
812
797
}
813
798
814
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
815
799
def ' $bucketAuto with options' () {
816
800
given :
817
801
def helper = getCollectionHelper()
@@ -837,7 +821,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
837
821
helper?. drop()
838
822
}
839
823
840
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
841
824
def ' $count' () {
842
825
given :
843
826
def helper = getCollectionHelper()
@@ -873,7 +856,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
873
856
helper?. drop()
874
857
}
875
858
876
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
877
859
def ' $sortByCount' () {
878
860
given :
879
861
def helper = getCollectionHelper()
@@ -952,7 +934,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
952
934
helper?. drop()
953
935
}
954
936
955
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
956
937
def ' $addFields' () {
957
938
given :
958
939
def helper = getCollectionHelper()
@@ -1026,15 +1007,13 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
1026
1007
helper?. drop()
1027
1008
}
1028
1009
1029
- @IgnoreIf ({ serverVersionLessThan(4 , 2 ) })
1030
1010
def ' $set' () {
1031
1011
expect :
1032
1012
aggregate([set(new Field (' c' , ' $y' ))]) == [new Document (a). append(' c' , ' a' ),
1033
1013
new Document (b). append(' c' , ' b' ),
1034
1014
new Document (c). append(' c' , ' c' )]
1035
1015
}
1036
1016
1037
- @IgnoreIf ({ serverVersionLessThan(3 , 4 ) })
1038
1017
def ' $replaceRoot' () {
1039
1018
given :
1040
1019
def helper = getCollectionHelper()
@@ -1065,7 +1044,6 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
1065
1044
results == [Document . parse(' {b: 1, _id: 7}' )]
1066
1045
}
1067
1046
1068
- @IgnoreIf ({ serverVersionLessThan(4 , 2 ) })
1069
1047
def ' $replaceWith' () {
1070
1048
given :
1071
1049
def helper = getCollectionHelper()
0 commit comments