Skip to content

Commit

Permalink
Add SSL Cipher for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jan 27, 2025
1 parent 679bb0c commit ac187ff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/DatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ public function testConnectionWithSSL() : void
protected function cipherStatus(Database $database) : void
{
$status = $database->query("SHOW STATUS LIKE 'ssl_cipher'")->fetchArray();
if (\getenv('DB_IMAGE') === 'mysql') {
self::assertSame([
'Variable_name' => 'Ssl_cipher',
'Value' => 'TLS_AES_128_GCM_SHA256',
], $status);
return;
}
self::assertSame([
'Variable_name' => 'Ssl_cipher',
'Value' => 'TLS_AES_256_GCM_SHA384',
Expand Down

0 comments on commit ac187ff

Please sign in to comment.