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

77 lines
1.9 KiB
Ruby
Raw Normal View History

2011-01-03 16:34:08 -05:00
def compute_providers
{
:aws => {
:server_attributes => {},
2011-01-03 16:34:08 -05:00
:mocked => true
},
:bluebox => {
2011-02-23 18:00:56 -05:00
:server_attributes => {
2012-02-16 21:43:25 -05:00
:flavor_id => '94fd37a7-2606-47f7-84d5-9000deda52ae', # Block 1GB Virtual Server
:image_id => 'a8f05200-7638-47d1-8282-2474ef57c4c3', # Scientific Linux 6
:location_id => '37c2bd9a-3e81-46c9-b6e2-db44a25cc675', # Seattle, WA
:password => 'chunkybacon'
2011-02-23 18:00:56 -05:00
},
:mocked => false
},
:brightbox => {
2011-01-03 16:34:08 -05:00
:server_attributes => {
:image_id => 'img-wwgbb' # Ubuntu Lucid 10.04 server (i686)
2011-01-03 16:34:08 -05:00
},
:mocked => false
},
:openstack => { :mocked => true},
:cloudstack => {
:provider_attributes => {
:cloudstack_host => 'http://host.foo'
},
:server_attributes => Fog.credentials[:cloudstack],
:mocked => true
},
:glesys => {
:mocked => false
},
:hp => {
:server_attributes => {
:flavor_id => 100,
:image_id => 1242,
:name => "fog_#{Time.now.to_i}"
},
:mocked => true
},
2011-12-02 13:27:44 -05:00
:ibm => {
:server_attributes => {},
:mocked => true
},
:joyent => {
:mocked => false
},
:ninefold => {
:mocked => false
},
:rackspace => {
2011-01-03 16:34:08 -05:00
:server_attributes => {
:image_id => 49, # image 49 = Ubuntu 10.04 LTS (lucid)
:name => "fog_#{Time.now.to_i}"
},
:mocked => true
},
:slicehost => {
2011-01-03 16:34:08 -05:00
:server_attributes => {
:image_id => 49, # image 49 = Ubuntu 10.04 LTS (lucid)
:name => "fog_#{Time.now.to_i}"
},
:mocked => false
2011-02-23 18:00:56 -05:00
},
:voxel => {
2011-02-23 18:00:56 -05:00
:server_attributes => {
:name => "fog.#{Time.now.to_i}",
:disk_size => 10,
:processing_cores => 1,
:image_id => 55, # image 55 = Ubuntu 10.04 (Lucid), 64-bit, base install
:facility => "LDJ1"
},
:mocked => false
2011-01-03 16:34:08 -05:00
}
}
end