summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix hcloud_datacenter_info testSam Doran2021-11-031-2/+2
| | | | A new datacenter was added
* Fix AWS Lambda tests.Matt Clay2021-10-202-13/+13
|
* ansible-test - Remove obsolete junos entries.Matt Clay2021-09-301-2/+0
|
* Skip failing tests on OS X 10.11.Matt Clay2021-09-302-0/+2
|
* [stable-2.9] Don't show params when there is an issue with `set_option(s)` ↵Matt Martz2021-09-291-0/+22
| | | | | | | (#75805). (#75810) (cherry picked from commit 79e9dae29212a88aa60122ca6bd608947399017f) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.9] ansible-test - Fix `pylint` error.Matt Clay2021-09-271-1/+1
| | | | | | | | | This prevents `pylint` from failing with warnings reported as errors and with no test results given. Resolves https://github.com/ansible/ansible/issues/75791 (cherry picked from commit a00c61719b825c21c629d25244715c82716548e3) Co-authored-by: Matt Clay <matt@mystile.com>
* Fix win_chocolatey_facts test.Matt Clay2021-09-081-1/+1
| | | | ci_complete
* Disable github_issue test. (#75659)Matt Clay2021-09-081-0/+1
|
* Revert "[stable-2.9] Add additional constraint for `setuptools` (#75651)"Matt Clay2021-09-071-1/+0
| | | | | | This reverts commit 5faae7f464dc7c60ed3a416656ce0144ff94125b. Now that `setuptools` version 58.0.3 has been released, this change is no longer needed.
* [stable-2.9] Add additional constraint for `setuptools` (#75651)Sam Doran2021-09-071-0/+1
| | | | The recent release of setuptools 58.0.2 breaks installation of coverage since it references the 'use_2to3' feature.
* Attributes compat (#75563) (#75622)Brian Coca2021-09-021-1/+2
| | | | | | | | | | | | | | | | | * Attributes compat (#75563) * ignore 'attributes' for json dump let existing overrides display, wont be full info but still pertinent info though user will have to check newer versions (cherry picked from commit 463cf9fe244430249701509fc3ee7636a18afc44) (cherry picked from commit 93cc74ba13c28785d8e4b62adc8eb62f42860efb) * Update test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/schema.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
* [2.9] Fix dnf package matching (#75411) (#75416)Sloane Hertel2021-08-061-0/+28
| | | | | | | | | | | | | | | | | * Fix dnf package matching (#75411) * Fix a bug with the dnf module not using all components of a package name when filtering to determine if it's installed * changelog * Simplify splitting on the last '.' * Update lib/ansible/modules/dnf.py (cherry picked from commit b541a148d51e75b298e71161c022b12cd8ebba7c) * Fix dnf test assertion (cherry picked from commit 91a26ddcefb393e48ac93d442b3922bf2fde0de7)
* Allow to ignore rstcheck errors. (#75405)Felix Fontein2021-08-051-1/+1
| | | (cherry picked from commit 46819a65fa309dad7349c9dd325532f0a9c576ae)
* [stable-2.9] allow env to override unspecified unsafe_writes (#73282) (#75397)Matt Martz2021-08-044-0/+87
| | | | | | | | | | | | | | | | | | | | | | | * [stable-2.9] allow env to override unspecified unsafe_writes (#73282) * allow env var for fallback value for unspecified unsafe_writes. (cherry picked from commit c7d4acc12f672d1b3a86119940193b3324584ac0) Co-authored-by: Brian Coca <bcoca@users.noreply.github.com> * ensure unsafe writes fallback (#70722) * Ensure we actually fallback to unsafe_writes when set to true add integration test add fix for get_url not passing the parameter from args (cherry picked from commit 932ba3616067007fd5e449611a34e7e3837fc8ae) * Added clog missing for issue 70722 (#73175) (cherry picked from commit d6670da1d7bc81dccd522d1bc27cc25164ef1aba) Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
* ansible-test: exposes tiny_prefix variable (#75130)Gonéri Le Bouder2021-07-121-0/+2
| | | | | | ansible-test aws provider now creates and exposes a new tiny_prefix variable to provide a shorter prefix for the AWS tests. (cherry picked from commit 5b8fb4dcd3d84aad77330644a7326bc16dd02a3b)
* [stable-2.9] Prevent ansible_failed_task from further templating (#74290) ↵Matt Martz2021-07-092-1/+20
| | | | | | | | | | (#75220) * Prevent ansible_failed_task from further templating Fixes #74036 * Add changelog. (cherry picked from commit 664531d7d6253d5bdb182727501c08e3b5aea0c1) Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
* [stable-2.9] Restrict packaging to < 21.0 for Python < 3.6. (#75186).Felix Fontein2021-07-071-0/+1
| | | | | | (cherry picked from commit 67bc49e001e6cbd6736e1dbc3d8b07f9bccda2bb) Co-authored-by: Felix Fontein <felix@fontein.de>
* [stable-2.9] Skip docker_container test when running in a containerSam Doran2021-07-071-0/+1
|
* Skip broken test on OS XSam Doran2021-07-071-0/+1
|
* Add constraints for new ruamel release (#75134)Sam Doran2021-06-283-0/+16
| | | Newer releases of ruamel.yaml and ruamel.yaml.clib require newer Python versions.
* [bp-2.9] firewalld: Ensure idempotency (#74992)Abhijeet Kasurde2021-06-142-31/+58
| | | | | Fixes: https://github.com/ansible-collections/ansible.posix/issues/179 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* fix unsafe preservation across newlines (#74960) (#74976)Brian Coca2021-06-112-0/+23
| | | | | | | CVE-2021-3583 ensure we always have unsafe Co-authored-by: Rick Elrod <rick@elrod.me> (cherry picked from commit 4c8c40fd3d4a58defdc80e7d22aa8d26b731353e)
* Skip task for CentOS 8 as well (#74913)Sam Doran2021-06-071-2/+2
| | | | Something change in the packages that was failing on RHEL a few weeks ago. Now it is failing in CentOS 8 as well
* [2.9] [tests] add websocket-client constraint, python 2 (#74750)Rick Elrod2021-05-212-0/+9
| | | | | | | | | | | | | | Change: - websocket-client >= 1 requires python 3, so add constraint for python 2. Test Plan: - ci_complete Signed-off-by: Rick Elrod <rick@elrod.me> * avoid a mysql_variables check on rhel 8 Signed-off-by: Rick Elrod <rick@elrod.me>
* [stable-2.9] Disable rabbitmq integration testsSam Doran2021-05-147-0/+7
|
* [stable-2.9] CI and compat fixes for Jinja2 >= 3.0 (#74666) (#74672)Matt Clay2021-05-1210-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [stable-2.9] CI and compat fixes for Jinja2 >= 3.0 (#74666) * Add constraint for MarkupSafe MarkupSafe >= 2.0.0 requires Python >= 3.6.0. Add a constraint for older Python versions and fix the `groupby_filter` test. * Fix template_jinja2_latest test. * patch filter decorators on newer Jinja2 * Jinja2 >= 3.0 renames several filter decorators used by Ansible itself, as well as by filters in collections. This patch ensures that the old names are usable within Ansible and by collections without warnings or errors. * Ignore docs-build issues. * Remove unnecessary ignore. * Disable failing nuage_vspk test. * Fix inventory_aws_conformance integration test. (cherry picked from commit f99d0248517c9dacc4594bc87d54626cdce59bfd) Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Davis <mrd@redhat.com>. Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.9] Fix ansible-test AZP build lookup.Matt Clay2021-05-041-2/+2
| | | | | | (cherry picked from commit 877e5b3dfe3d19d4fdd98e415a1d9b5c5efb204b) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.9] Remove obsolete Shippable specific scripts.Matt Clay2021-05-045-230/+2
| | | | | | | Also remove some other unncessary code from CI scripts.. (cherry picked from commit be7de9844e8299fa529a4ffed0d293373e92b44e) Co-authored-by: Matt Clay <matt@mystile.com>
* shift a few CI groups [2.9] (#74553)v2.9.21Rick Elrod2021-05-0311-11/+11
| | | | | ci_complete Signed-off-by: Rick Elrod <rick@elrod.me>
* [stable-2.9] incidental_setup_rabbitmq test - Use official repo for ↵Sam Doran2021-05-031-2/+2
| | | | | | | | | rabbitmq-erlang (#74453) Previously it was hosted on bintray, but that service is shutting down on May 1. Using the new repository also required using a newer version of RabbitMQ.. (cherry picked from commit 62cba4a6adc666f1e0100c385de20744002e4c42) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.9] Fix pypi-test-container port conflict.Matt Clay2021-04-261-1/+0
| | | | | | (cherry picked from commit cb7f4f19717e91930f695fe0be5adc6cacf5162f) Co-authored-by: Matt Clay <matt@mystile.com>
* [ansible-test] Sync opensuse containers with 2.10 (#74436)Rick Elrod2021-04-266-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ansible-test] Sync opensuse containers with 2.10 Change: - OpenSuSE 15.1 is now EOL - Switch containers to use what 2.10 uses, which has 15.2. Test Plan: - ci_complete Signed-off-by: Rick Elrod <rick@elrod.me> * docker version Signed-off-by: Rick Elrod <rick@elrod.me> * needs p7zip-full, otherwise we only get 7zr Signed-off-by: Rick Elrod <rick@elrod.me> * Make sure py2 stays py2 Signed-off-by: Rick Elrod <rick@elrod.me> * no wildcard? Signed-off-by: Rick Elrod <rick@elrod.me> * -x instead of --xml Signed-off-by: Rick Elrod <rick@elrod.me>
* Actually run blocks/finalized_task test (#74291) (#74310)Martin Krizek2021-04-261-0/+2
| | | (cherry picked from commit 7fecb7ccc381ef61cadc2702b3df0fc73393077a)
* [stable-2.9] Fix ansible-test docker container IP detection. (#74390)Matt Clay2021-04-261-1/+7
| | | | | (cherry picked from commit 14ff5e213cd084480d628ec0562200b174b6fa79) Co-authored-by: Matt Clay <matt@mystile.com>
* Disable failing hcloud_server testSam Doran2021-04-231-0/+1
|
* [stable-2.9] Switch to hashlib.sha256() for ansible-test (#72411) (#74170)Matt Clay2021-04-121-1/+1
| | | | | | | | | | | When FIPs mode is enable on centos-8, we are not able to load md5 functions. Signed-off-by: Paul Belanger <pabelanger@redhat.com> (cherry picked from commit a95213d2f521bc281f2be102a1b7008bc6762a7c) Co-authored-by: Paul Belanger <pabelanger@redhat.com> Co-authored-by: Paul Belanger <pabelanger@redhat.com>
* [stable-2.9] validate_modules: fails with .id attribute not found (#73322) ↵Gonéri Le Bouder2021-04-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | (#74179) * validate_modules: fails with .id attribute not found This patch addresses a problem in the `found_try_except_import` test. This module tries to identify lines like: `HAS_FOO = True` In this case, the target (`HAS_FOO`) is of type `ast.Name` and has a `id` attribute which provide the name. In my case, I've a line that set a module attribute`. In this case, the target (`module.var`) has the type `ast.Attribute` and no `id` attribute. The code trigger an `AttributeError` exception. This patch ensures we compare a `ast.Name`. * Update test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py (cherry picked from commit 7cf80f50d16b7a7a2ba9f1318bdca5df53936369)
* [stable-2.9] ansible-test - ensure trailing separator is added for ↵Sam Doran2021-04-121-1/+1
| | | | | | | | | connection unit test target (#74176) (#74182) For connection units tests, if the `__init__.py` file is modified, the trailing separator was not added, making the target invalid. (cherry picked from commit 7b79b69369) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.9] Add PyPI proxy container for tests on Python 2.6.. (#74206)Matt Clay2021-04-125-1/+164
| | | | | (cherry picked from commit becf9416736dc911d3411b92f09512b4dae2955c) Co-authored-by: Matt Clay <matt@mystile.com>
* [stable-2.9] find - set proper default based on use_regex (#73961) (#73966)Sam Doran2021-04-051-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using "use_regex: yes" and setting an excludes: without specifying a pattern: the existing code passes the file-glob '*' to the regex matcher. This results in an internal invalid-regex exception being thrown. This maintains the old semantics of a default match-all for pattern: but switches the default to '.*' when use_regex is specified. The code made sense as-is before excludes: was added (2.5). In that case, it made no sense to set use_regex but *not* set a pattern. However, with excludes: it now makes sense to only want to exclude a given regex but not specify a specific matching pattern. Closes: #50067 * moved change to new location added changelog * Update lib/ansible/modules/find.py Co-authored-by: Ian Wienand <iwienand@redhat.com>. (cherry picked from commit 089d0a0508a470799d099d95fc371e66756a00b3) Co-authored-by: Brian Coca <bcoca@users.noreply.github.com> * Update fix_find_default.yml Co-authored-by: Rick Elrod <rick@elrod.me>
* add optional module_utils import support (#73832) (#73916)Matt Davis2021-04-044-6/+103
| | | | | | | | | Treat core and collections module_utils imports nested within any Python block statement (eg, `try`, `if`) as optional. This allows Ansible modules to implement runtime fallback behavior for missing module_utils (eg from a newer version of ansible-core), where previously, the module payload builder would always fail when unable to locate a module_util (regardless of any runtime behavior the module may implement). * sanity test fixes ci_complete (cherry-picked from 3e1f6484d77f2d7546952cfa22a8534d74ed3dc6)
* [stable-2.9] Ensure task from the worker is finalized/squashed (#73881) (#73929)Matt Martz2021-04-042-0/+20
| | | | | | * Ensure task from the worker is finalized/squashed. Fixes #57399. Fixes #49942 (cherry picked from commit 832631b) Co-authored-by: Matt Martz <matt@sivel.net>
* [security] Add more missing no_logs (#74115)Rick Elrod2021-04-041-2/+0
| | | | | | | Change: - Add missing no_log on fields and subfields which should have it. - Update several changelogs with CVE id. Signed-off-by: Rick Elrod <rick@elrod.me>
* [stable-2.9] Fix ansible-test coverage exporting.Matt Clay2021-03-302-3/+11
| | | | (cherry picked from commit b75844af4579e9f96c7a19b5e9e18d0d7cbdb684)
* Ensure unit test paths for connection and inventory plugins are based on the ↵Mark Chappell2021-03-191-3/+5
| | | | context (#73877)
* Move file needed by cs_volume test to S3Sam Doran2021-03-171-1/+1
| | | | There is a bad mirror missing the file and it is causing tests to fail.
* Update mongodb replicaset check_compatibility function (#72299)Rhys2021-03-082-1/+2
| | | * Update check_compatibility function
* Backport of https://github.com/ansible-collections/community.docker/pull/88 ↵Felix Fontein2021-03-081-4/+20
| | | | to stable-1. (#73816)
* [stable-2.9] Add AlmaLinux to the family of Red Hat-like operating systems ↵Sam Doran2021-03-081-0/+53
| | | | | | | | | | (#73541) (#73544) * Add changelog and fixtures for AlmaLinux support Co-authored-by: Christoph Schug <com+github@schug.net>. (cherry picked from commit 2f5c83dfb1855342389436e72d64cf7afe9698e6) Co-authored-by: Sam Doran <sdoran@redhat.com>
* [stable-2.9] Don't treat host_pinned as lockstep (#73484) (#73513)Matt Martz2021-03-085-0/+86
| | | | | | | | | | | | | | * [stable-2.9] Don't treat host_pinned as lockstep (#73484) * Don't treat host_pinned as lockstep. Fixes #73364 * Add intg tests. (cherry picked from commit d3f3784b86789b7b55782b0af4fba6d6bb935f19) Co-authored-by: Matt Martz <matt@sivel.net> * Make non-lockstep callback tests more deterministic (#73511) (cherry picked from commit 125c220343deb60ad64f4a412e6f670ddb511f4c)