Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Pytest plugin for easy testing against servers

Project description

Version on Pypi Actions status Docs build status (master) Test coverage (master)

Overview

The pytest-easy-server package is a Pytest plugin that provides a Pytest fixture fixture es_server that resolves to the set of servers the tests should run against.

The set of servers is defined in a server file (aka “easy-server file”) and the secrets to access the servers are defined in a vault file that is referenced by the server file, in the formats defined by the easy-server package.

The files to use and the server or group nickname to select for the test, as well as a schema file for validating the user-defined structure of certain properties in the server and vault files, can be specified in pytest options added by the plugin:

--es-file=FILE
                        Path name of the easy-server file to be used.
                        Default: es_server.yml in current directory.

--es-nickname=NICKNAME
                        Nickname of the server or server group to test against.
                        Default: The default from the server file.

--es-schema-file=FILE
                        Path name of the schema file to be used for validating the structure of
                        user-defined properties in the easy-server server and vault files.
                        Default: No validation.

--es-encrypted          Require that the vault file (if specified) is encrypted and error out otherwise.
                        Default: Tolerate unencrypted vault file.

Documentation and change log

License

The pytest-easy-server project is provided under the Apache Software License 2.0.

Project details


Download files

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

Files for pytest-easy-server, version 0.8.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_easy_server-0.8.0-py2.py3-none-any.whl (11.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest-easy-server-0.8.0.tar.gz (16.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page