Sha256: 5c7e0e9453649a3b2554a504a70c90d68c45f8fb8257914fb31891f8494efa26

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

Feature: Message Filtering
  In order to save time and prevent lots of typing
  As a RosettaQueue user
  I want to be able to define filters for processing all of my messages


  Scenario Outline: receiving filter
    Given RosettaQueue is configured for '<Adapter>'
    And a destination is set with queue '<Queue>' and queue address '<QueueAddress>'
    And a receiving filter is defined to prepend 'Foo' to all messages
    And the message 'Hello World' is published to queue '<Queue>'
    When the message on '<Queue>' is consumed
    Then the consumed message should equal "Foo Hello World"

    Examples:
    | Adapter     | Queue    |  QueueAddress  |
    | amqp_synch  | foo      |  queue.foo     |
    | stomp       | foo      |  /queue/foo    |

  Scenario Outline: sending filter
    Given RosettaQueue is configured for '<Adapter>'
    And a destination is set with queue '<Queue>' and queue address '<QueueAddress>'
    And a sending filter is defined to prepend 'Foo' to all messages
    And the message 'Hello World' is published to queue '<Queue>'
    When the message on '<Queue>' is consumed
    Then the consumed message should equal "Foo Hello World"

    Examples:
    | Adapter     | Queue    |  QueueAddress  |
    | amqp_synch  | foo      |  queue.foo     |
    | stomp       | foo      |  /queue/foo    |

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
bmabey-rosetta_queue-0.3.3 features/filtering.feature
rosetta_queue-0.5.2 features/filtering.feature
rosetta_queue-0.5.0 features/filtering.feature
rosetta_queue-0.4.0 features/filtering.feature