Sha256: d50fe9f5174112629717ad7e7966fc9ed3669d82ce68d88a0c6c2996ff9aeca4

Contents?: true

Size: 848 Bytes

Versions: 3

Compression:

Stored size: 848 Bytes

Contents

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

# Storage Container Class
class TestListContaienrs < 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_container_object = ApiStub::Requests::Storage::Container.list_containers
  end

  def test_list_containers_with_service_success
    @blob_client.stub :list_containers, @storage_container_object do
      assert @service.list_containers.size >= 1
    end
  end

  def test_list_containers_with_internal_client_success
    @blob_client.stub :list_containers, @storage_container_object do
      assert @blob_client.list_containers.size >= 1
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.6 test/requests/storage/test_list_containers.rb
fog-azure-rm-0.0.5 test/requests/storage/test_list_containers.rb
fog-azure-rm-0.0.4 test/requests/storage/test_list_containers.rb