2013-01-14 17:52:16 -05:00
|
|
|
Shindo.tests("HP::BlockStorage | bootable volumes", ['hp', 'block_storage', 'volumes']) do
|
2012-12-04 02:18:10 -05:00
|
|
|
|
|
|
|
@base_image_id = ENV["BASE_IMAGE_ID"] || 1242
|
|
|
|
|
2013-01-14 17:52:16 -05:00
|
|
|
model_tests(HP[:block_storage].bootable_volumes, {:name => "fogbvoltests", :description => "fogbvoltests-desc", :size => 10, :image_id => @base_image_id}, true)
|
2012-12-04 02:18:10 -05:00
|
|
|
|
|
|
|
tests("new volume") do
|
2013-01-14 17:52:16 -05:00
|
|
|
@volume = HP[:block_storage].bootable_volumes.create(:name => "testbvol", :size => 10, :image_id => @base_image_id)
|
2012-12-04 02:18:10 -05:00
|
|
|
@volume.wait_for { ready? } unless Fog.mocking?
|
|
|
|
|
|
|
|
test("get(#{@volume.id})") do
|
2013-01-14 17:52:16 -05:00
|
|
|
HP[:block_storage].bootable_volumes.get(@volume.id) != nil?
|
2012-12-04 02:18:10 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
test("has_attachments?") do
|
|
|
|
@volume.has_attachments? == false
|
|
|
|
end
|
|
|
|
after do
|
|
|
|
@volume.destroy
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|