2011-12-02 13:27:44 -05:00
|
|
|
Shindo.tests('Fog::Compute[:ibm] | locations', ['ibm']) do
|
2012-02-13 10:51:03 -05:00
|
|
|
|
2011-12-02 13:27:44 -05:00
|
|
|
tests('success') do
|
2012-02-13 10:51:03 -05:00
|
|
|
|
2012-02-28 23:51:37 -05:00
|
|
|
@location_id = '41'
|
2012-02-13 10:51:03 -05:00
|
|
|
|
2011-12-02 13:27:44 -05:00
|
|
|
tests('Fog::Compute[:ibm].locations') do
|
|
|
|
returns(true) { Fog::Compute[:ibm].locations.length > 0 }
|
|
|
|
end
|
2012-02-13 10:51:03 -05:00
|
|
|
|
2011-12-02 13:27:44 -05:00
|
|
|
tests('Fog::Compute[:ibm].locations.get("#{@location_id}")') do
|
|
|
|
@location = Fog::Compute[:ibm].locations.get(@location_id)
|
2012-02-13 10:51:03 -05:00
|
|
|
returns(@location_id) { @location.id }
|
2011-12-02 13:27:44 -05:00
|
|
|
end
|
2012-02-13 10:51:03 -05:00
|
|
|
|
2011-12-02 13:27:44 -05:00
|
|
|
end
|
2012-02-13 10:51:03 -05:00
|
|
|
|
|
|
|
end
|