Matt Clay
fd009a073a
Remove sefcontext support plugin
...
It was only used by the subversion test, but is no longer required.
1 year ago
Matt Clay
172a010dd7
Remove unused test support plugins
1 year ago
Matt Clay
09d943445c
Fix subversion integration test ( #82029 )
...
- Remove dependency on the htpasswd module (and thus passlib)
- Fix setup/teardown of the httpd process
- Fix cleanup of temporary directories
1 year ago
Matt Clay
9f899f9492
Require `from __future__ import annotations` ( #81902 )
1 year ago
David Gries
786a8abee6
yum/dnf/dnf5/zypper documentation - fix grammatical error ( #81601 )
1 year ago
Jordan Borean
f3976117fb
PowerShell - remove uneeded dotnet code for future compatibility ( #81472 )
1 year ago
Sloane Hertel
4c41562270
remove deprecated datetime.datetime methods ( #81323 )
...
* 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>
1 year ago
Matt Clay
876be11f8c
Add pymarkdown sanity test for core ( #81220 )
...
* Clean up markdown
* Add pymarkdown sanity test for core
* Update unit test SHA
1 year ago
Abhijeet Kasurde
fda66eeee0
Sanity Fixes: ( #80953 )
...
* Typo fixes
* arguments-renamed
* pep8:E501
* pylint:use-a-generator
* pep8:E231
* use-argspec-type-path
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
1 year ago
Abhijeet Kasurde
9f4dfff69b
Pylint fixes ( #80855 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Abhijeet Kasurde
c9f76f6d49
Remove unused import ( #80875 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Matt Clay
2cd1744be3
Use ansible.module_utils.common.text.converters ( #80704 )
...
Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.
2 years ago
Matt Clay
dc3c88be8b
Remove unused integration test support files ( #80081 )
...
* Remove unused integration test support files
* Remove obsolete ignores
ci_complete
ci_coverage
2 years ago
Matt Clay
086046d478
Remove unused network test support files ( #80080 )
...
* Remove unused network test support files
* Remove obsolete ignores
2 years ago
Matt Clay
379058e10f
Update collections.abc imports ( #79911 )
...
* Update `collections.abc` imports
- Use `six.moves` for modules and module_utils
- Use `collections.abc` for controller code
This avoids using `ansible.module_utils.common._collections_compat`,
which was added before the vendored `six` was updated to provide these
imports.
* Update _collections_compat to use six.moves
Also update the custom pylint rule to reflect this change.
2 years ago
Jordan Borean
d16ec2455d
Add tests to cover win_reboot incidental paths ( #79856 )
...
* Add tests to cover win_reboot incidental paths
* Fix sanity issues
2 years ago
jbreitwe-rh
38cedc7f1a
Fixed incorrect spelling of the word overridden. ( #79620 )
2 years ago
Matt Martz
76b746655a
Add `use_rsa_sha2_algorithms` option for paramiko ( #78789 )
...
Fixes #76737
Fixes #77673
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay
5f5c4ef2ef
Remove incidental_inventory_foreman test.
2 years ago
Sloane Hertel
6c6a7851ed
Add inventory cache integration tests ( #77895 )
...
* Add intentional coverage for incidental_inventory_foreman coverage cache tests
ci_complete
ci_coverage
3 years ago
Sloane Hertel
e6075109d0
Remove incidental_inventory_aws_ec2 and supporting plugins ( #77877 )
...
* Remove aws/2.7 and aws/3.6 from incidental test matrix entries
* Remove aws.sh symlink
3 years ago
Matt Clay
e259317c3e
Remove incidental_inventory_docker_swarm tests. ( #77924 )
...
ci_complete
ci_coverage
3 years ago
Matt Clay
f68c66a3ef
Remove collections compat from controller code.
3 years ago
Jordan Borean
9985b8a975
ansible-test pssa update and new rules ( #76256 )
3 years ago
Martin Krizek
afb8a008c2
Remove incidental_deploy_helper
3 years ago
Martin Krizek
2f3fbaac3c
Remove unused test/support plugins ( #76078 )
3 years ago
Martin Krizek
80f4b67f43
Removed unused test/support modules ( #76048 )
3 years ago
Matt Martz
8a295b8ada
Remove incidental_cloud_init_data_facts integration tests ( #75885 )
...
* Remove incidental_cloud_init_data_facts integration tests
* Remove cloud_init_data_facts.py
* ci_coverage ci_complete
3 years ago
Martin Krizek
9de4f24d7a
test support ec2_ami_info: remove ec2_ami_facts name deprecation ( #75841 )
...
Fixes #75829
3 years ago
Martin Krizek
63413dd483
Remove incidental_win_security_policy ( #75654 )
...
* Add an intentional test for diff.prepared
ci_complete
ci_coverage
* Remove incidental_win_security_policy
* Forgot to remove this
3 years ago
Alicia Cozine
f88e81a62c
updates links in comments to point to current docs ( #74834 )
...
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
4 years ago
Matt Martz
8d1cf7f266
Vendor `distutils.version` ( #74644 )
...
* Vendor distutils.version
* Fix import order. ci_complete
* remove distutils warning filter
* Don't remove warnings filter from importer
* ci_complete
* Add pylint config for preventing distutils.version
* Add changelog fragment
4 years ago
Matt Clay
b752d07163
Overhaul ansible-test container management.
...
This brings ansible-test closer to being able to support split controller/remote testing.
4 years ago
Rick Elrod
8c413749fc
[test/support/docker_swarm] remove deprecation ( #74203 )
...
Change:
- Remove deprecation block from support test code
Tickets:
- Fixes #74146
Signed-off-by: Rick Elrod <rick@elrod.me>
4 years ago
Matt Davis
4c5ce5a1a9
module compat for py3.8+ controller ( #73423 )
...
* module compat for py3.8+ controller
* replaced internal usages of selinux bindings with internal ctypes binding (allows basic selinux operations from any Python interpreter), plus tests
* added new respawn_module API to allow modules to import Python packages that are only available under a well-known interpreter, plus tests
* added respawn logic to modules that need Python libs from a specific system interpreter (apt, apt_repository, dnf, yum)
minimize internal HAVE_SELINUX usage
spurious junk
pep8
* pylint fixes
* add RHEL8 Python 3.8 testing
* more pylint
* import sanity
* unit tests
* changelog update
* fix a bunch of stuff
* tweak changelog
* fix setup_rpm_repo on EL8
* misc sanity/test fixes
* misc feedback tweaks
* fix import fallback in test module
* fix selinux MU test
* fix dnf tests to avoid python-dependent test packages
* add trailing LFs to aliases
* fix yum tests to avoid test package with Python deps
* hack create_repo for EL6 to create noarch package
4 years ago
Matt Martz
c8590c7482
Various intentional tests ( #72485 )
...
* Add tests for argspec choices type=list
* Add explicit interpreter discovery tests to validate modules returning ansible_facts still set interp
* Add explicit tests for missing_required_lib
* Add explicit tests for recursive_diff
* ci_complete ci_coverage
* Update data to cover more code/tests
* ci_complete ci_coverage
* Add argspec tests for aliases, and no_log
* Forgotten file
* ci_complete ci_coverage
* Add argspec tests for type int
* ci_complete ci_coverage
* Remove incidental_k8s
* ci_complete ci_coverage
* fix missing newline
* Remove incidental_sts_assume_role
* ci_complete ci_coverage
4 years ago
Matt Martz
880087748c
Remove incidental tower integration tests ( #72461 )
...
* Add explicit test for dict repr in argspec
* Add explicit test for undefined repr
* ci_complete ci_coverage
* Skip old jinja2
* ci_complete ci_coverage
* Remove incidental_tower_receive
* ci_complete ci_coverage
* Remove incidental_tower_credential_type
* ci_complete ci_coverage
* Remove ignore entries
* ci_complete ci_coverage
4 years ago
Matt Martz
ccc63abc8e
Remove incidental vmware tests ( #72420 )
...
* Add explicit tests for ansible.module_utils.common.network.is_mac
* Test missing ANSIBLE_CONFIG
* Add explicit inventory script tests
* Add explicit tests for _consume_options
* Adjust perms, remove extra file
* ci_complete ci_coverage
* remove incidental_inventory_vmware_vm_inventory
* ci_complete ci_coverage
* Remove incidental_script_inventory_vmware_inventory
* ci_complete ci_coverage
* Remove incidental_vmware_guest
* ci_complete ci_coverage
* Remove incidental_vmware_host_hyperthreading and incidental_vmware_prepare_tests
* ci_complete ci_coverage
* newline and comment about what the test is doing
* ci_complete ci_coverage
4 years ago
Matt Martz
6543c7bc5d
Remove incidental_cs_role_permission ( #72380 )
...
* Add explicit argspec tests for choices
* ci_complete ci_coverage
* Remove incidental_cs_role_permission
* ci_complete ci_coverage
* ci_complete ci_coverage
4 years ago
Matt Martz
5d811fc551
Remove incidental_win_psexec ( #71953 )
...
* Explicit coverage to remove incidental_win_psexec
* rc=1 failed
* ci_complete ci_coverage
* Test rc!=0 without failed and until
* ci_complete ci_coverage
* Remove incidental_win_psexec
* Reduce delay
* ci_complete ci_coverage
4 years ago
Matt Martz
2f8dbf673e
Remove incidental_zabbix_host ( #72142 )
...
* Add explicit apt tests for fnmatch and update_cache
* Add explicit apt_key tests for fetching key directly from url
* ci_complete ci_coverage
* Remove repo only by repo
* ci_complete ci_coverage
* Add apt cache update after apt_repository to show that the cache doesn't update
* ci_complete ci_coverage
* Add systemd tests for enabling and disabling a service
* ci_complete ci_coverage
* Remove incidental_zabbix_host
* ci_complete ci_coverage
4 years ago
Matt Martz
cf0cd4b50b
Remove incidental_aws_codebuild ( #72140 )
...
* Remove incidental_aws_codebuild
* ci_complete ci_coverage
4 years ago
Sloane Hertel
102e429285
Add test to replace exclusive incidental_cloudformation coverage ( #72137 )
...
* Add intentional coverage for incidental_cloudformation
* Remove the incidental_cloudformation test target and the now unused supporting modules
4 years ago
Matt Martz
cfa41898c4
Add explicit coverage of argspec choices with strings that shadow YAML bools ( #72122 )
...
* Add explicit coverage of argspec choices with strings that shadow YAML bools
* ci_complete ci_coverage
* Remove incidental_ufw
* ci_complete ci_coverage
4 years ago
Matt Martz
50c8c87fe2
Add explicit coverage of suboptions=list without elements ( #72108 )
...
* Add explicit coverage of suboptions=list without elements
* ci_complete ci_coverage
* Remove incidental_vmware_guest_custom_attributes
* ci_complete ci_coverage
4 years ago
Sloane Hertel
960e4c0809
Add intentional coverage for incidental_ec2_instance ( #72028 )
...
* Add a test suite for module_utils.common.dict_transformations
* ci_complete
ci_coverage
Add a wait_for test using delegate_to
* Remove incidental_ec2_instance
* Remove unused test support modules
* Requested changes
ci_complete
ci_coverage
* Oops, put everything back to test coverage again
ci_complete
ci_coverage
* Remove incidental_ec2_instance tests and supporting modules
4 years ago
Matt Martz
460ba041c8
Add explicit coverage of required_together ( #72107 )
...
* Add explicit coverage of required_together
* ci_complete ci_coverage
* Remove incidental_hcloud_server
* Remove hcloud from shippable matrix
* ci_complete ci_coverage
4 years ago
Matt Martz
7f1c32f5ce
Rewrite _is_role and remove incidental_flatpak_remote ( #72105 )
...
* Build explicit list instead of complicated nested loop
* ci_complete ci_coverage
* Remove incidental_flatpak_remote
* ci_complete ci_coverage
4 years ago
Matt Martz
ab2b339dd6
More explicit argspec tests ( #72064 )
...
* Add more explicit coverage of argspec functionality
* fail_on_missing_params
* ci_complete ci_coverage
* Remove incidental_aws_step_functions_state_machine
* ci_complete ci_coverage
* Remove incidental_cs_service_offering
* ci_complete ci_coverage
4 years ago
Matt Martz
9081b22868
Remove incidental_vyos_static_route ( #72024 )
...
* Add explicit tests for required_together suboptions
* ci_complete ci_coverage
* Remove incidental_vyos_static_route
* ci_complete ci_coverage
* Add explicit coverage of suboptions required_if
* ci_complete ci_coverage
* Remove incidental_vyos_logging
* ci_complete ci_coverage
4 years ago