Skip to main content

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.

Source Distribution

pytest-easy-server-0.8.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

pytest_easy_server-0.8.0-py2.py3-none-any.whl (11.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-easy-server-0.8.0.tar.gz.

File metadata

  • Download URL: pytest-easy-server-0.8.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for pytest-easy-server-0.8.0.tar.gz
Algorithm Hash digest
SHA256 2c9d3cd1c7db2012238731ecc50249a064d966a37c3b47c05346ad039a7d58d9
MD5 396051d7bee49d043c503f5e75655d81
BLAKE2b-256 cd0c29e117a8f7c853430ab583e266114f8ed1b44828d742299d7a19b44ff263

See more details on using hashes here.

File details

Details for the file pytest_easy_server-0.8.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_easy_server-0.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for pytest_easy_server-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 27ab1d014a06646276a25b52976e5643b6bb4ad09537e4817e295137934f7044
MD5 79acd9ba65c0e4703cd2a81ad2537b32
BLAKE2b-256 265a86bef692f133ee7c1b54e7616244b4690d7f12056b139d2a1aecdb976bd2

See more details on using hashes here.

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