Skip to content

Commit ac5b15c

Browse files
committed
PHPC-1835: Rotate credentials for Atlas connectivity tests
This corresponds with a change to the project's Evergreen config to rotate keys for decrypting atlas-uris.txt.enc. Additionally, this adds comments atlas-uris.txt and atlas.phpt test output for improved readability.
1 parent 8cd2111 commit ac5b15c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.evergreen/atlas-uris.txt.enc

272 Bytes
Binary file not shown.

tests/atlas.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ $query = new \MongoDB\Driver\Query([]);
1515

1616
foreach ($urls as $url) {
1717
$url = trim($url);
18+
1819
if ($url == '') {
1920
continue;
2021
}
2122

23+
if (strpos($url, '#') === 0) {
24+
echo trim(substr($url, 1)), "\n";
25+
continue;
26+
}
27+
2228
try {
2329
$m = new \MongoDB\Driver\Manager($url);
2430
$m->executeCommand('admin', $command);
@@ -32,16 +38,22 @@ foreach ($urls as $url) {
3238
===DONE===
3339
<?php exit(0); ?>
3440
--EXPECTF--
41+
Atlas replica set (3.4)
3542
PASS
3643
PASS
44+
Atlas sharded cluster (3.4)
3745
PASS
3846
PASS
47+
Atlas free tier replica set (4.4)
3948
PASS
4049
PASS
50+
Atlas with only TLSv1.1 enabled (3.4)
4151
PASS
4252
PASS
53+
Atlas with only TLSv1.2 enabled (3.4)
4354
PASS
4455
PASS
56+
Atlas with only TLSv1.2 enabled (3.4) and bad credentials
4557
FAIL: %s
4658
FAIL: %s
4759
===DONE===

0 commit comments

Comments
 (0)