Sha256: 4ae72f3c147e1a77663f3cc91120e6753eccd9337d713fcab5b55e47beb7a732
Contents?: true
Size: 530 Bytes
Versions: 13
Compression:
Stored size: 530 Bytes
Contents
Shindo.tests('Fog::Compute[:vsphere] | vm_power_on request', ['vsphere']) do compute = Fog::Compute[:vsphere] powered_off_vm = nil tests('The response should') do response = compute.vm_power_on('instance_uuid' => powered_off_vm) test('be a kind of Hash') { response.is_a? Hash } test('should have a task_state key') { response.key? 'task_state' } end tests('The expected options') do raises(ArgumentError, 'raises ArgumentError when instance_uuid option is missing') { compute.vm_power_on } end end
Version data entries
13 entries across 11 versions & 2 rubygems