File tree Expand file tree Collapse file tree 3 files changed +76
-0
lines changed
scripts/presets/travis/replica_sets Expand file tree Collapse file tree 3 files changed +76
-0
lines changed Original file line number Diff line number Diff 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_AUTH)
27+ ${TRAVIS_BUILD_DIR} /.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR} /scripts/presets/travis/replica_sets/replicaset-auth.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_auth_uri;' > /tmp/uri.txt
29+ ;;
2630 REPLICASET_OLD)
2731 ${TRAVIS_BUILD_DIR} /.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR} /scripts/presets/travis/replica_sets/replicaset-old.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
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ matrix:
3333 - php : 7.2
3434 env :
3535 - DEPLOYMENT=REPLICASET
36+ - php : 7.2
37+ env :
38+ - DEPLOYMENT=REPLICASET_AUTH
3639 - php : 7.2
3740 env :
3841 - SERVER_VERSION=3.0.15
Original file line number Diff line number Diff line change 1+ {
2+ "id" : " REPLICASET_AUTH" ,
3+ "name" : " mongod" ,
4+ "auth_key" : " secret" ,
5+ "login" : " root" ,
6+ "password" : " toor" ,
7+ "members" : [
8+ {
9+ "procParams" : {
10+ "dbpath" : " /tmp/REPLICASET/3010/" ,
11+ "ipv6" : true ,
12+ "logappend" : true ,
13+ "logpath" : " /tmp/REPLICASET/3010/mongod.log" ,
14+ "journal" : true ,
15+ "nssize" : 1 ,
16+ "port" : 3010 ,
17+ "bind_ip_all" : true ,
18+ "smallfiles" : true
19+ },
20+ "rsParams" : {
21+ "priority" : 99 ,
22+ "tags" : {
23+ "ordinal" : " one" ,
24+ "dc" : " pa"
25+ }
26+ },
27+ "server_id" : " RS-AUTH-one"
28+ },
29+ {
30+ "procParams" : {
31+ "dbpath" : " /tmp/REPLICASET/3011/" ,
32+ "ipv6" : true ,
33+ "logappend" : true ,
34+ "logpath" : " /tmp/REPLICASET/3011/mongod.log" ,
35+ "journal" : true ,
36+ "nssize" : 1 ,
37+ "port" : 3011 ,
38+ "bind_ip_all" : true ,
39+ "smallfiles" : true
40+ },
41+ "rsParams" : {
42+ "priority" : 1.1 ,
43+ "tags" : {
44+ "ordinal" : " two" ,
45+ "dc" : " nyc"
46+ }
47+ },
48+ "server_id" : " RS-AUTH-two"
49+ },
50+ {
51+ "procParams" : {
52+ "dbpath" : " /tmp/REPLICASET/3012/" ,
53+ "ipv6" : true ,
54+ "logappend" : true ,
55+ "logpath" : " /tmp/REPLICASET/3012/mongod.log" ,
56+ "journal" : true ,
57+ "nssize" : 1 ,
58+ "port" : 3012 ,
59+ "bind_ip_all" : true ,
60+ "smallfiles" : true
61+ },
62+ "rsParams" : {
63+ "arbiterOnly" : true
64+
65+ },
66+ "server_id" : " RS-AUTH-arbiter"
67+ }
68+ ]
69+ }
You can’t perform that action at this time.
0 commit comments