File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,24 @@ if (getenv('TESTS') !== 'tests/atlas.phpt') { echo "skip Atlas tests not wanted\
10
10
<?php
11
11
$ urls = explode ("\n" , file_get_contents ('.evergreen/atlas-uris.txt ' ));
12
12
13
- $ isMasterCmd = new \MongoDB \Driver \Command (['isMaster ' => 1 ]);
13
+ $ command = new \MongoDB \Driver \Command (['ping ' => 1 ]);
14
14
$ query = new \MongoDB \Driver \Query ([]);
15
15
16
16
foreach ($ urls as $ url ) {
17
17
$ url = trim ($ url );
18
+
18
19
if ($ url == '' ) {
19
20
continue ;
20
21
}
21
22
23
+ if (strpos ($ url , '# ' ) === 0 ) {
24
+ echo trim (substr ($ url , 1 )), "\n" ;
25
+ continue ;
26
+ }
27
+
22
28
try {
23
29
$ m = new \MongoDB \Driver \Manager ($ url );
24
- $ m ->executeCommand ('admin ' , $ isMasterCmd );
30
+ $ m ->executeCommand ('admin ' , $ command );
25
31
iterator_to_array ($ m ->executeQuery ('test.test ' , $ query ));
26
32
echo "PASS \n" ;
27
33
} catch (Exception $ e ) {
@@ -32,16 +38,22 @@ foreach ($urls as $url) {
32
38
===DONE===
33
39
<?php exit (0 ); ?>
34
40
--EXPECTF--
41
+ Atlas replica set (3.4)
35
42
PASS
36
43
PASS
44
+ Atlas sharded cluster (3.4)
37
45
PASS
38
46
PASS
47
+ Atlas free tier replica set (4.4)
39
48
PASS
40
49
PASS
50
+ Atlas with only TLSv1.1 enabled (3.4)
41
51
PASS
42
52
PASS
53
+ Atlas with only TLSv1.2 enabled (3.4)
43
54
PASS
44
55
PASS
56
+ Atlas with only TLSv1.2 enabled (3.4) and bad credentials
45
57
FAIL: %s
46
58
FAIL: %s
47
59
===DONE===
You can’t perform that action at this time.
0 commit comments