From c82e19fe38da8478bb6c3c9620a71f6c92463b23 Mon Sep 17 00:00:00 2001 From: Joseph Palermo Date: Sun, 4 Dec 2022 10:08:20 -0800 Subject: [PATCH] Fix attach disk spec due to addition of storage account id --- src/bosh_azure_cpi/spec/unit/cloud/attach_disk_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bosh_azure_cpi/spec/unit/cloud/attach_disk_spec.rb b/src/bosh_azure_cpi/spec/unit/cloud/attach_disk_spec.rb index 736252f9d..894e501d6 100644 --- a/src/bosh_azure_cpi/spec/unit/cloud/attach_disk_spec.rb +++ b/src/bosh_azure_cpi/spec/unit/cloud/attach_disk_spec.rb @@ -202,11 +202,13 @@ let(:blob_uri) { 'fake-blob-uri' } let(:location) { 'fake-location' } let(:account_type) { 'Premium_LRS' } + let(:storage_account_id) { 'storage-account-id' } let(:storage_account) do { location: location, account_type: account_type, - sku_tier: 'Premium' + sku_tier: 'Premium', + id: storage_account_id } end @@ -226,7 +228,7 @@ expect(disk_id_object).to receive(:storage_account_name) .and_return(storage_account_name) expect(disk_manager2).to receive(:create_disk_from_blob) - .with(disk_id_object, blob_uri, location, account_type, nil) + .with(disk_id_object, blob_uri, location, account_type, storage_account_id, nil) expect(blob_manager).to receive(:set_blob_metadata) expect(vm_manager).to receive(:attach_disk)