Sha256: afe47f14c31520b2081ce284196805d4f06e58739df5172abd68ad0c90e1c3a2

Contents?: true

Size: 818 Bytes

Versions: 72

Compression:

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

72 entries across 72 versions & 5 rubygems

Version Path
fog-vsphere-0.3.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-1.36.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-0.2.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-0.1.1 tests/requests/compute/set_vm_customvalue_tests.rb
fog-vsphere-0.1.0 tests/requests/compute/set_vm_customvalue_tests.rb
fog-1.35.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-2.0.0.pre.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.34.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.33.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.32.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.31.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.30.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.29.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.28.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.27.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.26.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
fog-1.25.0 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
nsidc-fog-1.24.1 tests/vsphere/requests/compute/set_vm_customvalue_tests.rb