Sha256: 3fe580e82c669d9b7a6b25cc112fbe910e8e88640409eb339757f26443fd7305

Contents?: true

Size: 1.25 KB

Versions: 18

Compression:

Stored size: 1.25 KB

Contents

@bunny
Feature: Controlling requeue on message nack
  You can control whether or not a message is requeued when you nack the message.
  Exact behavior when requeue is false is specific to your broker's setup.

  Background:
    Given I am connected to the broker
    And I have a destination :source_queue
    And I have the following messages on :source_queue
      | body         |
      | Test Message |

  Scenario: Requeue by default
    When I execute the following code
    """ruby
    message = MessageDriver::Client.pop_message(:source_queue, client_ack: true)
    message.nack
    """

    Then I expect to find the following message on :source_queue
      | body         |
      | Test Message |


  Scenario: Requeue is true
    When I execute the following code
    """ruby
    message = MessageDriver::Client.pop_message(:source_queue, client_ack: true)
    message.nack(requeue: true)
    """

    Then I expect to find the following message on :source_queue
      | body         |
      | Test Message |


  Scenario: Requeue is false
    When I execute the following code
    """ruby
    message = MessageDriver::Client.pop_message(:source_queue, client_ack: true)
    message.nack(requeue: false)
    """

    Then I expect to find no messages on :source_queue

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
message-driver-1.0.1 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-1.0.0 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.7.2 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.7.1 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.7.0 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.6.1 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.6.0 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.5.3 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.5.2 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.5.1 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.5.0 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.4.0 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.3.0 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.2.2 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.2.1 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.2.0 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.2.0.rc2 features/amqp_specific_features/requeueing_on_nack.feature
message-driver-0.2.0.rc1 features/amqp_specific_features/requeueing_on_nack.feature