Sha256: 5dc71db343ffcd6066a32ef44848056d66516b410ff10a96bc135640625484f2

Contents?: true

Size: 863 Bytes

Versions: 3

Compression:

Stored size: 863 Bytes

Contents

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

# Storage Blob Class
class TestListBlobsInContainer < Minitest::Test
  # This class posesses the test cases for the requests of listing storage containers.
  def setup
    @service = Fog::Storage::AzureRM.new(storage_account_credentials)
    @blob_client = @service.instance_variable_get(:@blob_client)
    @storage_blob_object = ApiStub::Requests::Storage::File.list_blobs_response
  end

  def test_list_blobs_with_service_success
    @blob_client.stub :list_blobs, @storage_blob_object do
      assert @service.list_blobs('test-container'), @storage_blob_object
    end
  end

  def test_list_blobs_with_internal_client_success
    @blob_client.stub :list_blobs, @storage_blob_object do
      assert @blob_client.list_blobs('test-container'), @storage_blob_object
    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_list_blobs_in_container.rb
fog-azure-rm-0.0.9 test/requests/storage/test_list_blobs_in_container.rb
fog-azure-rm-0.0.8 test/requests/storage/test_list_blobs_in_container.rb