Skip to content

Commit 2e27d1b

Browse files
authored
PHPC-2188: Test that tlsDisableOCSPEndpointCheck is allowed in CSFLE options (#1402)
1 parent 43b5499 commit 2e27d1b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
--TEST--
2+
MongoDB\Driver\ClientEncryption::__construct(): Drivers MUST NOT error if tlsDisableOCSPEndpointCheck is set
3+
--SKIPIF--
4+
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5+
<?php skip_if_not_libmongocrypt(); ?>
6+
--FILE--
7+
<?php
8+
9+
require_once __DIR__ . "/../utils/basic.inc";
10+
11+
$clientEncryption = new MongoDB\Driver\ClientEncryption([
12+
'keyVaultClient' => create_test_manager(),
13+
'keyVaultNamespace' => CSFLE_KEY_VAULT_NS,
14+
'kmsProviders' => ['aws' => ['accessKeyId' => 'foo', 'secretAccessKey' => 'bar']],
15+
'tlsOptions' => ['aws' => ['tlsDisableOCSPEndpointCheck' => true]],
16+
]);
17+
18+
var_dump($clientEncryption);
19+
20+
?>
21+
===DONE===
22+
<?php exit(0); ?>
23+
--EXPECTF--
24+
object(MongoDB\Driver\ClientEncryption)#%d (%d) {
25+
}
26+
===DONE===

0 commit comments

Comments
 (0)