mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
14 lines
386 B
Ruby
14 lines
386 B
Ruby
|
Shindo.tests('Fog::Compute[:ovirt] | datacenters request', ['ovirt']) do
|
||
|
|
||
|
compute = Fog::Compute[:ovirt]
|
||
|
|
||
|
tests("When listing all datacenters") do
|
||
|
|
||
|
response = compute.datacenters
|
||
|
tests("The response data format ...") do
|
||
|
test("it should be a kind of Array") { response.kind_of? Array }
|
||
|
test("be a kind of Hash") { response.first.kind_of? Hash }
|
||
|
end
|
||
|
end
|
||
|
end
|