Sha256: a79db618dce895050c209dfd3f418d5381451b00cf47e6103a3bf935d31d8474

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

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

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

  def test_copy_blob_from_uri_success
    @blob_client.stub :copy_blob_from_uri, @copy_blob_reponse do
      assert @service.copy_blob_from_uri('destination_container', 'destination_blob', 'VHD uri'), @copy_blob_reponse
    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_copy_blob_from_uri.rb
fog-azure-rm-0.0.9 test/requests/storage/test_copy_blob_from_uri.rb
fog-azure-rm-0.0.8 test/requests/storage/test_copy_blob_from_uri.rb