Sha256: 6a0927532999f96c9907e50b38074b9f6c5e8e1cdc5fc62564ee3b18f8af10db

Contents?: true

Size: 715 Bytes

Versions: 3

Compression:

Stored size: 715 Bytes

Contents

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

# Blob Class
class TestGetBlobMetadata < Minitest::Test
  # This class posesses the test cases for the requests of Blob service.
  def setup
    @service = Fog::Storage::AzureRM.new(storage_account_credentials)
    @blob_client = @service.instance_variable_get(:@blob_client)
    @blob_object = ApiStub::Requests::Storage::File.test_get_blob_metadata
  end

  def test_get_blob_metadata_success
    metadata_response = ApiStub::Requests::Storage::File.metadata_response
    @blob_client.stub :get_blob_metadata, @blob_object do
      assert_equal @service.get_blob_metadata('Test-container', 'Test-blob'), metadata_response
    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_get_blob_metadata.rb
fog-azure-rm-0.0.9 test/requests/storage/test_get_blob_metadata.rb
fog-azure-rm-0.0.8 test/requests/storage/test_get_blob_metadata.rb