mirror of https://github.com/ansible/ansible.git
ansible-test action-plugin-docs sidecar (#83325)
Fix to have ansible-test sanity --test action-plugin-docs to check for action plugin documentation inside a sidecar file rather than a Python module.pull/83432/head
parent
6e8a7ed327
commit
a9b902f579
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- ansible-test action-plugin-docs - Fix to check for sidecar documentation for action plugins
|
@ -0,0 +1,4 @@
|
|||||||
|
shippable/posix/group3 # runs in the distro test containers
|
||||||
|
shippable/generic/group1 # runs in the default test container
|
||||||
|
context/controller
|
||||||
|
needs/target/collection
|
@ -0,0 +1 @@
|
|||||||
|
random: data
|
@ -0,0 +1,11 @@
|
|||||||
|
# Copyright (c) 2024 Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from ansible.plugins.action import ActionBase
|
||||||
|
|
||||||
|
|
||||||
|
class ActionModule(ActionBase):
|
||||||
|
def run(self, tmp, task_vars):
|
||||||
|
return {"changed": False}
|
@ -0,0 +1,11 @@
|
|||||||
|
# Copyright (c) 2024 Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from ansible.plugins.action import ActionBase
|
||||||
|
|
||||||
|
|
||||||
|
class ActionModule(ActionBase):
|
||||||
|
def run(self, tmp, task_vars):
|
||||||
|
return {"changed": False}
|
@ -0,0 +1,11 @@
|
|||||||
|
# Copyright (c) 2024 Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from ansible.plugins.action import ActionBase
|
||||||
|
|
||||||
|
|
||||||
|
class ActionModule(ActionBase):
|
||||||
|
def run(self, tmp, task_vars):
|
||||||
|
return {"changed": False}
|
@ -0,0 +1,19 @@
|
|||||||
|
# Copyright (c) 2024 Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
DOCUMENTATION = r"""
|
||||||
|
---
|
||||||
|
module: with_py
|
||||||
|
short_description: Short description
|
||||||
|
description: Long description
|
||||||
|
options: {}
|
||||||
|
author:
|
||||||
|
- Ansible Core Team (@ansible)
|
||||||
|
"""
|
||||||
|
|
||||||
|
EXAMPLES = r"""
|
||||||
|
- name: Some example
|
||||||
|
ns.col.with_py:
|
||||||
|
"""
|
||||||
|
|
||||||
|
RETURNS = ""
|
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2024 Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
DOCUMENTATION:
|
||||||
|
module: with_yaml
|
||||||
|
short_description: Short description
|
||||||
|
description: Long description
|
||||||
|
options: {}
|
||||||
|
author:
|
||||||
|
- Ansible Core Team (@ansible)
|
||||||
|
|
||||||
|
EXAMPLES: |
|
||||||
|
- name: Some example
|
||||||
|
ns.col.with_yaml:
|
||||||
|
|
||||||
|
RETURNS: {}
|
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2024 Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
DOCUMENTATION:
|
||||||
|
module: with_yml
|
||||||
|
short_description: Short description
|
||||||
|
description: Long description
|
||||||
|
options: {}
|
||||||
|
author:
|
||||||
|
- Ansible Core Team (@ansible)
|
||||||
|
|
||||||
|
EXAMPLES: |
|
||||||
|
- name: Some example
|
||||||
|
ns.col.with_yml:
|
||||||
|
|
||||||
|
RETURNS: {}
|
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
source ../collection/setup.sh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
ansible-test sanity --test action-plugin-docs --color "${@}"
|
Loading…
Reference in New Issue