Sha256: 33466890dc2ddf7c1f081cd346af006e3e959f1d5c93e2d6e7e00acdf6c4553a

Contents?: true

Size: 633 Bytes

Versions: 61

Compression:

Stored size: 633 Bytes

Contents

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

# Storage Container Class
class TestCheckContainerExists < Minitest::Test
  # This class posesses the test cases for the requests of checking container exists.
  def setup
    @service = Fog::Storage::AzureRM.new(storage_account_credentials)
    @blob_client = @service.instance_variable_get(:@blob_client)

    @container = ApiStub::Requests::Storage::Directory.container
  end

  def test_check_container_exists_success
    @blob_client.stub :get_container_properties, @container do
      assert_equal @service.check_container_exists('test_container'), true
    end
  end
end

Version data entries

61 entries across 61 versions & 5 rubygems

Version Path
far-gem-0.5.5 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.5.0 test/requests/storage/test_check_container_exists.rb
far-gem-0.5.4 test/requests/storage/test_check_container_exists.rb
far-gem-0.5.3 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.9 test/requests/storage/test_check_container_exists.rb
far-gem-0.5.2 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.8 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.7 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.6 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.5 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-temp-0.0.5 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.4 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.3 test/requests/storage/test_check_container_exists.rb
far-gem-0.5.1 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.2 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.1 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.4.0 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.3.9 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.3.8 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.3.7 test/requests/storage/test_check_container_exists.rb