ruby-amqp / rabbitmq_http_api_client

RabbitMQ HTTP API client for Ruby
MIT License
79 stars 49 forks source link

Add support for if-unused and if-empty for delete_queue #62

Closed shashankmehra closed 8 months ago

shashankmehra commented 8 months ago

From HTTP API docs

When DELETEing a queue you can add the query string parameters if-empty=true and / or if-unused=true. These prevent the delete from succeeding if the queue contains messages, or has consumers, respectively.

This PR adds supports for providing these query parameters and the tests to confirm the behaviour.

michaelklishin commented 8 months ago

According to the diff, this PR does modify some existing tests and that's it.

michaelklishin commented 8 months ago

Hm, now I see more recent changes, not sure what happened to the Files changes tab.

michaelklishin commented 8 months ago

Thank you!