1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Added in some data for testing.

This commit is contained in:
Christian Paredes 2011-04-07 13:28:27 -07:00
parent 14c554d3cf
commit b60bf8a337

View file

@ -6,7 +6,7 @@ Shindo.tests('Bluebox::Compute | block requests', ['bluebox']) do
'hostname' => String,
'id' => String,
'ips' => [{'address' => String}],
'lb_applications => [{'lb_application_name' => String, 'lb_application_id' => String}]
'lb_applications' => [{'lb_application_name' => String, 'lb_application_id' => String}]
'memory' => Integer,
'product' => Bluebox::Compute::Formats::PRODUCT,
'status' => String,
@ -18,13 +18,14 @@ Shindo.tests('Bluebox::Compute | block requests', ['bluebox']) do
@product_id = '94fd37a7-2606-47f7-84d5-9000deda52ae' # 1 GB
@template_id = 'a00baa8f-b5d0-4815-8238-b471c4c4bf72' # Ubuntu 9.10 64bit
@lb_applications = '0ea478ca-d528-4764-9828-fc5f222c8c8c'
@password = 'chunkybacon'
@block_id = nil
tests("create_block('#{@product_id}', '#{@template_id}', 'password' => '#{@password}')").formats(@block_format) do
tests("create_block('#{@product_id}', '#{@template_id}', {'password' => '#{@password}', 'lb_applications' => '#{@lb_applications}'})").formats(@block_format) do
pending if Fog.mocking?
data = Bluebox[:compute].create_block(@product_id, @template_id, 'password' => @password).body
data = Bluebox[:compute].create_block(@product_id, @template_id, {'password' => @password, 'lb_applications' => @lb_applications}).body
@block_id = data['id']
data
end