Sha256: 420c1770f21dffe9039e0e2afc8ea769cdf97df9dbebb5e64b04bc1df0f0d99b

Contents?: true

Size: 819 Bytes

Versions: 30

Compression:

Stored size: 819 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

30 entries across 30 versions & 2 rubygems

Version Path
fog-1.22.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.21.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.20.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.19.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb