Skip to main content

Python module to help test or validate Ansible, specifically ansible modules

Project description

Python module to help test or validate Ansible, specifically ansible modules

Installation

This module must be installed alongside the current development release of Ansible to appropriately test the current developemnt state of modules.

Current Validations

Modules

Errors

  1. Interpreter line is not #!/usr/bin/python

  2. main() not at the bottom of the file

  3. Module does not include from ansible.module_utils.basic import *

  4. module_utils imports at the top (excluding whitelisted module_utils)

  5. Invalid module_utils import

  6. Missing DOCUMENTATION or invalid YAML

  7. Missing EXAMPLES

  8. Invalid Python Syntax

  9. Tabbed indentation

  10. Use of sys.exit()

  11. Missing GPLv3 license header in module

  12. Powershell module missing WANT_JSON

  13. Powershell module missing REPLACER_WINDOWS

Warnings

  1. Whitelisted module_utils imports at the top

  2. Try/Except HAS_ expression missing

  3. Missing RETURN

  4. import json found

  5. Module contains duplicate globals from basic.py

Notes

  1. module_utils imports not at bottom may be error or warning depending on the import.

Module Directories (Python Packages)

  1. Missing __init__.py

Project details


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