ci_automated_tests module

ci_automated_tests.honeypot_test(container_name, tests, port_range=None)[source]

Starts a container and runs a list of tests against it. Compares results with the expected results. Stops the container.

Parameters:
  • container_name – target container
  • tests – dict of Test objects and expected TestResult pairs
  • port_range – specify a custom port range for scan (e.g ‘20-100’)
Returns:

boolean representing test pass/failure

ci_automated_tests.interface_test()[source]

Test argument parsing

ci_automated_tests.main()[source]

Entry point for the Continuous Integration tools. Write all tests here.