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:
parent
268f126b5f
commit
268fc54afd
2 changed files with 19 additions and 0 deletions
7
lib/fog/ovirt/requests/compute/mock_files/quotas.xml
Normal file
7
lib/fog/ovirt/requests/compute/mock_files/quotas.xml
Normal 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>
|
12
tests/ovirt/requests/compute/list_quotas_tests.rb
Normal file
12
tests/ovirt/requests/compute/list_quotas_tests.rb
Normal 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
|
Loading…
Reference in a new issue