Commit d9d9f412 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-2703] (Lua) Indicar NO_PERMISION{UnknownBus} quando a aplicação...

[OPENBUS-2703] (Lua) Indicar NO_PERMISION{UnknownBus} quando a aplicação retornar uma conexão de um bus diferente da chamada no 'onCallDispatch'
- Ajuste dos testes para a API do OpenBus 2.1.


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@169930 ae0415b3-e90b-0410-900d-d0be9363c56b
parent aad3dcde
......@@ -31,7 +31,7 @@ local invalidate, shutdown, busid, caller do
local orb = openbus.initORB()
local OpenBusContext = orb.OpenBusContext
local conn = OpenBusContext:createConnection(bushost, busport)
conn:loginByPassword(admin, admpsw)
conn:loginByPassword(admin, admpsw, domain)
busid = conn.busid
caller = conn.login
OpenBusContext:setDefaultConnection(conn)
......@@ -109,7 +109,7 @@ end
do log:TEST("Default connection fallback")
local conn = OpenBusContext:createConnection(bushost, busport, connprops)
conn:loginByPassword(user, password)
conn:loginByPassword(user, password, domain)
OpenBusContext:setDefaultConnection(conn)
function OpenBusContext:onCallDispatch(bus, login, objkey, opname, ...)
......@@ -134,11 +134,11 @@ end
do log:TEST("Return connection to another bus")
local conn = OpenBusContext:createConnection(bushost, busport, connprops)
conn:loginByPassword(user, password)
conn:loginByPassword(user, password, domain)
OpenBusContext:setDefaultConnection(conn)
local conn2 = OpenBusContext:createConnection(bus2host, bus2port, connprops)
conn2:loginByPassword(user, password)
conn2:loginByPassword(user, password, domain)
function OpenBusContext:onCallDispatch(bus, login, objkey, opname, ...)
assert(bus == busid)
assert(login == caller.id)
......
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