Skip to content

Commit

Permalink
Update test expectations with include_deprecated option
Browse files Browse the repository at this point in the history
[#186468123]
  • Loading branch information
selzoc committed Nov 15, 2023
1 parent fe649d3 commit 811636a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bosh_aws_cpi/spec/unit/create_stemcell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
name: 'image-id',
values: [ami_id],
}],
include_deprecated: true,
).and_return([double('image', id: ami_id)])
end
expect(cloud.create_stemcell('/tmp/foo', stemcell_properties)).to eq("#{ami_id} light")
Expand All @@ -64,6 +65,7 @@
name: 'image-id',
values: [ami_id],
}],
include_deprecated: true,
).and_return([double('image', id: ami_id)])

expect(ec2.client).to receive(:copy_image).with(
Expand Down Expand Up @@ -92,6 +94,7 @@
name: 'image-id',
values: [ami_id],
}],
include_deprecated: true,
).and_return([double('image', id: ami_id)])

expect(ec2.client).to receive(:copy_image).with(
Expand Down Expand Up @@ -133,6 +136,7 @@
name: 'image-id',
values: [ami_id],
}],
include_deprecated: true,
).and_return([double('image', id: ami_id)])

expect(ec2.client).to receive(:copy_image).with(
Expand Down Expand Up @@ -162,7 +166,8 @@
filters: [{
name: 'image-id',
values: ['ami-xxxxxxxx']
}]
}],
include_deprecated: true,
).and_return([])
end
expect{
Expand Down

0 comments on commit 811636a

Please sign in to comment.