summaryrefslogtreecommitdiffstats
path: root/test/integration (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix inventory source parse error handling (#73160)Brian Coca2021-01-181-0/+12
| | | | | fixes #51025 added test cases
* Allow restricting config values to enumerated list (#73162)Brian Coca2021-01-141-1/+1
| | | | | | | * Allow restricting config values to enumerated list * dont document internal entries * also ignore private defs for ansible-config * remove invalid value from tests * added porting entry
* Add integration tests to ansible-galaxy-collection for 'ansible-galaxy ↵Sloane Hertel2021-01-143-0/+278
| | | | collection verify' (#73229)
* pause - adjust warning when run in background (#73182)Sam Doran2021-01-141-6/+19
| | | | | | | | When the pause module is run in the background and seconds parameter is provided, do not warn. * Add tests * Fix existing tests The test wasn't failing when it should have.
* Add tests for merging and replacing vars from inventory sources (#73181)Sloane Hertel2021-01-114-0/+62
|
* Add macOS 11 to CI (#72622)Sam Doran2021-01-114-0/+2
| | | | | * Fix connection_paramiko_ssh test for macOS 11 * Update Azure Pipelines config * Add changelog
* user - properly handle password and password lock when used together (#73016)Sam Doran2021-01-1117-1117/+1207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do the right thing on Linux when password lock and a password hash are provided by writing out the password hash prepended by the appropriate lock string rather than using -U and -L. This is the correct way to set and lock the account in one command. On BSD, run separate commands as appropriate since locking and setting the password cannot be done in a single action. FreeBSD requires running several commands to get the account in the desired state. As a result, the rc, output, and error from all commands need to be combined and evaluated so an accurate and complete summary can be given at the end of module execution. * Improve integration tests to cover this scenario. * Break up user integration tests into smaller files * Properly lock account when creating a new account and password is supplied * Simplify rc collection in FreeBSD class Since the _handle_lock() method was added, the rc would be set to None, which could make task change reporting incorrect. My first attempt to solve this used a set and was a bit too complicated. Simplify it my comparing the rc from _handle_lock() and the current value of rc. * Improve the Linux password hash and locking behavior If password lock and hash are provided, set the hash and lock the account by using a password hash since -L cannot be used with -p. * Ensure -U and -L are not combined with -p since they are mutually exclusive to usermod. * Clarify password_lock behavior.
* Update pip integration test to use venv on py3.Matt Clay2021-01-082-14/+24
|
* [dnf] Make "remove" filtering closer to dnf CLI (#73033)Rick Elrod2021-01-072-0/+69
| | | | | | | | | | | | | | | Change: - Internally, use dnf.subject.Subject#get_best_query for state: absent - Add a bunch of tests for removing packages, given a bunch of different pkg specs (nv, nvr, nvra, wildcard, etc.) Test Plan: - New tests - Local experiments with DNF API via PDB. Tickets: - Fixes #72809 Signed-off-by: Rick Elrod <rick@elrod.me>
* Add support for argument_specs attribute to RoleMetadata class (#73120)David Shrewsbury2021-01-071-0/+2
|
* [ansible-test] Add Fedora 33 support and drop F31Rick Elrod2021-01-064-32/+41
| | | | | | | | | | | | Change: - Changes to make F33 work with current tests - Add F33 to docker.txt - Add F33 to AZP config Test Plan: - ci_complete Signed-off-by: Rick Elrod <rick@elrod.me>
* Add ansible-galaxy-collection-scm tests for requirements.yml (#73029)Sloane Hertel2021-01-059-0/+125
| | | | | | | * Add ansible-galaxy-collection-scm tests for requirements.yml format * Add a test for --no-deps Fix assertion
* Constrain pexpect and ptyprocess (#73109)Sam Doooran2021-01-045-3/+13
| | | | | | The recent update of ptyprocess to 0.7.0 is incompatible with Python 2.6 and is causing test failures. * Add setup_pexpect role to expect test
* [get_url] skip checksum during --check (#66700)pva2020-12-221-0/+9
| | | | | | | | Fix get_url failure in check mode (--check) when using the checksum format <algorithm>:<url>. Regression introduced in (#20532) Fixes: #61369
* ensure unsafe writes fallback (#70722)Brian Coca2020-12-213-0/+64
| | | | | | | * 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
* systemd - do not overwrite unit name when searching (#72985)Sam Doooran2020-12-176-64/+135
| | | | | | | | | | | | | | | | | | | | * systemd - do not overwrite unit name when searching PR #72702 introduced a bug that changed the unit name when splitting it up for the purpose of searching for the unit. This only happens on unit file templates on systems that have a 5.8 or newer kernel and a version of systemd that does not contain a bugfix that causes systmed to fail to parse dbus. * Use facts rather than a manual probe to determine if systmed is present * Remov unnecessary block * Use vars files instead of set_fact * Add tests for using a templated unit file * Update changelog fragment * Use template to get correct path to sleep binary
* import_playbook - change additional params to deprecation (#72987)Sam Doooran2020-12-171-1/+1
| | | | | | | * import_playbook - change additional params to deprecation I incorrectly recommended this be set as a warning when it should have been a deprecation. * Fix deprecation sanity test to not required a collection name when not inside a collection
* Allow key None to prevent errors with import test.Felix Fontein2020-12-171-1/+1
|
* Update ansible-test pylint Python support. (#72972)Matt Clay2020-12-152-0/+22
| | | | | | | * Update ansible-test pylint Python support. * Python 3.8 is now officially supported. * Python 3.9 is now skipped with a warning.
* Add test for ansible-galaxy collection installSloane Hertel2020-12-151-0/+20
| | | Test installing a collection to a directory containing other collections without any metadata (#72971)
* saner path dir management (#72648)Brian Coca2020-12-151-1/+7
| | | | | | | | | * saner path dir management fixes #72628 ensure we always store paths w/o a_c Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* Remove exit code from traps in testsSam Doran2020-12-141-1/+0
| | | | | | Having the trap exit with a specific code will override the exit code that caused the trap to run, which could mask errors
* Change role argspec file used by ansible-doc (#72927)David Shrewsbury2020-12-146-59/+71
| | | | | | | | | * Change role argspec file used by ansible-doc This changes the file used for role argument specs from meta/argument_specs.yml to meta/main.yml. The argument specs are expected to be in that file under the top-level entry of `argument_spec`. * Switch to argument_specs
* Collection list site packages (#70173)Toshio Kuratomi2020-12-111-0/+11
| | | | | | | | | | | | | | * ansible-galaxy collection list and verify now utilize collections in site-packages. This is a short term fix for #70147. The long term fix needs to handle install (but that discussion is also bound up in how upgrade is going to work and where things can get installed so it's deferred for 2.11.) * Add test for ansible-galaxy collection list with site-packages * Fix sanity issue Co-authored-by: David Moreau Simard <moi@dmsimard.com> Co-authored-by: Jordan Borean <jborean93@gmail.com>
* Add a couple more tests to ansible-galaxy-collection (#72931)Sloane Hertel2020-12-103-5/+50
| | | | | | | * Test installing a dependency compatible with multiple collection requirements Test downloading a collection without dependencies * Move cleanup to the end of the test suite
* Fix reset_connection paramiko, winrm, psrp (#72688)Matt Martz2020-12-092-0/+7
| | | | | | | | | * Ensure we only reset the connection when one has been previously established. Fixes #65812 * Ensure psrp doesn't trace * winrm too * Indentation fix
* Fix async interpreter parsing (#72636)Matt Martz2020-12-094-0/+21
| | | | | | | | | * Fix async interpreter parsing. Fixes #70690 * Target localhost instead of remote host * Don't forget inventory * Address shellcheck issue
* Add implicit role_complete block instead of role._eor (#72208)Martin Krizek2020-12-095-0/+24
| | | | | Co-authored-by: Matt Martz <matt@sivel.net> Fixes #69848
* Fix fileglob parameter order bug (#72879)David Shrewsbury2020-12-082-0/+34
|
* unarchive - add include option (#40522)Sijis Aviles2020-12-074-10/+85
| | | | | | | | | | | | | | | | | | | | | | | | This should allow users to extract specific files from an archive as desired. Fixes #16130, #27081. * Rebase and make a few minor changes * Add changelog * Improve tests - move to separate tasks file - change assertions to check for exactly one file - use remote_tmp_dir for output dir * Make exclude and include mutually exclusive * Don't remove files needed by other tasks * Fix sanity tests * Improve feature documentation * Skip tests that use map() on CentOS 6 * Use fnmatch on include for zip archives This matches the behavior of exclude Co-authored-by: Sam Doran <sdoran@redhat.com>
* AnsibleModule.set_mode_if_different: handle symlink is in a sticky directory ↵Pilou2020-12-042-0/+84
| | | | | | | | | | | (#45198) * file: add symlink is in a sticky directory tests * file: handle symlink in a sticky directory Co-Authored-By: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> * Add changelog and fix unit test The builtins import was removed since it was unused, but it is now needed.
* Fix yum_repository for more centos6 EOL falloutRick Elrod2020-12-031-0/+10
| | | | | | | | | | Change: - Use a version specific vars file to specify archive url for EPEL. Test Plan: - ci_complete Signed-off-by: Rick Elrod <rick@elrod.me>
* Test pip fixDavid Shrewsbury2020-11-301-3/+3
|
* Fix parsing of values when using an empty string as key (#57132) (#72545)Yadnesh Kulkarni2020-11-202-0/+18
| | | Signed-off-by: Yadnesh Kulkarni <ykulkarn@redhat.com>
* ansible-galaxy - source deps from all servers and not just parent (#72576)Jordan Borean2020-11-195-17/+75
| | | | | * ansible-galaxy - source deps from all servers and not just parent * Added integration tests for this scenario
* Update ansible-runner tests version and deps (#72197)Alan Rominger2020-11-184-19/+2
| | | | | | | | We could not find reason for the docutils install so trying out removing it. Also bumping to latest version of ansible-runner Skip all python2 versions because next ansible-runner drops it Co-authored-by: Elijah DeLee <kdelee@redhat.com>
* ansible-doc role arg spec support (#72120)David Shrewsbury2020-11-1711-6/+146
| | | | | | | | | | | | * Support listing roles in text and JSON * Change tests for unfrack'd playbook_dir var These tests were using '/tmp' for testing the setting of the playbook_dir var. Now that we unfrack that var, MacOS will change this to '/private/tmp' causing the tests to fail. We can choose a path that does not exist (since unfrack does not validate existence) so that we can guarantee unfracking will not change the value.
* actual min changes needed for rhel8 (#72477)Brian Coca2020-11-161-13/+1
| | | | | * actual min changes needed for rhel8 - specifiy releaserver as dnf/vars is ignored
* Rename to ansible-core (#72594)Rick Elrod2020-11-133-3/+3
| | | | | | | | | | Change: - Initial set of changes for renaming to ansible-core - Includes changelog fragment changes from base -> core - Does NOT include docs changes - Modifies detection stuff in setup.py to support ansible<2.9 and ansible-base Test Plan: - ci_complete
* pause - do not hang if run in the background (#72065)Sam Doran2020-11-122-0/+40
| | | | | | | | | * Consolidate logic for determining whether or not session is interactive into a single function, is_interactive() * Increase test coverage I wasn't able to find a good way of simulating running a backgrounded test with CI since the whole test is essentially run not in a TTY, which is similar enough to cause the new is_interactive() function to always return false.
* Fix FreeBSD HTTP Kerberos setup (#72595)Jordan Borean2020-11-124-71/+48
|
* Rollback pulp container to stabilise CI (#72580)Jordan Borean2020-11-111-32/+33
|
* Tweak galaxy CI tests to bring stability (#72578)Jordan Borean2020-11-114-99/+82
|
* avoid fatal exception on invalid collection name (#72296)Brian Coca2020-11-101-0/+7
| | | * avoid fatal exception on invalid collection name used in ansible-doc filter
* allow any type of unsafe data (#72547)Brian Coca2020-11-102-0/+40
| | | | | | * allow any type of unsafe data dont limit to strings
* Add RHEL 7.9 - ci_complete (#72558)Jordan Borean2020-11-102-133/+139
|
* ensure local exposes correct user (#72543)Brian Coca2020-11-093-1/+13
| | | | | | | | * ensure local exposes correct user avoid corner case in which delegation relied on playcontext fallback which was removed fixes #72541
* Added caching mechanism for Galaxy API requests (#71904)Jordan Borean2020-11-094-1/+51
| | | | | | | | | | | | | | | | | * Added caching mechanism for Galaxy API requests * Add cache options and split up code * Added unit tests * Fix sanity test * Use modified date and fix up caching for explicit servers * Make sure credentials are not in cached server name * Added test for getting updated cache version * Changes from review
* Ensure blockinfile correctly returns backupfile (#72544)Brian Coca2020-11-091-0/+5
| | | | | | | | * Ensure blockinfile correctly returns backupfile Fixes #27626 based on #27859 Co-authored-by: Giovanni Sciortino (@giovannisciortino)
* fix paramiko deps for freebsd/12.2Rick Elrod2020-11-094-0/+9
| | | | Signed-off-by: Rick Elrod <rick@elrod.me>