Skip to content

Commit

Permalink
PHPC-2188: Test that tlsDisableOCSPEndpointCheck is allowed in CSFLE …
Browse files Browse the repository at this point in the history
…options (#1402)
  • Loading branch information
alcaeus committed Feb 2, 2023
1 parent 43b5499 commit 2e27d1b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/clientEncryption/clientEncryption-ctor-002.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--TEST--
MongoDB\Driver\ClientEncryption::__construct(): Drivers MUST NOT error if tlsDisableOCSPEndpointCheck is set
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_libmongocrypt(); ?>
--FILE--
<?php

require_once __DIR__ . "/../utils/basic.inc";

$clientEncryption = new MongoDB\Driver\ClientEncryption([
'keyVaultClient' => create_test_manager(),
'keyVaultNamespace' => CSFLE_KEY_VAULT_NS,
'kmsProviders' => ['aws' => ['accessKeyId' => 'foo', 'secretAccessKey' => 'bar']],
'tlsOptions' => ['aws' => ['tlsDisableOCSPEndpointCheck' => true]],
]);

var_dump($clientEncryption);

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\ClientEncryption)#%d (%d) {
}
===DONE===

0 comments on commit 2e27d1b

Please sign in to comment.