Skip to content

Commit 16b96fd

Browse files
authored
Merge pull request #126 from mongodb/spec-173
SPEC-173: Document tests conditional on server version
2 parents 2a61f4b + a0cebef commit 16b96fd

Some content is hidden

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

47 files changed

+3716
-2692
lines changed
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
{
2-
"data": [
3-
{
4-
"_id": 1,
5-
"x": "ping"
6-
}
7-
],
8-
"minServerVersion": "3.4",
9-
"tests": [
10-
{
11-
"description": "Aggregate with collation",
12-
"operation": {
13-
"arguments": {
14-
"collation": {
15-
"locale": "en_US",
16-
"strength": 2
17-
},
18-
"pipeline": [
19-
{
20-
"$match": {
21-
"x": "PING"
22-
}
23-
}
24-
]
25-
},
26-
"name": "aggregate"
27-
},
28-
"outcome": {
29-
"result": [
30-
{
31-
"_id": 1,
32-
"x": "ping"
33-
}
34-
]
2+
"data": [
3+
{
4+
"_id": 1,
5+
"x": "ping"
6+
}
7+
],
8+
"minServerVersion": "3.4",
9+
"tests": [
10+
{
11+
"description": "Aggregate with collation",
12+
"operation": {
13+
"name": "aggregate",
14+
"arguments": {
15+
"pipeline": [
16+
{
17+
"$match": {
18+
"x": "PING"
19+
}
3520
}
21+
],
22+
"collation": {
23+
"locale": "en_US",
24+
"strength": 2
25+
}
3626
}
37-
]
38-
}
27+
},
28+
"outcome": {
29+
"result": [
30+
{
31+
"_id": 1,
32+
"x": "ping"
33+
}
34+
]
35+
}
36+
}
37+
]
38+
}
Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
11
{
2-
"data": [
3-
{
4-
"_id": 1,
5-
"x": 11
6-
},
7-
{
8-
"_id": 2,
2+
"data": [
3+
{
4+
"_id": 1,
5+
"x": 11
6+
},
7+
{
8+
"_id": 2,
9+
"x": 22
10+
},
11+
{
12+
"_id": 3,
13+
"x": 33
14+
}
15+
],
16+
"minServerVersion": "2.6",
17+
"tests": [
18+
{
19+
"description": "Aggregate with $out",
20+
"operation": {
21+
"name": "aggregate",
22+
"arguments": {
23+
"pipeline": [
24+
{
25+
"$sort": {
26+
"x": 1
27+
}
28+
},
29+
{
30+
"$match": {
31+
"_id": {
32+
"$gt": 1
33+
}
34+
}
35+
},
36+
{
37+
"$out": "other_test_collection"
38+
}
39+
],
40+
"batchSize": 2
41+
}
42+
},
43+
"outcome": {
44+
"result": [
45+
{
46+
"_id": 2,
947
"x": 22
10-
},
11-
{
12-
"_id": 3,
48+
},
49+
{
50+
"_id": 3,
1351
"x": 33
14-
}
15-
],
16-
"minServerVersion": "2.6",
17-
"tests": [
18-
{
19-
"description": "Aggregate with $out",
20-
"operation": {
21-
"arguments": {
22-
"batchSize": 2,
23-
"pipeline": [
24-
{
25-
"$sort": {
26-
"x": 1
27-
}
28-
},
29-
{
30-
"$match": {
31-
"_id": {
32-
"$gt": 1
33-
}
34-
}
35-
},
36-
{
37-
"$out": "other_test_collection"
38-
}
39-
]
40-
},
41-
"name": "aggregate"
42-
},
43-
"outcome": {
44-
"collection": {
45-
"data": [
46-
{
47-
"_id": 2,
48-
"x": 22
49-
},
50-
{
51-
"_id": 3,
52-
"x": 33
53-
}
54-
],
55-
"name": "other_test_collection"
56-
},
57-
"result": [
58-
{
59-
"_id": 2,
60-
"x": 22
61-
},
62-
{
63-
"_id": 3,
64-
"x": 33
65-
}
66-
]
52+
}
53+
],
54+
"collection": {
55+
"name": "other_test_collection",
56+
"data": [
57+
{
58+
"_id": 2,
59+
"x": 22
60+
},
61+
{
62+
"_id": 3,
63+
"x": 33
6764
}
65+
]
6866
}
69-
]
70-
}
67+
}
68+
}
69+
]
70+
}
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{
2-
"data": [
3-
{
4-
"_id": 1,
5-
"x": 11
6-
},
7-
{
8-
"_id": 2,
9-
"x": 22
10-
},
11-
{
12-
"_id": 3,
13-
"x": 33
14-
}
15-
],
16-
"tests": [
17-
{
18-
"description": "Aggregate with multiple stages",
19-
"operation": {
20-
"arguments": {
21-
"batchSize": 2,
22-
"pipeline": [
23-
{
24-
"$sort": {
25-
"x": 1
26-
}
27-
},
28-
{
29-
"$match": {
30-
"_id": {
31-
"$gt": 1
32-
}
33-
}
34-
}
35-
]
36-
},
37-
"name": "aggregate"
38-
},
39-
"outcome": {
40-
"result": [
41-
{
42-
"_id": 2,
43-
"x": 22
44-
},
45-
{
46-
"_id": 3,
47-
"x": 33
48-
}
49-
]
2+
"data": [
3+
{
4+
"_id": 1,
5+
"x": 11
6+
},
7+
{
8+
"_id": 2,
9+
"x": 22
10+
},
11+
{
12+
"_id": 3,
13+
"x": 33
14+
}
15+
],
16+
"tests": [
17+
{
18+
"description": "Aggregate with multiple stages",
19+
"operation": {
20+
"name": "aggregate",
21+
"arguments": {
22+
"pipeline": [
23+
{
24+
"$sort": {
25+
"x": 1
26+
}
27+
},
28+
{
29+
"$match": {
30+
"_id": {
31+
"$gt": 1
32+
}
33+
}
5034
}
35+
],
36+
"batchSize": 2
5137
}
52-
]
53-
}
38+
},
39+
"outcome": {
40+
"result": [
41+
{
42+
"_id": 2,
43+
"x": 22
44+
},
45+
{
46+
"_id": 3,
47+
"x": 33
48+
}
49+
]
50+
}
51+
}
52+
]
53+
}
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"data": [
3-
{
4-
"_id": 1,
5-
"x": "PING"
2+
"data": [
3+
{
4+
"_id": 1,
5+
"x": "PING"
6+
}
7+
],
8+
"minServerVersion": "3.4",
9+
"tests": [
10+
{
11+
"description": "Count with collation",
12+
"operation": {
13+
"name": "count",
14+
"arguments": {
15+
"filter": {
16+
"x": "ping"
17+
},
18+
"collation": {
19+
"locale": "en_US",
20+
"strength": 2
21+
}
622
}
7-
],
8-
"minServerVersion": "3.4",
9-
"tests": [
10-
{
11-
"description": "Count with collation",
12-
"operation": {
13-
"arguments": {
14-
"collation": {
15-
"locale": "en_US",
16-
"strength": 2
17-
},
18-
"filter": {
19-
"x": "ping"
20-
}
21-
},
22-
"name": "count"
23-
},
24-
"outcome": {
25-
"result": 1
26-
}
27-
}
28-
]
29-
}
23+
},
24+
"outcome": {
25+
"result": 1
26+
}
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)