Commit Graph

54319 Commits (8280fbc776ac88335814c033f67a3a5af592d349)
 

Author SHA1 Message Date
Matt Clay 98407fc00e Remove unused validate-modules unit test code 8 months ago
Matt Clay dae4e2f07f
Remove unused/unreachable unit test code (#82160) 8 months ago
Matt Clay 0be33551d7
Remove unit tests dependent on systemd bindings (#82161)
These do no not run as part of our test suite.
8 months ago
Abhijeet Kasurde 78c16d983e Remove type_regex testcase
This is leftover testcase for type checker regex removed in
https://github.com/ansible/ansible/pull/82153

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Matt Clay 9dd3eafa14 ansible-test - Use pylint unidiomatic-typecheck
This replaces the regex based check previously used within the validate-modules sanity test.

NOTE: The pylint check overlaps with a similar check for pep8.
      Both are used, since the pep8 based check is more nuanced than the one in pylint.
      For example, allowing `is` checks, but not `==` comparisons.
      If the pylint check is ignored, the pep8 check would still be relevant.
8 months ago
Maxwell G 78546382b3
setup.cfg: add `Programming Language :: Python :: 3.12` classifier (#82151)
ansible-core 2.16+ supports Python 3.12. This corrects missing metadata.
8 months ago
tdltdc d46b042a94
Reword note on default determination on other OSes (#82147) 8 months ago
Abhijeet Kasurde 40baf5eace
iptables - set jump to DSCP when set_dscp_mark or set_dscp_mark_class is set (#82145)
set_dscp_mark and set_dscp_mark_class is only valid when jump is set to
DSCP.

Fixes: #77077

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
A.YOGUN 567c78f9a1
Update playbook responses for specific prompts (#82137)
Example is added for multiple questions with responses
8 months ago
Martin Krizek 7538668731
Check strict before failing to respect skip_broken (#80795)
Fixes #80590
8 months ago
Matt Clay 916a20fccd Ignore coverage of test code that does not run 8 months ago
Matt Clay 90203b841a Use functools.update_wrapper instead of a copy 8 months ago
JustinWayland dec9eeb2e5
Remove create_new_password parameter in CLI.build_vault_ids (#82066)
* Remove unused argument in call to build_vault_ids

* Remove obsolete build_vault_ids tests

* Change tests to account for argument removal

* Remove redundant test
8 months ago
Brian Coca 20a54eb236
restore role param precedence (#82106)
* add test for setfact/param override
8 months ago
Martin Krizek 5ac62473b0
dnf: properly set gpg options on repos (#80777)
Fixes #80110
8 months ago
zpGao 51d691bfa9
remove the obsolete TODO comments (#73116)
Co-authored-by: Zhipeng.Gao <zhipeng.gao@monash.edu>
8 months ago
Matt Clay ac3ae94ae1
Ignore coverage on code intended never to execute (#82128)
* Ignore coverage on code intended never to execute

* Fail collection loader test if wrong code runs

* Update boilerplate test to accommodate nocover
8 months ago
Abhijeet Kasurde 8ecc1d485b
Fix the strategy plugin description in keywords (#82113)
Fixes: https://github.com/ansible/ansible-documentation/issues/762

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Matt Clay 1df791cd90
Ignore code which coverage can't analyze (#82125)
* Ignore code which coverage can't analyze

Our own tracing function can't be traced.

* Use `nocover` instead of `no cover` for consistency
8 months ago
Jordan Borean f8a9fd4758
Remove duplicate winrm test (#82124) 8 months ago
Matt Clay 36d6860d80 ansible-test - Remove no-main-display sanity test 8 months ago
Matt Clay 6e15fb0ebf ansible-test - Removed no-basestring sanity test 8 months ago
Matt Clay c349b91af3 ansible-test - Removed no-dict-* sanity tests 8 months ago
Matt Clay 9765bb46f9 ansible-test - Remove no-unicode-literals test 8 months ago
Matt Clay 172a010dd7 Remove unused test support plugins 8 months ago
Matt Clay 5b1b0ce762 Remove Python 2 compat (via six) from unit tests 8 months ago
Matt Clay 18e8401edd
Remove Python 2.x compat from unit tests (#82109) 8 months ago
Matt Clay bea459654a pip - Add module in venv example 8 months ago
Matt Clay 89cda0bcae
pip - Add break_system_packages option (#82097) 8 months ago
Matt Davis 3ea5304a57
add pep668 note to pip module docs (#82096) 8 months ago
Baptistech f8de6caeec
Reboot - delete useless parameter async, not supported (#80017)
Co-authored-by: baptch <b.jean.ch@gmail.com>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
8 months ago
Brian Coca 2908a2c32a
corrected become same user config docs (#82059)
fixes #82057
8 months ago
Jordan Borean b34f4a559f
Add support for TLS 1.3 Post Handshake Auth (#82063)
TLS 1.3 adds a different method it can use to request a client
certificate after the handshake but Python does not allow this by
default. This commit sets the attribute needed to enable this scenario
when using client certificates on Python 3.8+, 3.7.1+.
8 months ago
Jordan Borean f5a0c0dfc8
Ignore testing data for gitleaks (#82083) 8 months ago
Arthur Lutz 9b78316687
docs(template): use unambiguous syntax for mode (#82079) 8 months ago
Aditya Putta 664fe45be9
Create a User with a Home Directory (#82078) 8 months ago
Jordan Borean f5d7dc1a97
Legacy.psm1 - Add note telling people not to use function (#82076) 8 months ago
Thomas Sjögren fb8ede22e1
don't warn about using a yescrypt hash as user password (#82071)
* dont warn about using a yescrypt hash as password

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>

* add changelog

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>

* add yescrypt test

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>

---------

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
8 months ago
Abhijeet Kasurde e8ef6b7d7c
Consolidate systemd detection logic (#81809)
* Add logic to consider the canary location for systemd files

Fixes: #80975

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Brian Coca bf29458726
Address nuance in key checking docs (#82058)
* Address nuance in key checking docs

  and add note to ssh plugin to let users know 'final authoritative source'.

* Update lib/ansible/plugins/connection/ssh.py

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Michael Pardatscher b4920c83ad
Fix locale related parsing error in git.py
* Fix locale related parsing error in git.py

This fixes the issue found at https://github.com/ansible/ansible/issues/77213 which got introduced by changing over to "best parseable locale" approach, but missing out the requirement of locales other than `L` having to have `LANGUAGE` specified as well. For further details, check this post within the issue discussion: https://github.com/ansible/ansible/issues/77213#issuecomment-1446919617

* Add changelog

Create 81931-locale-related-parsing-error-git.yml
8 months ago
Martin Krizek fe94a99aa2
any_errors_fatal fixes (#78680)
Fixes #31543
Fixes #36308
Fixes #73246
Fixes #80981
Fixes #81533

ci_complete
8 months ago
Matt Clay c827dc0dab Remove obsolete requirements from prepare_http_tests 8 months ago
Abhijeet Kasurde 0bfc5bcf82
Fix contains example (#82067)
* Added missing round bracket

Fixes: https://github.com/ansible/ansible-documentation/issues/555

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
8 months ago
Brian Coca 99e0d25857
ansible-pull now handles all secret files CLI options (#82009)
* ansible-pull added missing pasthrough for secrets

 Both become and connection password file options were missing.
 Also added test
8 months ago
Brian Coca 9ee603d1c5
Clarify some points in config lookup documentation (#81951)
Also update tests to support the format on modules/plugins

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
8 months ago
Adam Ross b815b15362
Fix additional spelling errors in builtin modules (#82012) 8 months ago
Matt Clay 0b7387d46c Improve filter_encryption test
- Update `data2_vaulted_string_with_id` to match the documented plaintext.
- Add a comment explaining how `data2_vaulted_string_with_id` was derived.
- Add assertions for unvaulted values to ensure they match their plaintext.
- Add round-trip tests for vault+unvault when no salt is used.
8 months ago
Matt Clay 2d2211e4e1
Simplify filter_encryption test (#82062) 8 months ago
Matt Davis 40263992df
remove args passthru on role runme tests that use grep (#82060)
* varying verbosity was masking some first-pass test failures
8 months ago