Sha256: e97074080888995e54793db0006fad20217784ba18772f850d5f5fe6b6b41c08
Contents?: true
Size: 757 Bytes
Versions: 3
Compression:
Stored size: 757 Bytes
Contents
require File.expand_path '../../test_helper', __dir__ # Container Class class TestGetContainerMetadata < 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) @container_object = ApiStub::Requests::Storage::Container.test_get_container_metadata end def test_get_container_metadata_success metadata_response = ApiStub::Requests::Storage::Container.metadata_response @blob_client.stub :get_container_metadata, @container_object do assert_equal @service.get_container_metadata('Test-container'), metadata_response end end end
Version data entries
3 entries across 3 versions & 1 rubygems