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_lun_ids_should_return_lun_NAA_ids

Open waynew opened this issue 3 years ago • 0 comments

    def test_esxi_get_lun_ids_should_return_lun_NAA_ids(service_instance, integration_test_config):
        expected_lun_ids = integration_test_config["esxi_datastore_disk_names"]
        actual_ids = esxi.get_lun_ids(service_instance=service_instance)
>       assert actual_ids == expected_lun_ids
E       AssertionError: assert ['mpx.vmhba0:...ba0:C0:T0:L0'] == ['mpx.vmhba0:C0:T0:L0']
E         Left contains one more item: 'mpx.vmhba0:C0:T0:L0'
E         Full diff:
E         - ['mpx.vmhba0:C0:T0:L0']
E         + ['mpx.vmhba0:C0:T0:L0', 'mpx.vmhba0:C0:T0:L0']

Might be worth creating a test fixture to specify/create the lun/NAA. Otherwise this is probably an issue with the scraper.

waynew avatar Dec 01 '21 22:12 waynew