test/test_deserialization.rb in rbvmomi-1.1.5 vs test/test_deserialization.rb in rbvmomi-1.1.6
- old
+ new
@@ -89,11 +89,13 @@
:linkUp => true,
:blocked => false,
:vlanIds => [
VIM::NumericRange(:dynamicProperty => [], :start => 5, :end => 7),
VIM::NumericRange(:dynamicProperty => [], :start => 10, :end => 20),
- ]
+ ],
+ :vmDirectPathGen2InactiveReasonNetwork => [],
+ :vmDirectPathGen2InactiveReasonOther => []
)
check <<-EOS, obj, 'DVPortStatus'
<root>
<linkUp>1</linkUp>
@@ -113,11 +115,13 @@
def test_empty_array
obj = VIM.DVPortStatus(
:dynamicProperty => [],
:linkUp => true,
:blocked => false,
- :vlanIds => []
+ :vlanIds => [],
+ vmDirectPathGen2InactiveReasonNetwork: [],
+ vmDirectPathGen2InactiveReasonOther: []
)
check <<-EOS, obj, 'DVPortStatus'
<root>
<linkUp>1</linkUp>
@@ -255,10 +259,11 @@
:memoryOverhead => 128671744,
:numMksConnections => 1,
:powerState => "poweredOn",
:recordReplayState => "inactive",
:suspendInterval => 0,
- :toolsInstallerMounted => false
+ :toolsInstallerMounted => false,
+ :device => []
)
check <<-EOS, obj, 'VirtualMachineRuntimeInfo'
<val xsi:type="VirtualMachineRuntimeInfo" xmlns:xsi="#{VIM::NS_XSI}">
<host type="HostSystem">host-32</host>