2011-06-16 19:28:54 -04:00
|
|
|
Shindo.tests('Fog::Compute[:linode] | datacenter requests', ['linode']) do
|
2010-07-17 23:35:08 -04:00
|
|
|
|
2010-09-09 20:50:38 -04:00
|
|
|
@datacenters_format = Linode::Compute::Formats::BASIC.merge({
|
2010-07-17 23:35:08 -04:00
|
|
|
'DATA' => [{
|
|
|
|
'DATACENTERID' => Integer,
|
|
|
|
'LOCATION' => String
|
|
|
|
}]
|
|
|
|
})
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
|
|
|
tests('#avail_datacenters').formats(@datacenters_format) do
|
2010-10-13 20:54:14 -04:00
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:linode].avail_datacenters.body
|
2010-07-17 23:35:08 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|