Skip to content

Commit 99383ba

Browse files
committed
Merged pull request #887
2 parents 1ded6fb + e272bb5 commit 99383ba

Some content is hidden

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

41 files changed

+132
-26
lines changed

.travis.scripts/setup_mo.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ case $DEPLOYMENT in
2323
${TRAVIS_BUILD_DIR}/.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR}/scripts/presets/travis/replica_sets/replicaset.json start > /tmp/mo-result.json
2424
cat /tmp/mo-result.json | tail -n 1 | php -r 'echo json_decode(file_get_contents("php://stdin"))->mongodb_uri;' > /tmp/uri.txt
2525
;;
26+
REPLICASET_OLD)
27+
${TRAVIS_BUILD_DIR}/.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR}/scripts/presets/travis/replica_sets/replicaset-old.json start > /tmp/mo-result.json
28+
cat /tmp/mo-result.json | tail -n 1 | php -r 'echo json_decode(file_get_contents("php://stdin"))->mongodb_uri;' > /tmp/uri.txt
29+
;;
2630
*)
2731
${TRAVIS_BUILD_DIR}/.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR}/scripts/presets/travis/standalone/standalone.json start > /tmp/mo-result.json
2832
cat /tmp/mo-result.json | tail -n 1 | php -r 'echo json_decode(file_get_contents("php://stdin"))->mongodb_uri;' > /tmp/uri.txt

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ matrix:
3333
- php: 7.2
3434
env:
3535
- DEPLOYMENT=REPLICASET
36+
- php: 7.2
37+
env:
38+
- SERVER_VERSION=3.0.15
39+
- DEPLOYMENT=REPLICASET_OLD
3640
- php: 7.0
3741
env:
3842
- SERVER_VERSION=3.0.15
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"id": "REPLICASET_OLD",
3+
"name": "mongod",
4+
"members": [
5+
{
6+
"procParams": {
7+
"dbpath": "/tmp/REPLICASET/3500/",
8+
"ipv6": true,
9+
"logappend": true,
10+
"logpath": "/tmp/REPLICASET/3500/mongod.log",
11+
"journal": true,
12+
"nssize": 1,
13+
"port": 3500,
14+
"bind_ip": "::,0.0.0.0",
15+
"smallfiles": true
16+
},
17+
"rsParams": {
18+
"priority": 99,
19+
"tags": {
20+
"ordinal": "one",
21+
"dc": "pa"
22+
}
23+
},
24+
"server_id": "RS-OLD-one"
25+
},
26+
{
27+
"procParams": {
28+
"dbpath": "/tmp/REPLICASET/3501/",
29+
"ipv6": true,
30+
"logappend": true,
31+
"logpath": "/tmp/REPLICASET/3501/mongod.log",
32+
"journal": true,
33+
"nssize": 1,
34+
"port": 3501,
35+
"bind_ip": "::,0.0.0.0",
36+
"smallfiles": true
37+
},
38+
"rsParams": {
39+
"priority": 1.1,
40+
"tags": {
41+
"ordinal": "two",
42+
"dc": "nyc"
43+
}
44+
},
45+
"server_id": "RS-OLD-two"
46+
},
47+
{
48+
"procParams": {
49+
"dbpath": "/tmp/REPLICASET/3502/",
50+
"ipv6": true,
51+
"logappend": true,
52+
"logpath": "/tmp/REPLICASET/3502/mongod.log",
53+
"journal": true,
54+
"nssize": 1,
55+
"port": 3502,
56+
"bind_ip": "::,0.0.0.0",
57+
"smallfiles": true
58+
},
59+
"rsParams": {
60+
"arbiterOnly": true
61+
62+
},
63+
"server_id": "RS-OLD-arbiter"
64+
}
65+
]
66+
}

tests/causal-consistency/causal-consistency-001.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Causal consistency: new session has no operation time
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_libmongoc_crypto(); ?>
66
<?php skip_if_not_replica_set(); ?>
7+
<?php skip_if_server_version('<', '3.6'); ?>
78
--FILE--
89
<?php
910
require_once __DIR__ . "/../utils/basic.inc";

tests/causal-consistency/causal-consistency-002.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Causal consistency: first read in session does not include afterClusterTime
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_libmongoc_crypto(); ?>
66
<?php skip_if_not_replica_set(); ?>
7+
<?php skip_if_server_version('<', '3.6'); ?>
78
--FILE--
89
<?php
910
require_once __DIR__ . "/../utils/basic.inc";

tests/causal-consistency/causal-consistency-003.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Causal consistency: first read or write in session updates operationTime
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_libmongoc_crypto(); ?>
66
<?php skip_if_not_replica_set(); ?>
7+
<?php skip_if_server_version('<', '3.6'); ?>
78
<?php skip_if_not_clean(); ?>
89
--FILE--
910
<?php

tests/causal-consistency/causal-consistency-004.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Causal consistency: first read or write in session updates operationTime (even o
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_libmongoc_crypto(); ?>
66
<?php skip_if_not_replica_set(); ?>
7+
<?php skip_if_server_version('<', '3.6'); ?>
78
<?php skip_if_not_clean(); ?>
89
--FILE--
910
<?php

tests/causal-consistency/causal-consistency-005.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Causal consistency: second read's afterClusterTime uses last reply's operationTi
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_libmongoc_crypto(); ?>
66
<?php skip_if_not_replica_set(); ?>
7+
<?php skip_if_server_version('<', '3.6'); ?>
78
<?php skip_if_not_clean(); ?>
89
--FILE--
910
<?php

tests/causal-consistency/causal-consistency-006.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Causal consistency: second read's afterClusterTime uses last reply's operationTi
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_libmongoc_crypto(); ?>
66
<?php skip_if_not_replica_set(); ?>
7+
<?php skip_if_server_version('<', '3.6'); ?>
78
<?php skip_if_not_clean(); ?>
89
--FILE--
910
<?php

tests/causal-consistency/causal-consistency-007.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Causal consistency: reads in non-causally consistent session never include after
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_libmongoc_crypto(); ?>
66
<?php skip_if_not_replica_set(); ?>
7+
<?php skip_if_server_version('<', '3.6'); ?>
78
--FILE--
89
<?php
910
require_once __DIR__ . "/../utils/basic.inc";

0 commit comments

Comments
 (0)