zaqar/marconi/tests
Alejandro Cabrera ed40dfd17c fix(storage/mongo): unclaimed messages not listed
Adds a unit test that reproduces this error and applies the fix.

The fix is subtle. When messages are unclaimed, their claim expiration
time and claim ID are set to 0 and None respectively. The cause for
the bug is that claim expiration time is set to 0, rather than a valid
datetime object. As a result, the comparison silently fails.

The fix: fast-forward the expiration time of a claim to now.

Change-Id: I7781795c394b2a471012e072a522ee228d56a894
Closes-Bug: #1210633
2013-08-12 16:09:31 -04:00
..
common Added some de-facto style guidelines to HACKING and fixed violations 2013-06-17 09:58:30 -04:00
etc feat(validation): validate user input 2013-08-12 09:32:56 -04:00
storage Add "total", "oldest" and "newest" to queue stats 2013-08-09 15:12:12 +00:00
system Update tests to reflect http 201 on Post Claim 2013-08-09 11:31:50 -04:00
transport fix(storage/mongo): unclaimed messages not listed 2013-08-12 16:09:31 -04:00
util feat(api): GET and HEAD methods on queue 2013-08-06 11:53:21 -04:00
__init__.py doc: Make file headings consistent, and update docstrings per the proposed HACKING guide 2013-03-05 16:45:52 -05:00
test_bootstrap.py Replace gunicorn with wsgiref 2013-06-10 16:46:26 +02:00
test_config.py Added some de-facto style guidelines to HACKING and fixed violations 2013-06-17 09:58:30 -04:00