summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add unit tests for module_utils.compat.datetime (#81483)Matt Clay2023-08-092-0/+34
|
* Remove unreachable code in password lookup test (#81482)Matt Clay2023-08-091-15/+6
|
* Fix constructed inventory plugin unit test (#81481)Matt Clay2023-08-091-5/+5
|
* Revert logic to use Popen.communicate (#80874)Matt Martz2023-08-093-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Back out use of communicate, add better comments, add bufsize, and align with subprocess._communicate * tests * re-order logic slightly * more comments * loopty loop * yet another comment * Revert "yet another comment" This reverts commit 96cd8ada5fa0441b92f2298bdaa6cb40594847d2. * Revert "loopty loop" This reverts commit 96ea066f6a7d18902c04a14f18dd79b38e56f5e7. * ci_complete * Copy in comment too * Wording updates Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com> * Back out bufsize --------- Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
* restore conditional lookup nerfing (#81460)Matt Davis2023-08-091-0/+26
| | | | * a recent optimization lost the unsafe lookup disable behavior when templating conditionals with inline templates that referred to untrusted values * added regression test to catch this case
* Bump test container versions to latest (#81471)Abhijeet Kasurde2023-08-091-3/+3
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Sanity: Bump version to match Python 3.12 (#81399)Abhijeet Kasurde2023-08-0815-70/+50
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* filters vault/unvault fix vault_id parameter usage (#81422)Brian Coca2023-08-043-1/+14
| | | | | | | * vault/unvault filters, fixed id field to match documented. fixes #81420 Co-authored-by: Felix Fontein <felix@fontein.de>
* iptables chain creation does not populate with a rule (#80257)Kristopher Newsome2023-08-042-32/+29
| | | | | | | | | | | | | * iptables chain creation does not populate with a rule fixes #80256 * Add changelog fragment * Add rules and flush chain during integration tests * Check chain rule on comment * Update test/integration/targets/iptables/tasks/chain_management.yml
* dpkg_selections: Check if package exists before selection operation (#81406)Abhijeet Kasurde2023-08-031-0/+12
| | | | | | | | * dpkg_selections: Check if the package exists before the selection operation Fixes: #81404 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* galaxy: Cross check the collection type (#81423)Abhijeet Kasurde2023-08-031-0/+21
| | | | | | | | | * User-provided collection type might differ from collection source. Cross-check the type before proceeding Fixes: #79463 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Overhaul package-data sanity test (#81427)Matt Clay2023-08-034-257/+112
| | | The sanity test now only inspects the sdist and wheel instead of trying to install the sdist using setup.py.
* password_hash - fix bcrypt algorithm when passlib is not installed (#81385)Sloane Hertel2023-08-031-0/+8
|
* ansible-galaxy - improve ignoring multiple signature status codes (#77610)Sloane Hertel2023-08-031-0/+55
| | | | | * ansible-galaxy - improve ignoring multiple signature status codes when using --ignore-signature-status-code * fix backwards compatibility by adding a new plural option instead, and hide the singular from --help
* ansible-test - Update source layout detection (#81418)Matt Clay2023-08-032-2/+2
|
* Extend setup_collections timeout to 3 minutes (#81408)Matt Martz2023-08-021-1/+1
|
* Remove unused sanity test code (#81398)Matt Clay2023-08-011-4/+0
|
* CI: remove FreeBSD 12.4 from test matrix (#81315)Abhijeet Kasurde2023-08-011-1/+0
| | | | | Fixes: #80417 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Omit pre-built man pages from sdist (#81395)Matt Clay2023-08-0114-422/+94
| | | | | | | | | Since man pages aren't accessible to users after a `pip install`, there's no need to include them in the sdist. This change makes it trivial to build man pages from source, which makes them much easier to iterate on. It also simplifies creation and testing of the sdist, since it no longer requires building man pages. The new `packaging/cli-doc/build.py` script can generate both man pages and RST documentation. This supports inclusion on the docs site without a dependency on `ansible-core` internals. Having a single implementation for both simplifies keeping the two formats in sync.
* ansible-test: remove alpine 3.17 (#81124)Brian Coca2023-08-011-1/+0
|
* Add option to blockinfile to wrap inserted block with blank lines (#81083)Davide Sbetti2023-07-263-0/+240
| | | * Add new blockinfile options 'prepend_newline' and 'append_newline' to wrap inserted block with blank lines
* remove deprecated datetime.datetime methods (#81323)Sloane Hertel2023-07-262-10/+9
| | | | | | | | * Remove datetime.datetime.utcfromtimestamp and datetime.datetime.uctnow from controller code since they are deprecated in Python 3.12. * Update target side code to use new utcfromtimestamp and utcnow utils in ansible.module_utils.compat.datetime that return aware datetime objects on Python 2.7 and 3. Co-authored-by: Matt Clay <matt@mystile.com>
* pep8: fix sanity for 3.12 (#81348)Abhijeet Kasurde2023-07-261-1/+1
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fix ansible_pkg_mgr is unknown in Kylin Linux (#81314)ERIK2023-07-251-0/+12
| | | Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
* fix redis cache setup (#81329)Matt Davis2023-07-251-1/+2
| | | | * use https repo * increase default download timeout of 10s for slow/lagged connections
* Refactor test cases to improve unit test quality (#81334)freddiewanah2023-07-251-5/+2
|
* Raise the minimum setuptools version to 66.1.0 (#81341)Matt Clay2023-07-255-35/+4
| | | | | | | | | * Raise the minimum setuptools version to 66.1.0 This is the first version to support Python 3.12. While Python 3.10 and 3.11 could use an older version, a consistent minimum is easier to work with and test against. * Fix PEP 517 integration test
* Update ansible-test containers to test Python 3.12 with the test venvs (#81330)Sloane Hertel2023-07-221-3/+3
|
* add Python 3.12 support to ansible-test (#80834)Sloane Hertel2023-07-216-8/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | * update docker containers versions to use newer ansible-test ref in the pre-built venvs * Allow invoking ansible-test with Python 3.12 * Add python3.12 to the INTERPRETER_PYTHON_FALLBACK * changelog * add Python 3.12 as a non-default Python version for the test containers * Update mypy ignores for Python 3.12 * Add Python 3.12 to CI matrix for unit tests, generic tests, and galaxy * Update unit test for using the Python 2 collection loader path with Python 3. Skip the existing test on Python 3.12, since find_module is removed. Suppress the pre-existing deprecation warnings using the Python 2 codepath with Python 3. Add a test for Python >= 3.12, which doesn't call find_module. * Ignore sanity test errors on systems without libselinux present.
* Consider all configured collection paths when installing collections (#81243)Sloane Hertel2023-07-212-3/+8
| | | | | | | | | * Only install collections which can't be satisfied by a collection in any of the configured paths. * Improve warning for unexpected collection install path Fix warning when path is configured, but is a pip-managed path Normalize the path before validating to fix warning consistency
* Update sanity requirements comments (#81321)Matt Clay2023-07-203-6/+5
| | | | | Also remove a redundant indirect dependency. The requirements file updates are being deferred until other changes are required.
* ansible-test: cloudstack: bump test container version (#81319)René Moser2023-07-201-1/+1
|
* update ansible-galaxy testserver to use SSLContext.load_cert_chain (#80961)Sloane Hertel2023-07-201-12/+7
| | | * update ansible-galaxy testserver to use SSLContext.load_cert_chain for Python 3.12 compatibility
* ansible-test - update module_utils/urls.py unit test to support cryptography ↵Sloane Hertel2023-07-201-4/+25
| | | | >= 41.0.0 (#81296)
* Add test for 256-color configuration values (#78613)Yuri Khan2023-07-192-0/+18
| | | | | | | | | | | | | | | * Add test for 256-color configuration values See #78607. * color is not restricted to 16 choices currently supports up to 256, not listing them all TOOD: create examples and point to/list the basic 16 --------- Co-authored-by: Brian Coca <brian.coca+git@gmail.com> Co-authored-by: Matt Clay <matt@mystile.com>
* Add missing skip entries for selinux module_util (#81305)Matt Clay2023-07-191-0/+2
|
* ansible-test - Pre-build PyYAML wheels (#81300)Matt Clay2023-07-1914-2/+121
| | | | This works around Cython failures when attempting to install PyYAML >= 5.4 <= 6.0.
* Disable cron integration test on Alpine (#81301)Matt Clay2023-07-191-0/+4
| | | The tests are now failing due to the lack of `libfaketime` in the Alpine repos.
* ansible-test - Narrow the scope of some sanity tests (#81273)Matt Clay2023-07-1519-5/+94
| | | | | | | | | | | | | | | * ansible-test - Limit scope of replace-urlopen test Only ansible-core code and plugins in collections can be expected to rely on module_utils. * ansible-test - Limit scope of use-compat-six test Only ansible-core code and plugins in collections can be expected to rely on module_utils. * ansible-test - Limit scope of no-get-exception test Only ansible-core code and plugins in collections should be checked for usage of outdated module_utils functions. * Add integration tests
* ansible-test - Fix sanity traceback with `-e` opt (#81271)Matt Clay2023-07-157-11/+31
| | | | | Also remove redundant warning about missing programs. Includes integration tests to verify `-e` does not traceback.
* Remove BOTMETA.yml and sanity tests for it (#81198)Martin Krizek2023-07-144-96/+0
|
* Add `docs` and `examples` to obsolete-files test (#81258)Matt Clay2023-07-141-0/+2
|
* replace: handle exception while parsing escape char (#81244)Abhijeet Kasurde2023-07-131-0/+19
| | | | | | | | | | | | | | | | | * replace: handle exception while parsing escape char * Fail early when bad escape character is provided in replace module Fixes: #79364 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Run tests in Python 3.6 or greater env Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> --------- Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Replace `reboot_command` integration test with unit tests (#78956)Sviatoslav Sydorenko2023-07-133-23/+214
| | | | Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-test - remove Fedora 37 container and remote support (#81093)Sloane Hertel2023-07-132-2/+0
|
* ansible-test - Remove obsolete WinRM setup script (#81249)Matt Clay2023-07-133-443/+0
| | | The WinRM setup is handled internally by ansible-core-ci now.
* Omit hacking directory from MANIFEST.in (#81245)Matt Clay2023-07-121-19/+2
| | | | | * Omit `hacking` directory from `MANIFEST.in` * Update package-data sanity test
* Add pymarkdown sanity test for core (#81220)Matt Clay2023-07-1114-4/+130
| | | | | | | * Clean up markdown * Add pymarkdown sanity test for core * Update unit test SHA
* Remove `docs` and `examples` directories (#81011)Matt Clay2023-07-1118-497/+4
| | | | | | | | | | | | | | | | | | | | | * Remove docs dir * Updates to reflect docs removal * Fix integration test * Remove examples dir * Updates to reflect examples removal * Remove build_library and build-ansible.py * Remove refs to build_library and build-ansible.py * Remove obsolete template * Remove obsolete template reference * Remove the now obsolete rstcheck sanity test
* Convert non-docs *.rst files to *.md (#81217)Matt Clay2023-07-111-0/+1
| | | | | | | | | | | | | * Rename README.rst to README.md * Change README format from reStructuredText to Markdown * Fix whitespace in README.md * Update setup.cfg to use README.md * Replace changelog placeholder with README.md * Update package-data sanity test