Skip to main content

Library to help testing checker scripts based on enochecker

Project description

enochecker_test PyPI version Build Status Lines of code

Automatically test services/checker using the enochecker API

Usage

enochecker_test can be used to run tests against a checker, optionally you can specify wich tests to run e.g. enochecker_test test_getflag[0] test_exploit_per_exploit_id will run only the first getflag test and all exploit_per_exploit_id tests.

usage: enochecker_test [-h] [-a CHECKER_ADDRESS] [-p {1..65535}] [-A SERVICE_ADDRESS] [testcase ...]

Utility for testing checkers that implement the enochecker API

positional arguments:
  testcase              Specify the tests that should be run in the syntax expected by pytest, e.g. test_getflag. If no test is specified, all tests will be run.

options:
  -h, --help            show this help message and exit
  -a CHECKER_ADDRESS, --checker-address CHECKER_ADDRESS
                        The address on which the checker is listening (defaults to the ENOCHECKER_TEST_CHECKER_ADDRESS environment variable)
  -p {1..65535}, --checker-port {1..65535}
                        The port on which the checker is listening (defaults to ENOCHECKER_TEST_CHECKER_PORT environment variable)
  -A SERVICE_ADDRESS, --service-address SERVICE_ADDRESS
                        The address on which the service is listening (defaults to ENOCHECKER_TEST_SERVICE_ADDRESS environment variable)

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

enochecker_test-0.9.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

enochecker_test-0.9.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file enochecker_test-0.9.0.tar.gz.

File metadata

  • Download URL: enochecker_test-0.9.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for enochecker_test-0.9.0.tar.gz
Algorithm Hash digest
SHA256 334453b2d15e3d4ecee756151277150eeb91e85ed1f267dd29b3b48fb93fa3c4
MD5 ea2a7782315938aedf6eb79dba1c6028
BLAKE2b-256 899fae6e25023d3a007a4caabbec1924670291901056e8a3d5679098617fd63a

See more details on using hashes here.

File details

Details for the file enochecker_test-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for enochecker_test-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a93c82e2cda3b47b3d45a2ce76dc2f69ea90aba46d728af8c0ccf19f932804e
MD5 a76500e3adc350103a3da5268e76545c
BLAKE2b-256 034f05b0fed9c0cf0db84c88c83f4c2a1cafef2673bf91e843a3c9e90028868c

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