Skip to main content

Library to help test checker scripts based on enochecker

Project description

enochecker_test

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 will run only the first getflag test and all test_exploit tests.

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

Utility for testing checkers that implement the enochecker API

positional arguments:
  testexpr              Specify the tests that should be run in the syntax expected by pytests -k flag, e.g. 'test_getflag' or 'not exploit'. If no expr is specified, all tests will be run.

optional arguments:
  -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 checker can reach the service (defaults to ENOCHECKER_TEST_SERVICE_ADDRESS environment variable)

Example Usage:

    $ enochecker_test -a localhost -p 5008 -A 172.20.0.1 test_putflag

Assuming that 172.20.0.1 is the ip address of the gateway of the network of the
service's docker container as obtained by e.g:

    $ docker network inspect service_default | jq ".[].IPAM.Config[].Gateway"

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.14.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enochecker_test-0.14.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: enochecker_test-0.14.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for enochecker_test-0.14.0.tar.gz
Algorithm Hash digest
SHA256 5768b99ff41d1951c68239462f490de9d61a49a47b118c64f1d5aa31f793411f
MD5 abc6b7af88ef2d9e453c931ca12b5055
BLAKE2b-256 6ea21861f6b71732dd75787f0b087e60e5194c4bcdd6c98149808de2b17bdcf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for enochecker_test-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41380d24465c4bfd7f96a645bfc8c909809229d90984de0fe476e4d81c087893
MD5 f11d4f9dfcf4a4dbe03fc7cc4e233f96
BLAKE2b-256 ee6f75b680f1e3e1b32a7bb9211b720be5fa8b808fdf38e3ce631b9393443778

See more details on using hashes here.

Supported by

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