You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets
Sam Doran 264e08f21a
user - properly handle password and password lock when used together (#73016)
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.
4 years ago
..
add_host Add intg test to repro #36045 (add_host traceback) (#69912) 4 years ago
adhoc added timeout options to adhoc and console (#71230) 4 years ago
ansiballz_python Testing: Add support for AIX platform (#65802) 5 years ago
ansible ansible-doc role arg spec support (#72120) 4 years ago
ansible-doc Change role argspec file used by ansible-doc (#72927) 4 years ago
ansible-galaxy Collection list site packages (#70173) 4 years ago
ansible-galaxy-collection Add test for ansible-galaxy collection install 4 years ago
ansible-galaxy-collection-scm Add ansible-galaxy-collection-scm tests for requirements.yml (#73029) 4 years ago
ansible-runner Update ansible-runner tests version and deps (#72197) 4 years ago
ansible-test Allow key None to prevent errors with import test. 4 years ago
ansible-test-docker Update ansible-test integration tests. (#69970) 4 years ago
any_errors_fatal
apt Remove incidental_zabbix_host (#72142) 4 years ago
apt_key Remove incidental_zabbix_host (#72142) 4 years ago
apt_repository Remove incidental_zabbix_host (#72142) 4 years ago
args
argspec Various intentional tests (#72485) 4 years ago
assemble Fix decrypt argument in assemble module (#70465) 4 years ago
assert Testing: Add support for AIX platform (#65802) 5 years ago
async Allow callbacks from forks (#70501) 4 years ago
async_extra_data Expand Shippable test matrix. (#66912) 5 years ago
async_fail More boilerplate fixes. (#70224) 4 years ago
become Changes required for macOS 10.15 (#71841) 4 years ago
become_unprivileged Allow macOS ACLs to work for unpriv -> unpriv (#70785) 4 years ago
binary
binary_modules Add new arches/OSes for binary_modules tests (#69052) 5 years ago
binary_modules_posix Add new arches/OSes for binary_modules tests (#69052) 5 years ago
binary_modules_winrm
blockinfile Ensure blockinfile correctly returns backupfile (#72544) 4 years ago
blocks Add implicit role_complete block instead of role._eor (#72208) 4 years ago
builtin_vars_prompt More boilerplate fixes. (#70224) 4 years ago
callback_default make collection callbacks follow normal flow (#59932) 4 years ago
changed_when Allow changed/failed mgmt on strategy actions (#70919) 4 years ago
check_mode
cli Fix `ansible -K` become_pass regression (#69629) 4 years ago
collections saner path dir management (#72648) 4 years ago
collections_plugin_namespace config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 4 years ago
collections_relative_imports config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 4 years ago
collections_runtime_pythonpath config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 4 years ago
command_shell Deprecate command warnings feature (#70504) 4 years ago
common_network Remove incidental vmware tests (#72420) 4 years ago
conditionals
config Remove incidental vmware tests (#72420) 4 years ago
connection Fix reset_connection paramiko, winrm, psrp (#72688) 4 years ago
connection_delegation Test changes to allow using "macos" test image (#71849) 4 years ago
connection_local
connection_paramiko_ssh Testing: Add support for AIX platform (#65802) 5 years ago
connection_posix
connection_psrp psrp - fix hang when copying an empty file (#71649) 4 years ago
connection_ssh Updates to Integration tests to pass against Alpine (#70946) 4 years ago
connection_windows_ssh
connection_winrm
copy copy - redact 'content' from invocation in check mode (#71033) 4 years ago
cron Test changes to allow using "macos" test image (#71849) 4 years ago
dataloader preserve json parsing error (#58461) 5 years ago
debconf Testing: Add support for AIX platform (#65802) 5 years ago
debug Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 4 years ago
delegate_to ensure local exposes correct user (#72543) 4 years ago
dict_transformations Add test to replace exclusive incidental_cloudformation coverage (#72137) 4 years ago
dnf [dnf] Make "remove" filtering closer to dnf CLI (#73033) 4 years ago
dpkg_selections Test changes to allow using "macos" test image (#71849) 4 years ago
egg-info Fix references to old egg-info directory. 5 years ago
embedded_module
environment
error_from_connection Fix transport defs in test connection plugins. 4 years ago
expect Constrain pexpect and ptyprocess (#73109) 4 years ago
facts_d
facts_linux_network Test changes to allow using "macos" test image (#71849) 4 years ago
failed_when
fetch fixed fetch traversal from slurp (#68720) 5 years ago
file AnsibleModule.set_mode_if_different: handle symlink is in a sticky directory (#45198) 4 years ago
filter_core Changes required for macOS 10.15 (#71841) 4 years ago
filter_mathstuff Make filter type errors 'loop friendly' (#70417) 4 years ago
filter_urls coverage for filter/urls.py, including fallback to custom implementations (#68412) 5 years ago
filter_urlsplit Split up filter integration tests. (#66962) 5 years ago
find find will give more specific reasons on skip (#68823) 4 years ago
gathering
gathering_facts Allow list of filters for the setup module (#68551) 4 years ago
get_url [get_url] skip checksum during --check (#66700) 4 years ago
getent Updates to Integration tests to pass against Alpine (#70946) 4 years ago
git Changes required for macOS 10.15 (#71841) 4 years ago
group Add integration coverage to replace hash_vault and consul_session (#71775) 4 years ago
group_by return changed for group_by (#32057) 4 years ago
groupby_filter
handler_race Updates to Integration tests to pass against Alpine (#70946) 4 years ago
handlers Integration tests for notify with variable list (#66423) 5 years ago
hardware_facts Add intentional coverage for incidental_lvg (#71043) 4 years ago
hash
hostname hostname - add macOS (#54439) 4 years ago
hosts_field
ignore_errors
ignore_unreachable More boilerplate fixes. (#70224) 4 years ago
incidental_cloud_init_data_facts Test changes to allow using "macos" test image (#71849) 4 years ago
incidental_cs_common Second batch of incidental integration tests. (#67765) 5 years ago
incidental_deploy_helper Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_inventory_aws_ec2 Second batch of incidental integration tests. (#67765) 5 years ago
incidental_inventory_docker_swarm Remove exit code from traps in tests 4 years ago
incidental_inventory_foreman Second batch of incidental integration tests. (#67765) 5 years ago
incidental_ios_file First batch of incidental integration tests. (#67717) 5 years ago
incidental_mongodb_parameter Test changes to allow using "macos" test image (#71849) 4 years ago
incidental_setup_docker [tests] Make setup_docker clean up better (#71949) 4 years ago
incidental_setup_mongodb Skip mongodb tests on all centos versions. 5 years ago
incidental_setup_rabbitmq Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_setup_tls Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_vyos_config First batch of incidental integration tests. (#67717) 5 years ago
incidental_vyos_lldp_interfaces First batch of incidental integration tests. (#67717) 5 years ago
incidental_vyos_prepare_tests First batch of incidental integration tests. (#67717) 5 years ago
incidental_win_copy Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_data_deduplication Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_dsc Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_lineinfile Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_ping Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_prepare_tests Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_reboot Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_security_policy Third batch of incidental integration tests. (#67830) 5 years ago
include_import import_playbook - change additional params to deprecation (#72987) 4 years ago
include_parent_role_vars
include_vars Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 4 years ago
include_vars-ad-hoc include_vars - fix stack trace when run ad-hoc with dirs parameter (#66581) 5 years ago
include_when_parent_is_dynamic Add dynamic and static include tests. (#68200) 5 years ago
include_when_parent_is_static Add dynamic and static include tests. (#68200) 5 years ago
includes Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 4 years ago
includes_race Fix IncludedFile equality check (#69524) 4 years ago
infra More boilerplate fixes. (#70224) 4 years ago
interpreter_discovery_python Various intentional tests (#72485) 4 years ago
interpreter_discovery_python_delegate_facts Fix delegate_facts with interpreter not being set (#70293) 4 years ago
inventory add extra vars to inventory plugins (#70970) 4 years ago
inventory_constructed Add a toggle for the leading separator for keyed_groups (#60882) 4 years ago
inventory_ini Make sure ansible_become treated as a boolean (#70484) 4 years ago
inventory_script Remove incidental vmware tests (#72420) 4 years ago
inventory_yaml Testing: Add support for AIX platform (#65802) 5 years ago
jinja2_native_types Skip literal_eval for string filters results in native jinja. (#70988) 4 years ago
known_hosts
limit_inventory Rename some integration tests. 5 years ago
lineinfile lineinfile - don't run os.makedirs on empty dir path (#63921) 5 years ago
lookup_config rethink wording (#70028) 4 years ago
lookup_csvfile Some more coverage for csvfile (#70661) 4 years ago
lookup_dict Add integration coverage to replace hash_vault and consul_session (#71775) 4 years ago
lookup_env Skip lookup tests on Python 2.6. 5 years ago
lookup_file Skip lookup tests on Python 2.6. 5 years ago
lookup_fileglob Fix fileglob parameter order bug (#72879) 4 years ago
lookup_first_found Skip lookup tests on Python 2.6. 5 years ago
lookup_indexed_items Skip lookup tests on Python 2.6. 5 years ago
lookup_ini Skip lookup tests on Python 2.6. 5 years ago
lookup_inventory_hostnames Use InventoryManager for inventory_hostnames lookup (#71573) 4 years ago
lookup_items Remove incidental_timezone (#72063) 4 years ago
lookup_lines Skip lookup tests on Python 2.6. 5 years ago
lookup_list coverage for lookup_list (#68683) 5 years ago
lookup_nested Skip lookup tests on Python 2.6. 5 years ago
lookup_password Skip lookup tests on Python 2.6. 5 years ago
lookup_pipe Skip lookup tests on Python 2.6. 5 years ago
lookup_random_choice Skip lookup tests on Python 2.6. 5 years ago
lookup_sequence Skip lookup tests on Python 2.6. 5 years ago
lookup_subelements Set global skipped result flag for looped tasks (#67847) 4 years ago
lookup_template Skip lookup tests on Python 2.6. 5 years ago
lookup_together Skip lookup tests on Python 2.6. 5 years ago
lookup_unvault added unvault lookup plugin (#69087) 4 years ago
lookup_url Changes required for macOS 10.15 (#71841) 4 years ago
lookup_varnames varnames: add tests, fix exception grammar (#70573) 4 years ago
lookup_vars Skip lookup tests on Python 2.6. 5 years ago
loop_control
loops Fix with_dict/with_list being passed incorrect type tests (#71699) 4 years ago
meta_tasks Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 4 years ago
missing_required_lib Various intentional tests (#72485) 4 years ago
module_defaults support hard coded module_defaults.yml groups for collections (#69919) 4 years ago
module_no_log Test changes to allow using "macos" test image (#71849) 4 years ago
module_precedence More boilerplate fixes. (#70224) 4 years ago
module_tracebacks Testing: Add support for AIX platform (#65802) 5 years ago
module_utils Various intentional tests (#72485) 4 years ago
module_utils_Ansible.AccessToken Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.Basic Deprecation revisited (#69926) 4 years ago
module_utils_Ansible.Become Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.ModuleUtils.AddType Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.ArgvParser Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.Backup Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.CamelConversion Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.CommandUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.FileUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.Legacy Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.LinkUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.PrivilegeUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.SID Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.WebRequest Ansible.Basic added generic fragment merger for module options (#69719) 4 years ago
module_utils_Ansible.Privilege Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.Process Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.Service Split C# module utils to their own test target (#67910) 5 years ago
module_utils_urls Add support for GSSAPI/Kerberos to urls.py (#72113) 4 years ago
network_cli Fix network_cli test to use a trap for cleanup (#69762) 4 years ago
no_log Expand Shippable test matrix. (#66912) 5 years ago
noexec Fix async interpreter parsing (#72636) 4 years ago
old_style_cache_plugins Test changes to allow using "macos" test image (#71849) 4 years ago
old_style_modules_posix
omit
order
package Enable passing tests on power. 5 years ago
package_facts Test changes to allow using "macos" test image (#71849) 4 years ago
parsing Strip spaces in module names in explicit actions (#71040) 4 years ago
path_lookups Split up lookup integration tests. (#67294) 5 years ago
path_with_comma_in_inventory Rename some integration tests. 5 years ago
pause pause - do not hang if run in the background (#72065) 4 years ago
ping
pip Update pip integration test to use venv on py3. 4 years ago
play_iterator Fix --start-at-task when skipping tasks with no name (#68951) 5 years ago
playbook fix internal cases of actions calling unqualified module names (#70818) 4 years ago
plugin_config_for_inventory Remove incidental vmware tests (#72420) 4 years ago
plugin_filtering
plugin_loader Intentional coverage, incidental_azure_rm_resource (#71052) 4 years ago
plugin_namespace
prepare_http_tests Rename to ansible-core (#72594) 4 years ago
prepare_tests/tasks
pull Updates to Integration tests to pass against Alpine (#70946) 4 years ago
raw update ActionBase._low_level_execute_command to honor executable (#68315) 5 years ago
reboot reboot - add reboot_command parameter (#69847) 4 years ago
rel_plugin_loading
remote_tmp Changes required for macOS 10.15 (#71841) 4 years ago
replace
retry_task_name_in_callback Rename callback_retry_task_name test. 5 years ago
roles Add support for argument_specs attribute to RoleMetadata class (#73120) 4 years ago
rpm_key Testing: Add support for AIX platform (#65802) 5 years ago
run_modules More boilerplate fixes. (#70224) 4 years ago
script More boilerplate fixes. (#70224) 4 years ago
service Test changes to allow using "macos" test image (#71849) 4 years ago
service_facts Test changes to allow using "macos" test image (#71849) 4 years ago
set_fact Fix parsing of values when using an empty string as key (#57132) (#72545) 4 years ago
setup_cron Updates to Integration tests to pass against Alpine (#70946) 4 years ago
setup_deb_repo
setup_epel/tasks [tests] fix fallout from dnf gpg fix (#71548) 4 years ago
setup_gnutar Changes required for macOS 10.15 (#71841) 4 years ago
setup_nobody
setup_paramiko fix paramiko deps for freebsd/12.2 4 years ago
setup_passlib/tasks
setup_pexpect Constrain pexpect and ptyprocess (#73109) 4 years ago
setup_remote_constraints
setup_remote_tmp_dir Split handler tasks for setup_remote_tmp_dir. 5 years ago
setup_rpm_repo Update integration tests to support rpmfluff-0.6 (#71155) 4 years ago
setup_win_printargv Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
shell Fix transport defs in test connection plugins. 4 years ago
slurp
special_vars Misc typo fixes (#66120) 5 years ago
stat stat: Handle colon in filename (#70259) 4 years ago
strategy_linear
subversion Fix subversion_pacakges name (#72138) 4 years ago
systemd systemd - do not overwrite unit name when searching (#72985) 4 years ago
tags Allow meta tasks to use tags (#67508) 4 years ago
task_ordering
tasks Add more integration tests. (#68972) 5 years ago
template Provide more information in AnsibleUndefinedVariable (#71666) 4 years ago
template_jinja2_latest Testing: Add support for AIX platform (#65802) 5 years ago
template_jinja2_non_native Force template module to use non-native Jinja2 (#68560) 4 years ago
templating_lookups Ensure native jinja is off for non-native tests (#71914) 4 years ago
templating_settings
test_core Rename to ansible-core (#72594) 4 years ago
test_files Add integration tests for test plugins. (#70576) 4 years ago
test_mathstuff Add integration tests for test plugins. (#70576) 4 years ago
throttle throttle: fix linear based strategies (#65422) 5 years ago
unarchive unarchive - add include option (#40522) 4 years ago
undefined Remove incidental tower integration tests (#72461) 4 years ago
unicode Ensure --version works with non-ascii project path (#66624) 4 years ago
unsafe_writes ensure unsafe writes fallback (#70722) 4 years ago
until Remove incidental_win_psexec (#71953) 4 years ago
uri Fix FreeBSD HTTP Kerberos setup (#72595) 4 years ago
user user - properly handle password and password lock when used together (#73016) 4 years ago
var_blending
var_precedence More boilerplate fixes. (#70224) 4 years ago
var_reserved add jinja2 global to reserved names (#71088) 4 years ago
var_templating Fix verbosity for var_templating test (#70943) 4 years ago
vault Allow single vault encrypted values to be used directly as module parameters. Fixes #68275 (#70607) 4 years ago
wait_for wait_for - ignore psutil related errors (#72401) 4 years ago
wait_for_connection Test the delay option in wait_for_connection. 5 years ago
want_json_modules_posix More boilerplate fixes. (#70224) 4 years ago
win_async_wrapper
win_become become - stop using play context in more places (#62373) 5 years ago
win_exec_wrapper windows - fix up env var quoting for unicode single quotes (#68968) 5 years ago
win_fetch powershell - fix quoting values (#71411) 4 years ago
win_module_utils Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
win_raw
win_script
windows-minimal Create a dedicated windows-minimal test target. (#67987) 5 years ago
windows-paths
yaml_parsing allow any type of unsafe data (#72547) 4 years ago
yum Add RHEL 7.9 - ci_complete (#72558) 4 years ago
yum_repository Fix yum_repository for more centos6 EOL fallout 4 years ago