Skip to content

Commit

Permalink
Fix attach disk spec due to addition of storage account id
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalermo committed Dec 4, 2022
1 parent 691436a commit c82e19f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bosh_azure_cpi/spec/unit/cloud/attach_disk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit c82e19f

Please sign in to comment.