{"id":15679909,"url":"https://github.com/sivel/ansible-testing","last_synced_at":"2025-10-17T17:21:07.280Z","repository":{"id":32253280,"uuid":"35827634","full_name":"sivel/ansible-testing","owner":"sivel","description":"Python module to help test or validate Ansible, specifically ansible modules","archived":false,"fork":false,"pushed_at":"2016-10-25T14:06:27.000Z","size":130,"stargazers_count":11,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-11T10:53:44.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sivel.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-18T15:59:39.000Z","updated_at":"2017-06-26T14:32:09.000Z","dependencies_parsed_at":"2022-09-11T07:10:20.083Z","dependency_job_id":null,"html_url":"https://github.com/sivel/ansible-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sivel/ansible-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fansible-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fansible-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fansible-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fansible-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sivel","download_url":"https://codeload.github.com/sivel/ansible-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fansible-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279383284,"owners_count":26159719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T16:39:07.842Z","updated_at":"2025-10-17T17:21:07.235Z","avatar_url":"https://github.com/sivel.png","language":"Python","readme":"**WARNING:** This repository is no longer active, the code has been merged into the main `Ansible \u003chttps://github.com/ansible/ansible/tree/devel/test/sanity/validate-modules\u003e`_ repository.\n\nansible-testing\n===============\n\nPython module to help test or validate Ansible, specifically ansible\nmodules\n\nInstallation\n------------\n\nThis module must be installed alongside the current development\nrelease of Ansible to appropriately test the current development\nstate of modules.\n\nUsage\n~~~~~\n\n::\n\n    pip install git+https://github.com/ansible/ansible.git@devel#egg=ansible\n    pip install git+https://github.com/sivel/ansible-testing.git#egg=ansible_testing\n    ansible-validate-modules /path/to/ansible-modules-extras\n\nHelp\n~~~~\n\n::\n\n    usage: ansible-validate-modules [-h] [-w] [--exclude EXCLUDE] modules\n\n    positional arguments:\n      modules            Path to module or module directory\n\n    optional arguments:\n      -h, --help         show this help message and exit\n      -w, --warnings     Show warnings\n      --exclude EXCLUDE  RegEx exclusion pattern\n\nCurrent Validations\n-------------------\n\nModules\n~~~~~~~\n\nErrors\n^^^^^^\n\n#. Interpreter line is not ``#!/usr/bin/python``\n#. ``main()`` not at the bottom of the file\n#. Module does not import ``ansible.module_utils.basic``\n#. Missing ``DOCUMENTATION``\n#. Documentation is invalid YAML\n#. Invalid schema for ``DOCUMENTATION``\n#. Missing ``EXAMPLES``\n#. Invalid Python Syntax\n#. Tabbed indentation\n#. Use of ``sys.exit()`` instead of ``exit_json`` or ``fail_json``\n#. Missing GPLv3 license header in module\n#. Powershell module missing ``WANT_JSON``\n#. Powershell module missing ``POWERSHELL_COMMON``\n#. New modules have the correct ``version_added``\n#. New arguments have the correct ``version_added``\n#. Modules should not import requests, instead use ``ansible.module_utils.urls``\n#. Missing ``RETURN`` for new modules\n\nWarnings\n^^^^^^^^\n\n#. Try/Except ``HAS_`` expression missing\n#. Missing ``RETURN`` for existing modules\n#. ``import json`` found\n#. Module contains duplicate globals from basic.py\n\nModule Directories (Python Packages)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n#. Missing ``__init__.py``\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivel%2Fansible-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivel%2Fansible-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivel%2Fansible-testing/lists"}