Sha256: ec4ae4322cc5b044661bc35223b731b1be5a3cb86805fdb82fd58f8e637fd39f

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

require File.expand_path '../../test_helper', __dir__

# Storage Blob Class
class TestListBlobs < Minitest::Test
  # This class posesses the test cases for the requests of acquire container lease.
  def setup
    @service = Fog::Storage::AzureRM.new(storage_account_credentials)
    @blob_client = @service.instance_variable_get(:@blob_client)
  end

  def test_acquire_container_lease_success
    lease_id = { 'leaseId' => 'abc123' }
    @blob_client.stub :acquire_container_lease, lease_id do
      assert @service.acquire_container_lease('test_container'), lease_id
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.0 test/requests/storage/test_acquire_container_lease.rb
fog-azure-rm-0.0.9 test/requests/storage/test_acquire_container_lease.rb
fog-azure-rm-0.0.8 test/requests/storage/test_acquire_container_lease.rb