Skip to content

Commit f7b5af4

Browse files
author
Christian Höltje
committed
Mysql SSL test: Needs to verify it is using ssl
The MySQL SSL test was not actually testing that SSL was enabled. It was previously only detecting if SSL was enabled on the Server.
1 parent 8c8e91b commit f7b5af4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/mysql2/client_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ def connect *args
8181
results = ssl_client.query("SHOW STATUS WHERE Variable_name = \"Ssl_version\" OR Variable_name = \"Ssl_cipher\"").to_a
8282
results[0]['Variable_name'].should eql('Ssl_cipher')
8383
results[0]['Value'].should_not be_nil
84-
results[0]['Value'].class.should eql(String)
84+
results[0]['Value'].should be_kind_of(String)
85+
results[0]['Value'].should_not be_empty
8586

8687
results[1]['Variable_name'].should eql('Ssl_version')
8788
results[1]['Value'].should_not be_nil
88-
results[1]['Value'].class.should eql(String)
89+
results[1]['Value'].should be_kind_of(String)
90+
results[1]['Value'].should_not be_empty
8991
end
9092

9193
it "should respond to #close" do

0 commit comments

Comments
 (0)