mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
feature #1288: Update AuthManager tests
This commit is contained in:
parent
9361376e90
commit
20969b3375
@ -65,7 +65,7 @@ public:
|
||||
|
||||
t->get("AUTH_MAD", am_mads);
|
||||
|
||||
return new AuthManager(1,3,am_mads);
|
||||
return new AuthManager(1,am_mads);
|
||||
};
|
||||
};
|
||||
|
||||
@ -144,7 +144,7 @@ public:
|
||||
/* ********************************************************************* */
|
||||
/* ********************************************************************* */
|
||||
|
||||
//This test needs a driver that takes more than 3 secs to AUTHENTICATE
|
||||
//This test needs a driver that takes more than 90 secs to AUTHENTICATE
|
||||
void timeout()
|
||||
{
|
||||
AuthRequest ar(2, 2);
|
||||
@ -157,8 +157,6 @@ public:
|
||||
|
||||
CPPUNIT_ASSERT(ar.result==false);
|
||||
CPPUNIT_ASSERT(ar.timeout==true);
|
||||
|
||||
am->discard_request(ar.id);
|
||||
}
|
||||
|
||||
void authenticate()
|
||||
|
@ -45,4 +45,6 @@ env.Prepend(LIBS=[
|
||||
'crypto'
|
||||
])
|
||||
|
||||
env.Program('test','AuthManagerTest.cc')
|
||||
nt = env.Object('NebulaTemplate.o','../../nebula/NebulaTemplate.cc')
|
||||
|
||||
env.Program('test',[nt,'AuthManagerTest.cc'])
|
||||
|
@ -36,7 +36,7 @@ do
|
||||
"AUTHENTICATE")
|
||||
date 1>&2 >> mad.log
|
||||
if [ "$ARG4" = "timeout" ] ; then
|
||||
sleep 4
|
||||
sleep 95
|
||||
fi
|
||||
date 1>&2 >> mad.log
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user