mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[brightbox] DRY up the Image used for testing
This commit is contained in:
parent
2468c43df8
commit
df9d093df7
4 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,9 @@
|
|||
class Brightbox
|
||||
module Compute
|
||||
module TestSupport
|
||||
# image img-9vxqi = Ubuntu Maverick 10.10 server
|
||||
IMAGE_IDENTIFER = "img-9vxqi"
|
||||
end
|
||||
module Formats
|
||||
module Nested
|
||||
SERVER_TYPE = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Shindo.tests('Brightbox::Compute | server model', ['brightbox']) do
|
||||
|
||||
# image img-9vxqi = Ubuntu Maverick 10.10 server
|
||||
server_tests(Brightbox[:compute], {:image_id => 'img-9vxqi'}, false)
|
||||
image_id = Brightbox::Compute::TestSupport::IMAGE_IDENTIFER
|
||||
server_tests(Brightbox[:compute], {:image_id => image_id}, false)
|
||||
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Shindo.tests('Brightbox::Compute | servers collection', ['brightbox']) do
|
||||
|
||||
# image img-t4p09 = Ubuntu Maverick 10.10 server
|
||||
servers_tests(Brightbox[:compute], {:image_id => 'img-t4p09'}, false)
|
||||
image_id = Brightbox::Compute::TestSupport::IMAGE_IDENTIFER
|
||||
servers_tests(Brightbox[:compute], {:image_id => image_id}, false)
|
||||
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ Shindo.tests('Brightbox::Compute | server requests', ['brightbox']) do
|
|||
|
||||
tests('success') do
|
||||
|
||||
image_id = "img-9vxqi"
|
||||
image_id = Brightbox::Compute::TestSupport::IMAGE_IDENTIFER
|
||||
server_id = nil
|
||||
|
||||
tests("#create_server(:image => '#{image_id}')").formats(Brightbox::Compute::Formats::Full::SERVER) do
|
||||
|
|
Loading…
Reference in a new issue