Commit 00bc2d8e authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-2535] Adicionar suporte SSL no núcleo do barramento

- Ajuste para funcionar quando SSL não está habilitado.


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@159924 ae0415b3-e90b-0410-900d-d0be9363c56b
parent de67b95a
......@@ -157,7 +157,7 @@ do log:TEST "connect to unavailable host"
local conn = OpenBusContext:connectByAddress("unavailable", busport)
for op, params in pairs(loginways) do
local ex = catcherr(conn[op], conn, params())
if orbcfg.options.security == "required" then
if orbcfg and orbcfg.options.security == "required" then
assert(ex._repid == sysex.NO_PERMISSION)
assert(ex.completed == "COMPLETED_NO")
else
......@@ -171,7 +171,7 @@ do log:TEST "connect to unavailable port"
local conn = OpenBusContext:connectByAddress(bushost, 0)
for op, params in pairs(loginways) do
local ex = catcherr(conn[op], conn, params())
if orbcfg.options.security == "required" then
if orbcfg and orbcfg.options.security == "required" then
assert(ex._repid == sysex.NO_PERMISSION)
assert(ex.completed == "COMPLETED_NO")
else
......
......@@ -136,7 +136,7 @@ do log:TEST "connect to unavailable host"
local conn = assistant.create{orb=orb, bushost="unavailable", busport=busport}
for op, params in pairs(loginways) do
local ex = catcherr(conn[op], conn, params())
if orbcfg.options.security == "required" then
if orbcfg and orbcfg.options.security == "required" then
assert(ex._repid == sysex.NO_PERMISSION)
assert(ex.completed == "COMPLETED_NO")
else
......@@ -150,7 +150,7 @@ do log:TEST "connect to unavailable port"
local conn = assistant.create{orb=orb, bushost=bushost, busport=0}
for op, params in pairs(loginways) do
local ex = catcherr(conn[op], conn, params())
if orbcfg.options.security == "required" then
if orbcfg and orbcfg.options.security == "required" then
assert(ex._repid == sysex.NO_PERMISSION)
assert(ex.completed == "COMPLETED_NO")
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment