1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

ovirt quota support

This commit is contained in:
Amos Benari 2013-03-19 16:17:22 +02:00 committed by Jason Montleon
parent 268f126b5f
commit 268fc54afd
2 changed files with 19 additions and 0 deletions

View file

@ -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>

View file

@ -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