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
gitlab-fog-azure-rm-1.8.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.7.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.6.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.5.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.4.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.3.0 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.6.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.2.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.1.1 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.0.1 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-1.0.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-0.9.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-0.8.1 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-0.8.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-0.7.0 test/requests/storage/test_check_container_exists.rb
gitlab-fog-azure-rm-0.6.0 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.5.3 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.5.2 test/requests/storage/test_check_container_exists.rb
far-gem-0.5.6 test/requests/storage/test_check_container_exists.rb
fog-azure-rm-0.5.1 test/requests/storage/test_check_container_exists.rb