salt-ext-modules-vmware icon indicating copy to clipboard operation
salt-ext-modules-vmware copied to clipboard

tests.integration.modules.test_esxi : test_esxi_get

Open waynew opened this issue 3 years ago • 0 comments


    def test_esxi_get(service_instance):
        """
        Test get configuration on ESXi host
        """
        ret = esxi.get(
            service_instance=service_instance,
            datacenter_name="Datacenter",
            cluster_name="Cluster",
        )
        assert ret
        for host in ret:
            assert ret[host]["cpu_model"]
            assert ret[host]["capabilities"]
>           assert ret[host]["nics"]
E           assert {}

waynew avatar Dec 01 '21 22:12 waynew