Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Fix broken tests after update
Browse files Browse the repository at this point in the history
The dynamic property was removed which broke some tests. Removing them from
the tests.

Signed-off-by: J.R. Garcia <[email protected]>
  • Loading branch information
J.R. Garcia committed Mar 26, 2019
1 parent 71a7111 commit 96804e1
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions test/test_deserialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def test_moref

def test_dataobject
obj = VIM.DatastoreSummary(
:dynamicProperty => [],
:capacity => 1000,
:accessible => true,
:datastore => VIM.Datastore(nil, "foo"),
Expand Down Expand Up @@ -59,7 +58,6 @@ def test_enum

def test_array
obj = VIM.ObjectContent(
:dynamicProperty => [],
:obj => VIM.Folder(nil, 'ha-folder-root'),
:missingSet => [],
:propSet => [
Expand Down Expand Up @@ -87,12 +85,11 @@ def test_array

def test_array2
obj = VIM.DVPortStatus(
:dynamicProperty => [],
:linkUp => true,
:blocked => false,
:vlanIds => [
VIM::NumericRange(:dynamicProperty => [], :start => 5, :end => 7),
VIM::NumericRange(:dynamicProperty => [], :start => 10, :end => 20),
VIM::NumericRange(:start => 5, :end => 7),
VIM::NumericRange(:start => 10, :end => 20),
],
:vmDirectPathGen2InactiveReasonNetwork => [],
:vmDirectPathGen2InactiveReasonOther => []
Expand All @@ -116,7 +113,6 @@ def test_array2

def test_empty_array
obj = VIM.DVPortStatus(
:dynamicProperty => [],
:linkUp => true,
:blocked => false,
:vlanIds => [],
Expand Down Expand Up @@ -155,22 +151,18 @@ def test_fault

def test_wait_for_updates
obj = VIM.UpdateSet(
:dynamicProperty => [],
:version => '7',
:filterSet => [
VIM.PropertyFilterUpdate(
:dynamicProperty => [],
:filter => VIM.PropertyFilter(nil, "session[528BA5EB-335B-4AF6-B49C-6160CF5E8D5B]71E3AC7E-7927-4D9E-8BC3-522769F22DAF"),
:missingSet => [],
:objectSet => [
VIM.ObjectUpdate(
:dynamicProperty => [],
:kind => 'enter',
:obj => VIM.VirtualMachine(nil, 'vm-1106'),
:missingSet => [],
:changeSet => [
VIM.PropertyChange(
:dynamicProperty => [],
:name => 'runtime.powerState',
:op => 'assign',
:val => 'poweredOn'
Expand Down Expand Up @@ -210,7 +202,6 @@ def test_binary

def test_hba
obj = VIM::HostBlockHba(
:dynamicProperty => [],
:key => 'key-vim.host.BlockHba-vmhba0',
:device => 'vmhba0',
:bus => 0,
Expand Down Expand Up @@ -250,7 +241,6 @@ def test_runtime_state

def test_runtime_info
obj = VIM::VirtualMachineRuntimeInfo(
:dynamicProperty => [],
:bootTime => Time.parse('2010-08-20 05:44:35 UTC'),
:connectionState => "connected",
:faultToleranceState => "notConfigured",
Expand Down Expand Up @@ -360,7 +350,6 @@ def test_typename

def test_new_fields
obj = VIM::HostBlockHba(
:dynamicProperty => [],
:key => 'key-vim.host.BlockHba-vmhba0',
:device => 'vmhba0',
:bus => 0,
Expand Down

0 comments on commit 96804e1

Please sign in to comment.