mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
28 lines
618 B
Ruby
28 lines
618 B
Ruby
Shindo.tests('Fog::Compute[:ibm] | location requests', ['ibm']) do
|
|
|
|
@location_format = {
|
|
'state' => Integer,
|
|
'location' => String,
|
|
'capabilities' => Array,
|
|
'name' => String,
|
|
'id' => String,
|
|
'description' => String
|
|
}
|
|
|
|
@locations_format = {
|
|
'locations' => [ @location_format ]
|
|
}
|
|
|
|
tests('success') do
|
|
|
|
tests("#list_locations").formats(@locations_format) do
|
|
Fog::Compute[:ibm].list_locations.body
|
|
end
|
|
|
|
tests('#get_locations').formats(@location_format) do
|
|
Fog::Compute[:ibm].get_location("101").body
|
|
end
|
|
|
|
end
|
|
|
|
end
|