Minor arrangements
This commit is contained in:
1 parent
fe54430482
commit
8d4935e995
5 files changed
+20
-6
No files matched your search
@@ -0,0 +1 @@
|
||||
{"included": [{"attributes": {"name": "test/unit/test_getters.py::TestGetter::()::test_get_bgp_neighbors[normal]", "teardown": {"duration": 7.891654968261719e-05, "outcome": "passed", "name": "teardown"}, "setup": {"duration": 0.00034999847412109375, "outcome": "error", "name": "setup", "longrepr": "request = <SubRequest 'set_device_parameters' for <Function 'test_get_ntp_servers[no_test_case_found]'>>\n\n @pytest.fixture(scope='class')\n def set_device_parameters(request):\n \"\"\"Set up the class.\"\"\"\n def fin():\n request.cls.device.close()\n request.addfinalizer(fin)\n \n request.cls.driver = vyos.VyOSDriver\n request.cls.patched_driver = PatchedVyOSDriver\n request.cls.vendor = 'vyos'\n> parent_conftest.set_device_parameters(request)\n\ntest/unit/conftest.py:22: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../../.virtualenvs/napalm-vyos/lib/python2.7/site-packages/napalm_base/test/conftest.py:29: in set_device_parameters\n request.cls.device.open()\nnapalm_vyos/vyos.py:102: in open\n **self.netmiko_optional_args)\n../../../.virtualenvs/napalm-vyos/lib/python2.7/site-packages/netmiko/ssh_dispatcher.py:96: in ConnectHandler\n return ConnectionClass(*args, **kwargs)\n../../../.virtualenvs/napalm-vyos/lib/python2.7/site-packages/netmiko/base_connection.py:89: in __init__\n self.establish_connection()\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <netmiko.vyos.vyos_ssh.VyOSSSH object at 0x1023a0f10>, width = None, height = None\n\n def establish_connection(self, width=None, height=None):\n \"\"\"\n Establish SSH connection to the network device\n \n Timeout will generate a NetMikoTimeoutException\n Authentication failure will generate a NetMikoAuthenticationException\n \n width and height are needed for Fortinet paging setting.\n \"\"\"\n if self.protocol == 'telnet':\n self.remote_conn = telnetlib.Telnet(self.host, port=self.port, timeout=self.timeout)\n self.telnet_login()\n elif self.protocol == 'ssh':\n \n # Convert Paramiko connection parameters to a dictionary\n ssh_connect_params = self._connect_params_dict()\n \n # Check if using SSH 'config' file mainly for SSH proxy support\n if self.ssh_config_file:\n self._use_ssh_config(ssh_connect_params)\n \n # Create instance of SSHClient object\n self.remote_conn_pre = paramiko.SSHClient()\n \n # Load host_keys for better SSH security\n if self.system_host_keys:\n self.remote_conn_pre.load_system_host_keys()\n if self.alt_host_keys and path.isfile(self.alt_key_file):\n self.remote_conn_pre.load_host_keys(self.alt_key_file)\n \n # Default is to automatically add untrusted hosts (make sure appropriate for your env)\n self.remote_conn_pre.set_missing_host_key_policy(self.key_policy)\n \n # initiate SSH connection\n try:\n self.remote_conn_pre.connect(**ssh_connect_params)\n except socket.error:\n msg = \"Connection to device timed-out: {device_type} {ip}:{port}\".format(\n device_type=self.device_type, ip=self.host, port=self.port)\n> raise NetMikoTimeoutException(msg)\nE NetMikoTimeoutException: Connection to device timed-out: vyos 127.0.0.1:12443\n\n../../../.virtualenvs/napalm-vyos/lib/python2.7/site-packages/netmiko/base_connection.py:396: NetMikoTimeoutException"}, "run_index": 12, "duration": 0.0007789134979248047, "outcome": "error"}, "type": "test", "id": 1}, {"attributes": {"name": "test/unit/test_getters.py::TestGetter::()::test_get_interfaces_ip[normal]", "teardown": {"duration": 7.891654968261719e-05, "outcome": "passed", "name": "teardown"}, "setup": {"duration": 0.0003440380096435547, "outcome": "error", "name": "setup", "longrepr": "request = <SubRequest 'set_device_parameters' for <Function 'test_get_ntp_servers[no_test_case_found]'>>\n\n @pytest.fixture(scope='class')\n def set_device_parameters(request):\n \"\"\"Set up the class.\"\"\"\n def fin():\n request.cls.device.close()\n request.addfinalizer(fin)\n \n request.cls.driver = vyos.VyOSDriver\n request.cls.patched_driver = PatchedVyOSDriver\n request.cls.vendor = 'vyos'\n> parent_conftest.set_device_parameters(request)\n\ntest/unit/conftest.py:22: \n_Line truncated
|
||||
Reference in new issue
Block a user