salt-ext-modules-vmware
salt-ext-modules-vmware copied to clipboard
tests.integration.modules.test_nsxt_transport_node_profiles : test_nsxt_transport_node_profiles_execution_module
Fresh VMC_CONFIG file
nsxt_config = {'cert': 'path-to-nsxt-cert.pem', 'compute_manager_server': 'compute-manager-server-ip', 'credential': {'credential_ty...ompute-manager-server-thumbprint', 'username': 'compute-manager-server-username'}, 'hostname': 'nsxt-hostname/ip', ...}
@pytest.fixture
def setup(nsxt_config):
"""
Sets up test requirements:
Queries nsx api for transport node profiles with display name
Deletes if exists
Also queries and deletes transport zones which will be used in the IT
"""
> transport_node_profiles = _get_transport_node_profiles_by_display_name_from_nsxt(
nsxt_config, _display_name
)