Commit 8ea12f6d authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

Merge from branch 02_00_00 (r168726)

git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_01@168727 ae0415b3-e90b-0410-900d-d0be9363c56b
parents b2110ff8 633bd6e6
......@@ -166,6 +166,13 @@ do log:TEST "connect to unavailable port"
end
end
do log:TEST "password validator error"
local conn = OpenBusContext:createConnection(bushost, busport)
local ex = catcherr(conn.loginByPassword, conn, "error", "Oops!")
assert(ex._repid == idl.types.services.ServiceFailure)
assert(string.find(ex.message, "Oops!") ~= nil)
end
do log:TEST "connect to bus"
for i = 1, 2 do
conns[i] = assertlogoff(OpenBusContext:createConnection(bushost, busport))
......
......@@ -147,6 +147,13 @@ do log:TEST "connect to unavailable port"
end
end
do log:TEST "password validator error"
local conn = assistant.create{orb=orb, bushost=bushost, busport=busport}
local ex = catcherr(conn.loginByPassword, conn, "error", "Oops!")
assert(ex._repid == idl.types.services.ServiceFailure)
assert(string.find(ex.message, "Oops!") ~= nil)
end
do log:TEST "connect to bus"
for i = 1, 2 do
conns[i] = assertlogoff(assistant.create{orb=orb, bushost=bushost, busport=busport})
......
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