1
0
Fork 0
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:
Paul Thornthwaite 2010-12-02 17:36:57 +00:00
parent 2468c43df8
commit df9d093df7
4 changed files with 9 additions and 5 deletions

View file

@ -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 = {

View file

@ -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

View file

@ -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

View file

@ -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