Sha256: bda252a0ce8fdb87ada1dc726e256899d18524b3656da1681074a3c8f23b00ab

Contents?: true

Size: 858 Bytes

Versions: 2

Compression:

Stored size: 858 Bytes

Contents

require "integration/test_helper"

describe "Manage queue service properties" do
  it "should be able to get service properties" do
    response = Azure::Queues.get_service_properties
    response.must_be :kind_of?, Azure::Queues::ServiceProperties
  end

  it "should be able to set properties" do
    properties = Azure::Queues::ServiceProperties.new do |p|
      p.logging.delete = true
      p.logging.write = true
      p.logging.retention_policy.enabled = true
      p.logging.retention_policy.days = 7

      p.metrics.enabled = true
      p.metrics.retention_policy.enabled = true
      p.metrics.retention_policy.days = 7
    end

    response = Azure::Queues.set_service_properties(properties)
    response.must_equal true

    loaded_properties = Azure::Queues.get_service_properties
    loaded_properties.logging.delete.must_equal true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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