Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-network-endpoints-0.0.3.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

pytest_network_endpoints-0.0.3-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page