salt-ext-modules-vmware
salt-ext-modules-vmware copied to clipboard
Salt Extension Modules for VMware
Fixture should probably remove the folder that it's going to be moved to(?) ``` | pyVmomi.VmomiSupport.vim.fault.DuplicateName: (vim.fault.DuplicateName) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], msg = "The name 'top_folder'...
``` salt.exceptions.VMwareApiError: ['Host did not have any virtual network defined.'] ``` ``` def test_ovf_deploy(integration_test_config, patch_salt_globals_vm): """ Test deploy virtual machine through an OVF """ > res = virtual_machine.deploy_ovf( vm_name="test1", host_name=integration_test_config["esxi_host_name"],...
``` def test_check_transport_zone(nsxt_config, salt_call_cli): ret_create = salt_call_cli.run( "nsxt_transport_zone.create", hostname=nsxt_config["hostname"], username=nsxt_config["username"], password=nsxt_config["password"], host_switch_name="nsxDefaultHostSwitch", transport_type="OVERLAY", display_name="Test_Create_Transport_Zone-IT", verify_ssl=False, ) assert ret_create is not None result_as_json_create = ret_create.json > assert result_as_json_create["display_name"] == "Test_Create_Transport_Zone-IT" E...
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...
Fresh VMC_CONFIG file ``` def test_check_transport_nodes(nsxt_config, salt_call_cli): # Create of the transport node ret_create = salt_call_cli.run( "nsxt_transport_node.create", hostname=nsxt_config["hostname"], username=nsxt_config["username"], password=nsxt_config["password"], verify_ssl=_verify_ssl, transport_zone_endpoints=[], maintenance_mode="DISABLED", node_deployment_info=_node_deployment_info, is_overridden=False, resource_type="TransportNode", display_name="Create-Transport-Node-IT", ) assert ret_create...
fresh vmc_config file ``` def test_nsxt_manager_get_and_set_manager_config(nsxt_config, salt_call_cli): """ nsxt_manager.get_manager_config nsxt_manager.set_manager_config """ hostname = nsxt_config["hostname"] username = nsxt_config["username"] password = nsxt_config["password"] > response_json = _get_manager_config_from_nsxt_api(hostname, username, password) ... def _get_manager_config_from_nsxt_api(hostname, username,...
Failed with fresh VMC_CONFIG ``` @pytest.fixture def get_licenses(): url = BASE_URL.format(management_host=hostname) response = nsxt_request.call_api( method="GET", url=url, username=username, password=password, verify_ssl=_verify_ssl ) > assert "error" not in response E AssertionError: assert 'error'...
Failed with fresh VMC_CONFIG file ``` @pytest.fixture def delete_license(): """ Sets up test requirements: Queries nsx api for licenses Deletes license if exists """ url = BASE_URL.format(management_host=hostname) licenses_dict = nsxt_request.call_api(...
Failed with a fresh VMC_CONFIG file from the scraper ``` @pytest.fixture(autouse=True) def setup(nsxt_config): hostname, username, password = _get_server_info(nsxt_config) > ip_pools_from_nsxt = _get_ip_pool_by_display_name_using_nsxt_api( hostname, username, password, "IP_Pool_Salt_FT" ) hostname = 'nsxt-hostname/ip'...
tests.integration.modules.test_nsxt_ip_blocks : test_nsxt_ip_blocks_execution_module_crud_operations
Might be an issue in the scraper ``` @pytest.fixture(autouse=True) def setup(nsxt_config): hostname, username, password, cert = _get_server_info(nsxt_config) > ip_block_from_nsxt = _get_ip_block_by_display_name_using_nsxt_api( hostname, username, password, "IP_Block_Salt_FT" ) cert = 'path-to-nsxt-cert.pem' hostname...