Sha256: 257d4a55e9ee2a62213f6ee5241922a54093dba4acefd1b57018849c78080dde

Contents?: true

Size: 747 Bytes

Versions: 2

Compression:

Stored size: 747 Bytes

Contents

require "integration/test_helper"

describe "Creating a Topic" do

  after do
    ServiceBusTopicNameHelper.clean
  end

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

    topic = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name, properties)
    topic.must_be_kind_of Azure::ServiceBus::Topics::Topic
    assert topic.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/topics/create_topic_test.rb
azure-0.1.0 test/integration/service_bus/topics/create_topic_test.rb