Sha256: cb78304422635434d0c3e3cfc1a0739c89c2901a62af6a6c9aff951fc0c3baa7

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

require "integration/test_helper"

describe "Authorizing against the server" do
  let :uri do
    URI(Azure.config.service_bus_host + "/$Resources/Topics")
  end

  it "can make a simple request using Wrap" do
    auth = Azure::ServiceBus::Auth::Authorizer.new
    signer = Azure::ServiceBus::Auth::Wrap.new

    request = Azure::Request.new(:get, uri)
    auth.sign(request, signer)
    response = request.request!

    response.code.must_equal 200
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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