community.general/tests/unit/requirements.txt

62 lines
2.1 KiB
Plaintext
Raw Normal View History

# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
2020-03-09 09:11:07 +00:00
unittest2 ; python_version < '2.7'
importlib ; python_version < '2.7'
2020-06-14 14:34:09 +00:00
# requirement for the memcached cache plugin
python-memcached < 1.60 ; python_version < '3.6'
python-memcached ; python_version >= '3.6'
2020-06-14 14:34:09 +00:00
# requirement for the redis cache plugin
redis
async-timeout ; python_version == '3.11'
2020-03-09 09:11:07 +00:00
# requirement for the linode module
2020-06-14 14:34:09 +00:00
linode-python # APIv3
linode_api4 ; python_version > '2.6' # APIv4
2020-03-09 09:11:07 +00:00
# requirement for the gitlab and github modules
python-gitlab
PyGithub
2020-03-09 09:11:07 +00:00
httmock
# requirement for maven_artifact module
lxml < 4.3.0 ; python_version < '2.7' # lxml 4.3.0 and later require python 2.7 or later
lxml ; python_version >= '2.7'
semantic_version
# requirement for datadog_downtime module
datadog-api-client >= 1.0.0b3 ; python_version >= '3.6'
# requirement for dnsimple module
dnsimple >= 2 ; python_version >= '3.6'
dataclasses ; python_version == '3.6'
Add opentelemetry callback plugin (#3091) * Add opentelemetry callback plugin * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Formatting (text), booleans and renamed env variables * This should be done in a future release * Remove insecure in favour of the OTEL env variable. Add descriptions * Use OpenTelemetrySource * Move generate_distributed_traces * Move update_span_data and set_span_attribute * Move finish_task * Move start_task * Refactor to support UTs * Add first UT * Fix codestyle * opentelemetry callback entry in the botmeta * Fix linting * Fix signature * Mock methods * Use MagicMock * Mock the methods * UT for transform_to_boolean_or_default * Fix linting * Set test data * Mock _time_ns * Exclude tests for python <= 3.6 * Remove obsoleted setup task type configuration * Remove unused docs * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Fix docs * unrequired logic that was originally took from https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/junit.py\#L226 * Use raise_from for the required dependencies * Fix linting * Add requirements for the UTs * add missing dependency for the opentelemetry plugin in the UTs * Add ANSIBLE_ prefix for the ansible specific options * Add more context in the docs and remove duplicated docs * As suggested in the code review * Verify if the OTEL env variables for the endpoint were set * Fix docs typo * Fix linting * Revert "Fix linting" This reverts commit 3a54c827c5472553a6baf5598bc76a0f63f020c1. * Revert "Verify if the OTEL env variables for the endpoint were set" This reverts commit cab9d8648899c28c0345745690c4ec7a41f7e680. * Remove console_output as suggested * Apply suggestions from code review Co-authored-by: flowerysong <junk+github@flowerysong.com> * Delegate the definition of OTEL_EXPORTER_OTLP_INSECURE to the user * Move definitions above, close to the class that uses them Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: flowerysong <junk+github@flowerysong.com>
2021-09-14 19:05:02 +00:00
# requirement for the opentelemetry callback plugin
# WARNING: these libraries rely on Protobuf for Python, which regularly stops installing.
# That's why they are disabled for now.
# opentelemetry-api ; python_version >= '3.6' and python_version < '3.10'
# opentelemetry-exporter-otlp ; python_version >= '3.6' and python_version < '3.10'
# opentelemetry-sdk ; python_version >= '3.6' and python_version < '3.10'
# requirement for the elastic callback plugin
elastic-apm ; python_version >= '3.6'
# requirements for scaleway modules
passlib[argon2]
# requirements for the proxmox modules
proxmoxer < 2.0.0 ; python_version >= '2.7' and python_version <= '3.6'
proxmoxer ; python_version > '3.6'
Feat nomad token module (#7523) * Add nomad_token module * Updatate nomad maintainers list * Fix Example docstring * Fix identations and Flake8 rules * Fix trailing whitespace * Fix SyntaxError error * change stringh format * Fix Return doc string * Fix Examples * Fix flake8 rule W293 * Fix Doc schema * Fix argument_spec * Add maintainer * Fix Example doc * Remove token_info * Change Doc * Change nomad api acl token link * Remove return whitespace * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Fix add changed state to True * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Change suport check mode * Add unity tests * Remove unused import * Remove tests unused import * Change python-nomad versions Co-authored-by: Felix Fontein <felix@fontein.de> * Change acl for ACL Co-authored-by: Felix Fontein <felix@fontein.de> * Add ACL to all docs * Change msg to ansible common return value * Fix flake8 W291 * Update description. --------- Co-authored-by: Felix Fontein <felix@fontein.de>
2023-12-03 12:51:39 +00:00
Proxmox remote pct connection (#8424) * First Revision (squashed) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Second Revision (squashed) * implement data_in * Removed quot() There is no need for quoting, exec_command gets the command already quoted with shell from Ansible * Use shell from self._shell * Improved error handling * updated docs * Use Int for Container ID * Updated docs to include detailed description for non root usage * Fix ansible_user var in example * Fix become method We need to differentiate between become method used in Proxmox and the one inside the container. * Implement review findings - f-Strings - lower() when input - yaml indent - consistent quotes - use to_text() - Enhanced examples - Ansibullbot findings * remove ssh cache * Ensure we delete the tempfile * use octal mode * Use FileLock().lock_file * ansibullbot findings * refactor _connect() * Update plugins/connection/pct_remote.py Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * renamed plugin to proxmox_pct_remote * Use ansible.builtin.ping as example * added unit tests * fixed bugs in close() * catch invalid host key * test invalid host key * Added integration test * cleanup * setup test via ansible * Revised notes based on review feedback * Review findings Co-authored-by: Felix Fontein <felix@fontein.de> * gather_facts hint in example * Update tests/integration/targets/connection_proxmox_pct_remote/aliases Co-authored-by: Felix Fontein <felix@fontein.de> * Fix FreeBSD, deactivate macOS * Test and Fix: Hang on copy with empty content --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de>
2025-01-18 15:27:06 +00:00
# requirements for the proxmox_pct_remote connection plugin
paramiko >= 3.0.0 ; python_version >= '3.6'
Feat nomad token module (#7523) * Add nomad_token module * Updatate nomad maintainers list * Fix Example docstring * Fix identations and Flake8 rules * Fix trailing whitespace * Fix SyntaxError error * change stringh format * Fix Return doc string * Fix Examples * Fix flake8 rule W293 * Fix Doc schema * Fix argument_spec * Add maintainer * Fix Example doc * Remove token_info * Change Doc * Change nomad api acl token link * Remove return whitespace * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Fix add changed state to True * Update plugins/modules/nomad_token.py Co-authored-by: Felix Fontein <felix@fontein.de> * Change suport check mode * Add unity tests * Remove unused import * Remove tests unused import * Change python-nomad versions Co-authored-by: Felix Fontein <felix@fontein.de> * Change acl for ACL Co-authored-by: Felix Fontein <felix@fontein.de> * Add ACL to all docs * Change msg to ansible common return value * Fix flake8 W291 * Update description. --------- Co-authored-by: Felix Fontein <felix@fontein.de>
2023-12-03 12:51:39 +00:00
#requirements for nomad_token modules
python-nomad < 2.0.0 ; python_version <= '3.6'
python-nomad >= 2.0.0 ; python_version >= '3.7'
# requirement for jenkins_build, jenkins_node, jenkins_plugin modules
python-jenkins >= 0.4.12