1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/xenserver/requests/compute/disable_host_tests.rb

17 lines
336 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Compute[:xenserver] | disable_host request', ['xenserver']) do
compute = Fog::Compute[:xenserver]
host = compute.hosts.first
tests('#disable_host') do
test('disables the host') do
compute.disable_host host.reference
host.reload
!host.enabled
end
end
# Cleanup
host.enable
end