Sha256: 2b64b665312651e817dccadf329522f2b75588bccc67b4d1d0db087e8ce7a863

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

require "integration/test_helper"

describe "Managing a container's permissions" do
  after do
    ContainerNameHelper.clean
  end

  it "can grant temporary anonymous access to a blob via shared access signstures" do
    container = Azure::Blobs.create_container(ContainerNameHelper.name)
    blob = create_block_blob(:container => container)

    url = blob.shared_access_signature("r", 10 * 60) # read permissions, 10 minutes

    response = Net::HTTP.get_response(url)
    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/blobs/manage_container_permissions_test.rb
azure-0.1.0 test/integration/blobs/manage_container_permissions_test.rb