Sha256: 543369252c918e22b820748f786422a9fb732db7c5f5463ac6037ac5e4d729a9

Contents?: true

Size: 816 Bytes

Versions: 13

Compression:

Stored size: 816 Bytes

Contents

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

  instance_uuid = '50137835-88a1-436e-768e-9b2677076e67'
  custom_key = nil
  custom_value = nil

  tests('The response should') do
    response = compute.set_vm_customvalue(instance_uuid, custom_key, custom_value)
    test('be nil') { response.nil? }
  end

  tests('The expected options') do
    raises(ArgumentError, 'raises ArgumentError when instance_uuid option is missing') { compute.set_vm_customvalue }
    raises(ArgumentError, 'raises ArgumentError when custom_key option is missing') { compute.set_vm_customvalue(instance_uuid) }
    raises(ArgumentError, 'raises ArgumentError when custom_value option is missing') { compute.set_vm_customvalue(instance_uuid, custom_key) }
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
fog-vsphere-3.7.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-3.0.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-2.5.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-2.4.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-2.3.0 tests/requests/compute/set_vm_customvalue_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/tests/requests/compute/set_vm_customvalue_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/tests/requests/compute/set_vm_customvalue_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-2.2.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-1.7.0.1 tests/requests/compute/set_vm_customvalue_tests.rb