mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
497 B
Ruby
19 lines
497 B
Ruby
Shindo.tests('Fog::Metering[:openstack] | resource requests', ['openstack']) do
|
|
|
|
@resource_format = {
|
|
'resource_id' => String,
|
|
'project_id' => String,
|
|
'user_id' => String,
|
|
'metadata' => Hash,
|
|
}
|
|
|
|
tests('success') do
|
|
tests('#list_resource').formats([@resource_format]) do
|
|
Fog::Metering[:openstack].list_resources.body
|
|
end
|
|
|
|
tests('#get_resource').formats(@resource_format) do
|
|
Fog::Metering[:openstack].get_resource('test').body
|
|
end
|
|
end
|
|
end
|