incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasanna Santhanam <>
Subject Re: unit tests for api/src/com/cloud/agent/api
Date Thu, 20 Sep 2012 14:00:16 GMT
> > We can speed up the tests. Just never got to have marvin drive
> > everything asynchronously.It's been on my TODO list forever now as
> > have the API tests. I for one would be extremely happy to see some.
> I am gonna look into the speed up. Where you thinking of threading
> it or using nose which seems to support multiprocess out of the box
> ?

Thanks Sebastien -

The threading model should split each functional test ie
cloudstackTestCase to go in a different thread. We need to ensure that
the API requests inside each test itself goes synchronously because
they depend on the respnonses from the prev. request.

nosetests with the multiprocess plugin I thought would fix this. For
some reason urllib fails when run through this plugin. Guess urllib
itself seems to have issues with reentrant code like this.

We can replace urllib with something threadsafe and retry the
multiprocess plugin too. You could look at also where
some threading implementation exist which could probably be salvaged.


View raw message