Skip to content

s1113950/mitogen-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mitogen-test

Place to store sample playbooks for the purpose of testing mitogen patches

How to run a test

Most tests: TEST=${TEST_DIR} make run-test where TEST_DIR is a subdir of the run_test role. Set USE_DOCKER=false to run on localhost.

Collection playbook-level test: PLAYBOOK=collections make run-test

Supported docker images:

Set CONTAINER_IMAGE (optionally) to one of the following:

centos:{6|7|8|8.1.1911}

ubuntu{14.04|16.04|18.04|19.10|20.04}

debian:{9}

roboxes/rhel8:2.0.6

willhallonline/ansible:2.9-alpine from mitogen-hq/mitogen#673 (comment)

Defaults to centos:8.

Tests in run_test

async-ansible-2-10

Validates https://github.com/dw/mitogen/blob/master/tests/ansible/integration/async/runner_one_job.yml#L11 for Ansible 2.10

collections

Validates mitogen-hq/mitogen#652

complex_args

Validates patch mitogen-hq/mitogen#658

custom_lib_unpickle

Validates mitogen-hq/mitogen#689

custom-python-new-style-module-ansible-2-10

Validates custom_python_new_style_module.yml for Ansible 2.10

debops

Validates running debops common on a created CONTAINER_IMAGE using Mitogen. Currently fails due to a bug in debops.

misc

Validates mitogen-hq/mitogen#716

paramiko-ansible-2-10

Validates https://github.com/dw/mitogen/blob/master/tests/ansible/integration/connection_loader/paramiko_unblemished.yml#L3 for Ansible 2.10

perms

Validates mitogen-hq/mitogen#734

perms-ansible-2-10

Validates https://github.com/dw/mitogen/blob/master/tests/ansible/integration/action/fixup_perms2__copy.yml#L29 for Ansible 2.10

wait_for_connection

Validates mitogen-hq/mitogen#655

Playbook-level tests

plays/collections.yml

Validates mitogen-hq/mitogen#652

plays/missing-module-ansible-2-10

Validates https://github.com/dw/mitogen/blob/master/tests/ansible/integration/runner/missing_module.yml#L19, Ansible 2.10 removed the . in the error msg

plays/mixed-mitogen-vanilla-ansible-2-10

Validates https://github.com/dw/mitogen/blob/master/tests/ansible/integration/strategy/_mixed_mitogen_vanilla.yml#L25 for Ansible 2.10

plays/tc-become-pass-ansible-2-10

Validates https://github.com/dw/mitogen/blob/master/tests/ansible/integration/transport_config/become_pass.yml#L1 for Ansible 2.10

ansible tests (not ansible-playbook)

Validates mitogen-hq/mitogen#672

To set up test container:

TEST=misc CONTAINER_IMAGE=python:3.5.3-jessie make run-test

run to test inside of it:

TEST=ansible-setup ANSIBLE_COMMAND=ansible make run-test

Validates mitogen-hq/mitogen#726

To set up test container:

TEST=misc CONTAINER_IMAGE=centos:7 ANSIBLE_VERSION=2.9.9 make run-test

run to test inside of it:

TEST=ansible-setup-become ANSIBLE_COMMAND=ansible INSTALL_ANSIBLE=false ANSIBLE_SSH_PASS='***' make run-test

About

Mitogen patch test framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published