Sha256: 355a7cc02999056a99717476fe95c3863f5990f1ecaf186c939cf1bec5198982

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

require "integration/test_helper"

describe "Authorizing against the server" do
  let :uri do
    URI(Azure.config.table_host + "/Tables")
  end

  it "can make a simple request using SharedKey" do
    auth = Azure::Auth.new
    signer = Azure::Tables::Auth::SharedKey.new

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

    response.code.must_equal 200
  end

  it "can make a simple request using SharedKeyLite" do
    auth = Azure::Auth.new
    signer = Azure::Tables::Auth::SharedKeyLite.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/tables/auth_test.rb
azure-0.1.0 test/integration/tables/auth_test.rb