Minor arrangements

This commit is contained in:
David Barroso committed 2016-12-17 13:13:49 +01:00
1 parent fe54430482
commit 8d4935e995
5 files changed
+20 -6

No files matched your search

+3
View File
@@ -60,3 +60,6 @@ target/
#Ipython Notebook
.ipynb_checkpoints
.DS_Store
tags
+6 -5
View File
@@ -1,20 +1,21 @@
language: python
python:
- 2.7
- 3.4
- 3.5
install:
- pip install -r requirements.txt
- pip install .
- pip install tox-travis
- pip install coveralls
deploy:
provider: pypi
user: dbarroso
password:
secure: d9XnLqr0mmLiMONfoiSqShwQ761pD3THIwsEtllm1/1KknoFyOtyqYOfPvUIvy2wg7JGDYyRCfyj1j3SiYz1whmmtAmtOZYYB14wk3eftNBVHDERc1ROOVO2u3ahL6WwdZBhxjpuz6lXX0sSJtDxY2IBFGDy2cj2VzWyuiWKoS2YrQoLTLBt/FWPbHvVIIeUkQ1wZnZ/G0H45ZAntd9v9BCFkjKc2wEagPYv5Li+54Tet8nFiNFC/m+UBbcgtITFp5xNz0nbjMDTxKwIEgRNqXig/P/OOeh3aNtjPZtwLdeuJw/p4QBZ+eCnqD9paGcOdkCpK6b4i+8RV8n3/Dpz3qbyYBxpMqAn+JnOpVpWWnoARI3Kc+hHMpuT9fPLt+J5iqU/YZQhDRavmrggYWlnqWk67udFxDBec6BidQuZfksVhdT6CcD5cATRDrV0m7CchAQa0RDJ9NRUFu3L6h3vP5F49xzFPa87fG1s9l/Qccby5/rR3cryyHcnxsw1F1kPD1cpWbHwmkPnWYAqzYIso8rhJ8XjNj4Cw5/S4E1ri4e7fKRmYKYgB7Eq1QkefODAoDu6LBOkf2JtGOrSEa+bwLx2nnoGWfs6KkkRKzJNuNwBVYQYhfSRXLsXzWwfpYwqCuuEt/p4scgkqLtm5cGqZ5EG15g52N9gnQzpK8MK+uw=
secure: xfbyl+7EqXphy7DLIY1B9/IgecWX3IF0xKDnxJk3egJYKYvVT4thMGnBEAH4gKfVMU78LU6vyNr0g3kQT/AY1srRdG6gXjmUiwNQR/uwbpl3RBLFyRKUqiwNl/v3nFLmw/zmUhwtJKs1rVDqb7yvy6JzqhcBoFMNXSdf400QJzWzJS7VqMqXcdSUXHcPsVAzjYOWrKc0nuQsbFrYPwZNoskxzhxQfKTgZxtSEUCNLWWyQZv1xeywVq3HIjxwzP19b6phI14YnegQAtiPSQDRD+xYcL16lvWGIS+AW3K9Q8fk5UT7V8P41yarA0b0gL+rMlFTMpv+4zSSHus87R70EODC3LjYwOcGH81bw8Ctsm53/q7uPLJ8H4PDzc/No5MEbxsg0882CLLmkZXz35nGQQmvpv9DlyM4R3u2WhpFYxE/t/6uLOzhbt2QPcarZhrjJ/dkxN/H2xVuQJ1cM6+fG3MeTNI52n8kenl/97PSVcN7O+FZ2eGyVQOlNfVaPy3Qw57iSlMQWoUY7amh1/i488cXpLtt7fRFnB6bMeHKlxoh99DIH+pdRi25ltdAxQwLeitL6rCjYAEJqkKp3omTeV07+/oXB4L6ySVvFD/GZZy8H2Oi8ea75JOqyo9+WfsBT1sqsXIlCd12qHSiwANBiWira1T1GBUVXqkX5X6C8KY=
on:
tags: true
branch: master
script:
- py.test --cov-report= --cov=napalm_vyos test/
- pylama .
- tox
after_success:
- coveralls
- if [ $TRAVIS_TAG ]; then curl -X POST https://readthedocs.org/build/napalm; fi
+1
View File
@@ -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
+1 -1
View File
@@ -6,7 +6,7 @@ ignore = D203,C901
max_line_length = 100
[tools:pytest]
addopts = --cov=./ -vs
addopts = --cov=napalm_vyos --cov-report term-missing -vs --pylama
json_report = report.json
jsonapi = true
+9
View File
@@ -0,0 +1,9 @@
[tox]
envlist = py27,py34,py35
[testenv]
deps =
-rrequirements-dev.txt
commands=
py.test