Sha256: 1a694513b20ec89fcbec223b0dcfdb45ac8e3b27b94759b0ea24ea1c9a09c413

Contents?: true

Size: 631 Bytes

Versions: 3

Compression:

Stored size: 631 Bytes

Contents

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

# Container Class
class TestSetContainerMetadata < Minitest::Test
  # This class posesses the test cases for the requests of container service.
  def setup
    @service = Fog::Storage::AzureRM.new(storage_account_credentials)
    @blob_client = @service.instance_variable_get(:@blob_client)
    @metadata = ApiStub::Requests::Storage::Directory.metadata_response
  end

  def test_set_container_metadata_success
    @blob_client.stub :set_container_metadata, true do
      assert @service.set_container_metadata('Test-container', @metadata)
    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_set_container_metadata.rb
fog-azure-rm-0.0.9 test/requests/storage/test_set_container_metadata.rb
fog-azure-rm-0.0.8 test/requests/storage/test_set_container_metadata.rb