feat: get_vms reports the instance UUID as the guest uid (NetOrk/netork#2728)
This commit is contained in:
1 parent
14a1b08db2
commit
005575d18e
3 files changed
+12
No files matched your search
@@ -33,6 +33,11 @@ class TestVmListFromVcsim:
|
||||
assert vm["node"] == "localhost.localdomain"
|
||||
assert vm["type"] == "vm"
|
||||
|
||||
def test_the_uid_is_the_instance_uuid(self, esxi_data, vm0):
|
||||
# VMDict.uid: an identity that survives a migration and a restore; vSphere's
|
||||
# instance UUID is one (NetOrk/netork#2728).
|
||||
assert _vms(esxi_data)[0]["uid"] == vm0["config.instanceUuid"]
|
||||
|
||||
def test_vcenter_node_is_the_esxi_host(self, vcenter_data):
|
||||
nodes = {vm["name"]: vm["node"] for vm in _vms(vcenter_data)}
|
||||
assert nodes["DC0_H0_VM0"] == "DC0_H0"
|
||||
|
||||
Reference in new issue
Block a user