Sha256: c2e038165cc9ce93001dea9cdbd8fda3a22f92cda74f60061519ce6116ddc824

Contents?: true

Size: 570 Bytes

Versions: 86

Compression:

Stored size: 570 Bytes

Contents

Shindo.tests('Fog::Compute[:vsphere] | vm_migrate request', ['vsphere']) do

  compute = Fog::Compute[:vsphere]

  powered_on_vm = '50137835-88a1-436e-768e-9b2677076e67'

  tests('The response should') do
    response = compute.vm_migrate('instance_uuid' => powered_on_vm)
    test('be a kind of Hash') { response.kind_of? Hash }
    test('should have a task_state key') { response.has_key? 'task_state' }
  end
  
  tests('The expected options') do
    raises(ArgumentError, 'raises ArgumentError when instance_uuid option is missing') { compute.vm_migrate }
  end
end

Version data entries

86 entries across 86 versions & 14 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131206115947 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131121075022 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131118164830 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131115184302 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131114200144 tests/vsphere/requests/compute/vm_migrate_tests.rb
gapinc-fog-1.12.1.2.1 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-1.18.0 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-1.17.0 tests/vsphere/requests/compute/vm_migrate_tests.rb
fog-1.16.0 tests/vsphere/requests/compute/vm_migrate_tests.rb