Sha256: abbf6f285a4eebd7d226804b50a7d42e1fb55b0a6845b8604b304c9ff3df2463

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

require "integration/test_helper"

describe "Creating a Queue" do

  after do
    ServiceBusQueueNameHelper.clean
  end

  it "should be able to create a new queue" do
    properties = {
      'LockDuration' => 'PT30S',
      'DefaultMessageTimeToLive' => 'P10675199DT2H48M5.4775807S',
      'DuplicateDetectionHistoryTimeWindow' => 'PT10M',
      'MaxSizeInMegabytes' => 1,
      'RequiresDuplicateDetection' => true,
      'RequiresSession' => false,
      'DeadLetteringOnMessageExpiration' => false
    }
    properties = {}

    queue = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name, properties)
    queue.must_be_kind_of Azure::ServiceBus::Queues::Queue
    assert queue.valid?, "must be valid"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure-0.1.1 test/integration/service_bus/queues/create_queue_test.rb
azure-0.1.0 test/integration/service_bus/queues/create_queue_test.rb