abhgupta/origin-server — pull request #10 by liggitt (2014-04-18 05:15:36+00:00)
Title: Add run_jobs tests, fix timeout query

Added tests for teams and domains for the following scenarios:
* multiple ops run in sequence
* failed ops gets put back in init state and retried on next run
* ops do not get run from multiple threads
* a running op blocks later ops
* a timed out op gets retried
* a completed op gets removed and execution proceeds

The timeout test exposed a problem with the $lt query... apparently, the mongoid symbol decoration doesn't work for subdocument conditions