1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/cloudstack/requests/template_tests.rb
Paul Thornthwaite ef9a9697ab Remove trailing whitespace
Done with `rubocop --auto-correct --only TrailingWhitespace`
2014-05-26 14:44:18 +01:00

53 lines
1.6 KiB
Ruby

Shindo.tests('Fog::Compute[:cloudstack] | template requests', ['cloudstack']) do
@templates_format = {
'listtemplatesresponse' => {
'count' => Integer,
'template' => [
'id' => Integer,
'name' => String,
'displaytext' => String,
'ispublic' => Fog::Boolean,
'created' => String,
'isready' => Fog::Boolean,
'passwordenabled' => Fog::Boolean,
'format' => String,
'isfeatured' => Fog::Boolean,
'crossZones' => Fog::Boolean,
'ostypeid' => Integer,
'ostypename' => String,
'account' => String,
'zoneid' => Integer,
'zonename' => String,
'status' => Fog::Nullable::String,
'size' => Fog::Nullable::Integer,
'templatetype' => String,
'hypervisor' => String,
'domain' => String,
'domainid' => Integer,
'isextractable' => Fog::Boolean,
'checksum' => Fog::Nullable::String,
'sourcetemplateid' => Fog::Nullable::Integer,
'accountid' => Fog::Nullable::Integer,
'bootable' => Fog::Nullable::Boolean,
'hostid' => Fog::Nullable::Integer,
'hostname' => Fog::Nullable::String,
'jobid' => Fog::Nullable::Integer,
'jobstatus' => Fog::Nullable::Integer,
'removed' => Fog::Nullable::Boolean,
'templatetag' => Fog::Nullable::String,
'templatetype' => Fog::Nullable::String
]
}
}
tests('success') do
tests('#list_templates').formats(@templates_format) do
pending if Fog.mocking?
Fog::Compute[:cloudstack].list_templates('templateFilter' => "executable")
end
end
end