arempe93 / bunny-mock

A mock client for RabbitMQ modeled after the Bunny client in ruby
http://www.rubydoc.info/github/arempe93/bunny-mock
MIT License
44 stars 37 forks source link

Add ack and nack support #30

Closed dwhenry closed 7 years ago

dwhenry commented 7 years ago

This adds support for Issue https://github.com/arempe93/bunny-mock/issues/18.

This adds tracking of messages via delivery_tag (incrementing Integer) when subscribing with manual_ack: true.

The current state of messages, as well as the details required to requeue them are stored on the channel and can be accessed from channel.acknowledgement_state.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 646e4946649ef7d304c7935a3cd8dfc1aee0f8fe on dwhenry:add-ack-and-nack-support into 09b5cb735f26c87d63664816d46247767e914b94 on arempe93:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 606172ec31a3f4440c40d9f7fac8eb70f72a3a90 on dwhenry:add-ack-and-nack-support into 09b5cb735f26c87d63664816d46247767e914b94 on arempe93:master.