Network endpoints plugin for pytest
Project description
pytest-network-endpoints
Pytest plugin for defining remote network nodes. This plugin introduces --networkfile option and session scoped endpoints fixture which will contain automatically generated and configured clients for given type.
Predefined types avaiable:
yaml type key | endpoint class | comment |
---|---|---|
.ssh | pytest_network_endpoints.ssh.SshEndpoint | wrapper for paramiko |
.tunnel | pytest_network_endpoints.tunnel.TunnelEndpoint | wrapper for sshtunnel |
.snmp | pytest_network_endpoints.snmp.SnmpEndpoint | wrapper for easysnmp |
.winrm | pytest_network_endpoints.winrm.WinrmEndpoint | wrapper for pywinrm, winrmcp |
install
examples
ssh
ssh with auth key
tunnel
winrm
standalone
This package can be used without pytest
from pytest_network_endpoints.plugin import create_endpoints_from_networkfile
endpoints = create_endpoints_from_networkfile('path/to/networkfile.yml')
devel
python setup.py clean --all install bdist_wheel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pytest-network-endpoints-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f7aa0e34e56dae902a8c0c650ae68c5144a693880b4eaeeebafe65a7435f7a8 |
|
MD5 | 5cc096ae4eb6f7b9e967cb0a3bcd6e53 |
|
BLAKE2b-256 | 45967ef7220aa41db92f64048661c52193b05d0240114b0794346052b775ed42 |
Close
Hashes for pytest_network_endpoints-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee06e47efc3f71c6c2bc2f7cad7c3893cb1c3f668fb14146716e1b97dd3981c4 |
|
MD5 | 3ab0c7bc6448b74bff5cc268cf216064 |
|
BLAKE2b-256 | 717a712bbaa0f8f3790fedb8e869b061a2cd191c88cd5e53586a85a5222c6a2b |