diff --git a/.evergreen/atlas-uris.txt.enc b/.evergreen/atlas-uris.txt.enc index da004296b..664fb5740 100644 Binary files a/.evergreen/atlas-uris.txt.enc and b/.evergreen/atlas-uris.txt.enc differ diff --git a/tests/atlas.phpt b/tests/atlas.phpt index c9542c2f7..cf069e555 100644 --- a/tests/atlas.phpt +++ b/tests/atlas.phpt @@ -10,18 +10,24 @@ if (getenv('TESTS') !== 'tests/atlas.phpt') { echo "skip Atlas tests not wanted\ 1]); +$command = new \MongoDB\Driver\Command(['ping' => 1]); $query = new \MongoDB\Driver\Query([]); foreach ($urls as $url) { $url = trim($url); + if ($url == '') { continue; } + if (strpos($url, '#') === 0) { + echo trim(substr($url, 1)), "\n"; + continue; + } + try { $m = new \MongoDB\Driver\Manager($url); - $m->executeCommand('admin', $isMasterCmd); + $m->executeCommand('admin', $command); iterator_to_array($m->executeQuery('test.test', $query)); echo "PASS\n"; } catch(Exception $e) { @@ -32,16 +38,22 @@ foreach ($urls as $url) { ===DONE=== --EXPECTF-- +Atlas replica set (3.4) PASS PASS +Atlas sharded cluster (3.4) PASS PASS +Atlas free tier replica set (4.4) PASS PASS +Atlas with only TLSv1.1 enabled (3.4) PASS PASS +Atlas with only TLSv1.2 enabled (3.4) PASS PASS +Atlas with only TLSv1.2 enabled (3.4) and bad credentials FAIL: %s FAIL: %s ===DONE===