Sha256: 2c19e12a1a39fb694e8ed2471d63d2f9f53739e7b7cb207e63338bde2225d9bb

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

@bunny
@read_queues_directly
Feature: Server-Named Destinations
  AMQP brokers allow you to create queues that are named by the server. Here's
  how you do it with message_driver.

  Scenario: Creating a server-named queue
    I expect my destination to have the queue name given to it by the server

    Given I am connected to the broker

    When I execute the following code
    """ruby
    destination = MessageDriver::Client.dynamic_destination("", exclusive: true)
    expect(destination.name).to_not be_empty
    """

    Then I expect to have no errors

  Scenario: sending and receiving messages through a server-named queue
    Given the following broker configuration
    """ruby
    MessageDriver::Broker.define do |b|
      b.destination :my_queue, "", exclusive: true
    end
    """

    When I execute the following code
    """ruby
    publish(:my_queue, "server-named queue message")
    """

    Then I expect to find the following message on :my_queue
      | body                       |
      | server-named queue message |

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
message-driver-1.0.1 features/amqp_specific_features/server_named_destinations.feature
message-driver-1.0.0 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.7.2 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.7.1 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.7.0 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.6.1 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.6.0 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.5.3 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.5.2 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.5.1 features/amqp_specific_features/server_named_destinations.feature
message-driver-0.5.0 features/amqp_specific_features/server_named_destinations.feature