mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
ef9a9697ab
Done with `rubocop --auto-correct --only TrailingWhitespace`
16 lines
336 B
Ruby
16 lines
336 B
Ruby
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
|