Skip to content

Commit d92e223

Browse files
Merge v1.x into v2.0 (#1709)
2 parents aeb5e4b + eb393f1 commit d92e223

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/SpecTests/ClientSideEncryptionSpecTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ public function testCustomEndpoint(Closure $test): void
762762
'kmsProviders' => [
763763
'azure' => Context::getAzureCredentials() + ['identityPlatformEndpoint' => 'doesnotexist.invalid:443'],
764764
'gcp' => Context::getGCPCredentials() + ['endpoint' => 'doesnotexist.invalid:443'],
765-
'kmip' => ['endpoint' => 'doesnotexist.local:5698'],
765+
'kmip' => ['endpoint' => 'doesnotexist.invalid:5698'],
766766
],
767767
'tlsOptions' => [
768768
'kmip' => Context::getKmsTlsOptions(),
@@ -810,9 +810,9 @@ static function (self $test, ClientEncryption $clientEncryption, ClientEncryptio
810810
];
811811

812812
yield 'Test 4' => [
813-
static function (self $test, ClientEncryption $clientEncryption, ClientEncryption $clientEncryptionInvalid) use ($awsMasterKey): void {
813+
static function (self $test, ClientEncryption $clientEncryption, ClientEncryption $clientEncryptionInvalid) use ($kmipMasterKey): void {
814814
$test->expectException(ConnectionException::class);
815-
$clientEncryption->createDataKey('aws', ['masterKey' => $awsMasterKey + ['endpoint' => 'kms.us-east-1.amazonaws.com:12345']]);
815+
$clientEncryption->createDataKey('kmip', ['masterKey' => $kmipMasterKey + ['endpoint' => 'localhost:12345']]);
816816
},
817817
];
818818

@@ -873,7 +873,7 @@ static function (self $test, ClientEncryption $clientEncryption, ClientEncryptio
873873
$test->assertSame('test', $clientEncryption->decrypt($encrypted));
874874

875875
$test->expectException(RuntimeException::class);
876-
$test->expectExceptionMessageMatches('#doesnotexist.local#');
876+
$test->expectExceptionMessageMatches('#doesnotexist.invalid#');
877877
$clientEncryptionInvalid->createDataKey('kmip', ['masterKey' => $kmipMasterKey]);
878878
},
879879
];
@@ -890,10 +890,10 @@ static function (self $test, ClientEncryption $clientEncryption, ClientEncryptio
890890

891891
yield 'Test 12' => [
892892
static function (self $test, ClientEncryption $clientEncryption, ClientEncryption $clientEncryptionInvalid) use ($kmipMasterKey): void {
893-
$kmipMasterKey['endpoint'] = 'doesnotexist.local:5698';
893+
$kmipMasterKey['endpoint'] = 'doesnotexist.invalid:5698';
894894

895895
$test->expectException(RuntimeException::class);
896-
$test->expectExceptionMessageMatches('#doesnotexist.local#');
896+
$test->expectExceptionMessageMatches('#doesnotexist.invalid#');
897897
$clientEncryption->createDataKey('kmip', ['masterKey' => $kmipMasterKey]);
898898
},
899899
];

0 commit comments

Comments
 (0)