2012-02-02 07:58:46 -05:00
|
|
|
Shindo.tests('Fog::Compute[:ovirt] | servers collection', ['ovirt']) do
|
|
|
|
|
|
|
|
servers = Fog::Compute[:ovirt].servers
|
|
|
|
|
|
|
|
tests('The servers collection') do
|
2012-02-08 06:58:10 -05:00
|
|
|
test('should not be empty') { not servers.empty? }
|
2012-02-02 07:58:46 -05:00
|
|
|
test('should be a kind of Fog::Compute::Ovirt::Servers') { servers.kind_of? Fog::Compute::Ovirt::Servers }
|
2012-02-08 06:58:10 -05:00
|
|
|
tests('should be able to reload itself').succeeds { servers.reload }
|
|
|
|
tests('should be able to get a model') do
|
|
|
|
tests('by instance uuid').succeeds { servers.get servers.first.id }
|
|
|
|
end
|
2012-02-02 07:58:46 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|