diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-05-05 15:52:01 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-05-05 15:52:01 -0230 |
commit | b61582b1c6b16be4339aa0bded3ad8f542a01df9 (patch) | |
tree | 2040386a942217e2412e48c1e56465817ecac3d5 /ruby/test | |
parent | Missing export declarations (diff) | |
download | ice-b61582b1c6b16be4339aa0bded3ad8f542a01df9.tar.bz2 ice-b61582b1c6b16be4339aa0bded3ad8f542a01df9.tar.xz ice-b61582b1c6b16be4339aa0bded3ad8f542a01df9.zip |
ICE-6471 Add support for IceSSL endpoint/connection info to Python/Ruby/PHP
Diffstat (limited to 'ruby/test')
-rw-r--r-- | ruby/test/Ice/info/AllTests.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ruby/test/Ice/info/AllTests.rb b/ruby/test/Ice/info/AllTests.rb index a2ca97ba20f..8f66870a57d 100644 --- a/ruby/test/Ice/info/AllTests.rb +++ b/ruby/test/Ice/info/AllTests.rb @@ -30,9 +30,9 @@ def allTests(communicator) (ipEndpoint.type() == Ice::WSEndpointType && !ipEndpoint.secure()) || (ipEndpoint.type() == Ice::WSSEndpointType && ipEndpoint.secure())) test((ipEndpoint.type() == Ice::TCPEndpointType && ipEndpoint.is_a?(Ice::TCPEndpointInfo)) || - (ipEndpoint.type() == Ice::SSLEndpointType) || + (ipEndpoint.type() == Ice::SSLEndpointType && ipEndpoint.is_a?(Ice::SSLEndpointInfo)) || (ipEndpoint.type() == Ice::WSEndpointType && ipEndpoint.is_a?(Ice::WSEndpointInfo)) || - (ipEndpoint.type() == Ice::WSSEndpointType)) + (ipEndpoint.type() == Ice::WSSEndpointType && ipEndpoint.is_a?(Ice::WSSEndpointInfo))) udpEndpoint = endps[1].getInfo() test(udpEndpoint.is_a?(Ice::UDPEndpointInfo)); @@ -102,8 +102,9 @@ def allTests(communicator) test(ctx["remotePort"] == info.localPort.to_s()) test(ctx["localPort"] == info.remotePort.to_s()) - if base.ice_getConnection().type() == "ws" - test(info.is_a?(Ice::WSConnectionInfo)) + if base.ice_getConnection().type() == "ws" || base.ice_getConnection().type() == "wss" + test((base.ice_getConnection().type() == "ws" && info.is_a?(Ice::WSConnectionInfo)) || + (base.ice_getConnection().type() == "wss" && info.is_a?(Ice::WSSConnectionInfo))) test(info.headers["Upgrade"] == "websocket") test(info.headers["Connection"] == "Upgrade") |