Posts Tagged ‘testinfra’

Ignore PEP rules with Molecule / Testinfra / flake8

I’m always forgetting how to configure my molecule.yml file to ignore certain PEP8 rules. Here’s a quick example showing how to ignore the E501 Line too long rule: verifier: name: testinfra lint: name: flake8 options: ignore: ‘E501’

Using Ansible Modules with Testinfra

I’ve been looking at improving the quality of the testing I do with Molecule and Testinfra. Simple checks like service.is_running or package.is_installed have their place but they’re pretty limited as to what assurances they provide us. Part of the issue I have is that some tests need a fair bit of setup to make them […]