mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[bluebox|compute] don't use a lb_application I don't own in tests
This commit is contained in:
parent
95ec1198b4
commit
2be572ff23
2 changed files with 16 additions and 18 deletions
|
@ -8,9 +8,8 @@ def compute_providers
|
|||
},
|
||||
Bluebox => {
|
||||
:server_attributes => {
|
||||
:image_id => 'a00baa8f-b5d0-4815-8238-b471c4c4bf72', # Ubuntu 9.10 64bit
|
||||
:password => 'chunkybacon',
|
||||
:lb_applications => '0ea478ca-d528-4764-9828-fc5f222c8c8c'
|
||||
:image_id => '03807e08-a13d-44e4-b011-ebec7ef2c928', # Ubuntu 10.04 64bit
|
||||
:password => 'chunkybacon'
|
||||
},
|
||||
:mocked => false
|
||||
},
|
||||
|
|
|
@ -1,31 +1,30 @@
|
|||
Shindo.tests('Bluebox::Compute | block requests', ['bluebox']) do
|
||||
|
||||
@block_format = {
|
||||
'cpu' => Float,
|
||||
'description' => String,
|
||||
'hostname' => String,
|
||||
'id' => String,
|
||||
'ips' => [{'address' => String}],
|
||||
'lb_applications' => [{'lb_application_name' => String, 'lb_application_id' => String}],
|
||||
'memory' => Integer,
|
||||
'product' => Bluebox::Compute::Formats::PRODUCT,
|
||||
'status' => String,
|
||||
'storage' => Integer,
|
||||
'template' => String
|
||||
'cpu' => Float,
|
||||
'description' => String,
|
||||
'hostname' => String,
|
||||
'id' => String,
|
||||
'ips' => [{'address' => String}],
|
||||
'lb_applications' => [],
|
||||
'memory' => Integer,
|
||||
'product' => Bluebox::Compute::Formats::PRODUCT,
|
||||
'status' => String,
|
||||
'storage' => Integer,
|
||||
'template' => String
|
||||
}
|
||||
|
||||
tests('success') 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'
|
||||
@template_id = compute_providers[Bluebox][:server_attributes][:image_id]
|
||||
@password = 'chunkybacon'
|
||||
|
||||
@block_id = nil
|
||||
|
||||
tests("create_block('#{@product_id}', '#{@template_id}', {'password' => '#{@password}', 'lb_applications' => '#{@lb_applications}'})").formats(@block_format) do
|
||||
tests("create_block('#{@product_id}', '#{@template_id}', {'password' => '#{@password}'})").formats(@block_format.merge('add_to_lb_application_results' => {'text' => String})) do
|
||||
pending if Fog.mocking?
|
||||
data = Bluebox[:compute].create_block(@product_id, @template_id, {'password' => @password, 'lb_applications' => @lb_applications}).body
|
||||
data = Bluebox[:compute].create_block(@product_id, @template_id, {'password' => @password}).body
|
||||
@block_id = data['id']
|
||||
data
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue