mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
11 lines
478 B
Ruby
11 lines
478 B
Ruby
Shindo.tests("Fog::Compute[:fogdocker] | image_search request", 'fogdocker') do
|
|
|
|
compute = Fog::Compute[:fogdocker]
|
|
|
|
tests("Search images") do
|
|
response = compute.image_search('term' => 'test')
|
|
test("should be a kind of Array") { response.kind_of? Array}
|
|
test("Array elements should be a kind of Hash") { response.first.kind_of? Hash}
|
|
test("response elemetns should have a name") { !response.first['name'].nil? && !response.first['name'].empty? }
|
|
end
|
|
end
|