ovirt quota support
This commit is contained in:
parent
268f126b5f
commit
268fc54afd
|
@ -0,0 +1,7 @@
|
||||||
|
<quotas>
|
||||||
|
<quota href="/api/datacenters/c0645886-4b4b-11e1-a0ae-5254009970cc/quotas/aae6e3f3-0798-4ef7-b4e4-c036f04a98d7" id="aae6e3f3-0798-4ef7-b4e4-c036f04a98d7">
|
||||||
|
<name>DefaultQuota-Datacenter1</name>
|
||||||
|
<description>Automatic generated Quota for Data Center Datacenter1</description>
|
||||||
|
<data_center href="/api/datacenters/c0645886-4b4b-11e1-a0ae-5254009970cc" id="c0645886-4b4b-11e1-a0ae-5254009970cc"/>
|
||||||
|
</quota>
|
||||||
|
</quotas>
|
|
@ -0,0 +1,12 @@
|
||||||
|
Shindo.tests('Fog::Compute[:ovirt] | quotas request', ['ovirt']) do
|
||||||
|
|
||||||
|
compute = Fog::Compute[:ovirt]
|
||||||
|
|
||||||
|
tests("When listing all quotas") do
|
||||||
|
|
||||||
|
response = compute.quotas
|
||||||
|
tests("The response data format ...") do
|
||||||
|
test("it should be a kind of Array") { response.kind_of? Array }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue