1
0
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:
Ruben S. Montero 2012-06-01 11:58:24 +02:00
parent 9361376e90
commit 20969b3375
3 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -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'])

View File

@ -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