Matt Clay
0b661438a0
ansible-test - Update base/default containers ( #84089 )
1 year ago
Matt Clay
50604e8461
ansible-test - Update astroid for pylint sanity test ( #84054 )
1 year ago
Matt Clay
3cf308f672
ansible-test - Disable pylint deprecated-* rules ( #84050 )
1 year ago
Matt Clay
9406ed3109
ansible-test - Update sanity tests and default Python ( #83998 )
...
* ansible-test - Update sanity test requirements
* ansible-test - Default to Python 3.13 in base/default containers
* ansible-test - Fix incorrect AnyStr type hints
1 year ago
Matt Clay
9abc651cd6
ansible-test - Update nios-test-container to 6.0.0 ( #84042 )
1 year ago
Felix Fontein
f4e2e206b3
Add basic validation for action_groups ( #83965 )
...
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
1 year ago
Matt Clay
7693c892fa
ansible-test - Use Python version in pylint contexts ( #83984 )
1 year ago
Matt Clay
a84fa50096
ansible-test - Update base/default containers ( #83930 )
1 year ago
Matt Clay
cf2a4a85da
ansible-test - Update sanity test requirements ( #83921 )
1 year ago
Matt Clay
4346430003
ansible-test - Reduce scope of empty-init test ( #83878 )
1 year ago
Matt Clay
db04499f58
ansible-test - Update nios-test-container to 5.0.0
1 year ago
Felix Fontein
faf446a895
runtime-metadata sanity test: do not fail deprecation version checks if galaxy.yml has empty `version` ( #83831 )
...
* Do not create invalid SemanticVersion objects.
* Fix SemanticVersion.parse().
* Add basic runtime-metadata tests.
1 year ago
Matt Clay
81e025b414
ansible-test - Add Windows remote connection option
1 year ago
Matt Clay
6eb16faed2
ansible-test - Update base/default containers ( #83796 )
1 year ago
Matt Clay
da02611c48
ansible-test - Update sanity test requirements ( #83795 )
...
* Remove PyYAML pin for yamllint sanity test
* Freeze sanity test requirements
1 year ago
Matt Clay
ab624ad031
ansible-test - Remove generation of egg-info ( #83786 )
...
Also remove egg-info generation from hacking/env-setup scripts.
1 year ago
Matt Clay
68515abf97
Drop use of setup.py and setup.cfg ( #81443 )
1 year ago
Matt Clay
59ca05b709
ansible-test - Update default and distro containers ( #83736 )
1 year ago
Matt Clay
70be017f02
ansible-test - Update mypy and package-data tests ( #83734 )
...
* package-data - Test min/max setuptools version
* Fix multi-version abstraction
* Convert mypy test to script based test
* Fix f-string in pymarkdown test
* Sanity test fixes
1 year ago
Matt Clay
717f1092e3
ansible-test - Update venv management and sanity requirements ( #83729 )
...
* ansible-test - Update venv management
* Upgrade from pip 24.0 to 24.2
* Omit `wheel` and `setuptools` from ansible-test managed virtual environments
* Drop pre-release hacks
* Update mypy requirements
* Freeze sanity test requirements
* Update sanity test configuration
* Update sanity ignores
1 year ago
Matt Clay
ac5ed40a21
Fix type hints and misc mypy/pylint issues ( #83724 )
1 year ago
Matt Clay
6019f3f425
ansible-test - Update coverage to 7.6.1 ( #83723 )
1 year ago
Jordan Borean
bbf96c250f
winrm - quota retry handling ( #83656 )
...
* winrm - quota retry handling
Add a retry attempt when receiving ERROR_WSMAN_QUOTA_MAX_OPERATIONS when
starting a command. This can occur when running a loop with multiple
iterations or an action plugin that runs multiple commands.
* Update pywinrm constraint for test
* Add verbose hint and mark test as destructive
1 year ago
Felix Fontein
3d4bd79574
validate-modules: detect names set mismatch between argument spec and documentation ( #83599 )
1 year ago
Lee Garrett
7e3916b767
Typo fixes and other bits and bobs ( #83672 )
...
Co-authored-by: Lee Garrett <lgarrett@rocketjump.eu>
1 year ago
Matt Clay
79f819dc54
ansible-test - Remove VyOS tests and support files ( #83650 )
...
The VyOS remote image required for running the tests is no longer functional.
1 year ago
Matt Clay
906c969b55
ansible-test - Improve unknown env error message ( #83610 )
1 year ago
Matt Clay
9cdfcd9aed
ansible-test - Update nios-test-container to 4.0.0 ( #83539 )
1 year ago
Matt Clay
10997ab3aa
ansible-test - Update base/default containers ( #83553 )
1 year ago
Felix Fontein
e5309ba29f
validate-modules: reject option/alias names equal up to casing belonging to different options ( #83530 )
...
* Reject option/alias names equal up to casing belonging to different options.
* Update test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/main.py
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
1 year ago
Felix Fontein
7d678cbd96
Fix require_only_one. ( #83511 )
1 year ago
Brian Coca
00ddc27d69
actually show plugin config warnings/deprecations ( #82593 )
...
previouslly we recorded but did not show to avoid spam
since we could not dedup from forks, that was already
fixed in another PR so now we can show/display them.
Also:
* funcitonalize deprecation msg construct from docs
* reuse formatting func in cli
* normalize alternatives: most of the code used intended plural
but some and most data/tests used the singular
* update schemas and tests
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
1 year ago
Matt Clay
a121a169e3
ansible-test - Replace FreeBSD 14.0 with 14.1 ( #83477 )
1 year ago
Matt Clay
96c04e9d1d
ansible-test - Update PyPI and utility container ( #83475 )
1 year ago
Felix Fontein
1b42af5004
ansible-test: update http-test-container to 3.2.0 ( #83469 )
1 year ago
Matt Clay
dad6f07731
ansible-test - Update tested platforms ( #83446 )
...
* ansible-test - Update tested platforms
* Add work-around for Alpine tests
* Fix prepare_http_tests on Fedora
* Fix deb-src setup for Ubuntu 24.04+
* Set multiarch_test_pkg for Ubuntu 24.04
* Update AZP test matrix
1 year ago
Martin Krizek
b2a289dcbb
Remove Python 3.10 support for the controller ( #83221 )
...
Fixes #83094
1 year ago
Matt Clay
5af5b4b6c8
ansible-test - Update PyPI test container to 3.1.0 ( #83432 )
1 year ago
Matt Clay
738180d240
ansible-test - Fix unit test coverage collection ( #83433 )
1 year ago
Jordan Borean
a9b902f579
ansible-test action-plugin-docs sidecar ( #83325 )
...
Fix to have ansible-test sanity --test action-plugin-docs to check for
action plugin documentation inside a sidecar file rather than a Python
module.
1 year ago
Matt Clay
cf265eb14d
Add Python 3.13 support ( #83416 )
...
* Add Python 3.13 support
* Add temporary work-around for yamllint test
2 years ago
Matt Clay
14df8c2cf2
ansible-test - Prepare for Python 3.13 ( #83414 )
...
Includes an update to `coverage` and pinned Python requirements.
2 years ago
Matt Clay
560d3af097
ansible-test - Update http-test-container ( #83272 )
...
* Disable cipher suite integration tests
When the client and server both support TLS 1.3, cipher suite selection is effectively a no-op.
Python provides no way to disable TLS 1.3 cipher suites, and no way to prefer user-selected cipher suites.
Since TLS 1.3 includes a mandatory cipher suite, this makes it impossible to induce a cipher suite related error when using TLS 1.3.
* Update multipart form-data integration test
* Fix netrc integration tests
* Update HTTP test host substring
* ansible-test - Update http-test-container
2 years ago
Matt Clay
b8483adb33
ansible-test - Update pypi-test-container ( #83273 )
2 years ago
Matt Clay
930f18ea65
ansible-test - Update ansible-test-utility-container ( #83274 )
2 years ago
Matt Davis
889012e29e
clean up ansible-connection ( #82992 )
...
* clean up ansible-connection stuff
* eliminate unnecessary usage of pty/termios
* always use default pickle protocol
* remove unnecessary wire hashing
Co-authored-by: Kate Case <this.is@katherineca.se>
2 years ago
Jordan Borean
2ed6c30929
Add version ceiling for pypsrp ( #83122 )
...
* Add version ceiling for pypsrp
Add a version ceiling for the pypsrp requirements. This ensures that the
future v1.0.0 release won't impact existing users who install the
library using the version range specified.
* Use constraints file
* Add changelog for this change
2 years ago
Martin Krizek
3a6f825a8e
dnf - honor installroot and substitutes in paths ( #83011 )
...
In #80094 support for var substitution for cachedir was added but there
are more options that should be supported. Using an API for
prepend_installroot which should be done anyway provide that feature
so use that. In addition, perform the operation once all substitutes
are in place (releasever as well).
2 years ago
Benoît Knecht
d304fd86c2
modules/dnf: Substitute variables in DNF cache path ( #80094 )
...
The cache directory can be specified with variables that are expanded by DNF, for example,
```
cachedir=/var/cache/yum/$basearch/$releasever
```
But the `dnf` module would use that path literally, instead of replacing
`$basearch` and `$releasever` with their values.
This commit ensures that variables in `cachedir` are properly substituted.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
2 years ago
Matt Clay
cd365057d3
Remove more Python 2.x compat code
2 years ago
Matt Clay
5187061939
ansible-test - Update base/default containers
2 years ago
Matt Clay
1c17fe2d53
Drop Python 3.7 support ( #82982 )
2 years ago
Matt Clay
9e08f78bd3
ansible-test - Update base/default containers ( #82952 )
2 years ago
Matt Clay
31901d23e7
ansible-test - Remove FreeBSD 13.2 ( #82951 )
2 years ago
Abhijeet Kasurde
8280fbc776
ansible-test - Remove Alpine 3.18 ( #82116 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
mansoor
e3f4fe4fb9
ansible-test - Remove macos/13.2 remote from `ansible-test`
...
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
2 years ago
Abhijeet Kasurde
b8b12c4be3
Update sanity requirements ( #82296 )
...
* Update sanity requirements
* Drop Python 3.7 for mypy
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Matt Clay
ca168eb367
ansible-test - Fix Alpine libexpat bootstrapping
2 years ago
Matt Clay
b4d67adfda
ansible-test - Update distro containers to 7.1.0
2 years ago
Matt Clay
a1ad7100df
ansible-test - Handle externally managed Python ( #82883 )
...
Remove EXTERNALLY-MANAGED marker in ansible-test managed environments
Additional changes:
- Test the Alpine 3.19 container
- Stop testing Alpine 3.18 container and remote
- Add missing changelog entry the Alpine 3.19 container
2 years ago
Abhijeet Kasurde
73701004b0
ansible-test - Add alpine 3.19 ( #82115 )
2 years ago
Felix Fontein
c0821346fc
Do not mangle plugin names in collections that start with an underscore. ( #82574 )
2 years ago
Brian Coca
ddae41759c
Add FreeBSD 13.3 and 14.0 to ansible-test ( #82530 )
...
Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Abhijeet Kasurde
8eabeefa63
mypy: update code required to bump sanity requirements
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Felix Fontein
0c9f1989a7
Do not treat leading underscore in plugin names as attempted deprecation.
2 years ago
Matt Clay
a1edb61ce7
ansible-test - Add work-around for pytest>=8 errors ( #82723 )
...
* ansible-test - Add work-around for pytest>=8 errors
* Update changelogs/fragments/ansible-test-pytest-8.yml
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
2 years ago
Sviatoslav Sydorenko (Святослав Сидоренко)
386edc666e
Add macOS 14.3 to CI and `ansible-test`
...
Additionally, this patch takes care of installing GPG within the
`ansible-galaxy-collection` test when running under macOS 14 and higher.
PR #82697
ci_complete
2 years ago
Matt Clay
c8d6f7b95e
ansible-test - Fix validate-modules Python handling
...
The ``validate-modules`` sanity test no longer attempts to process files with unrecognized extensions as Python.
Integration tests have been added to verify Python-specific checks do not apply to these files.
The `invalid-extension` and `missing-gplv3-license` checks still apply to these files. This may change in the future.
2 years ago
Matt Martz
e458cbac61
Allow for arbitrary key 'context' in argument spec ( #82183 )
...
* Allow for arbitrary key 'context' in argument spec
2 years ago
Martin Krizek
f024cf35d7
Remove the yum module, redirect it to dnf ( #81895 )
...
Fixes #81728
2 years ago
Nilashish Chakraborty
b01f1f207c
Support `action_plugin` in plugin_routing_schema ( #82562 )
...
now validation schema matches reality
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
2 years ago
Matt Clay
21247c828e
ansible-test - Bypass PEP 668 checks
...
When ansible-test installs requirements, it now instructs pip to allow installs on externally managed environments as defined by PEP 668.
This only occurs in ephemeral environments managed by ansible-test, such as containers,
or when the `--requirements` option is used.
2 years ago
Abhijeet Kasurde
a69fab86bc
ansible-test - remove Fedora 38 container and remote support
...
Fixes : #82022
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Matt Clay
c75624fbdc
ansible-test - Enable shellcheck SC2164
2 years ago
Matt Clay
3c432fea43
ansible-test - Update base/default test containers
2 years ago
Mark Chappell
5346009d2c
ansible-test - Allow multiple documents in the YAML stream for EXAMPLES ( #82355 )
...
* Allow multiple documents in the YAML stream for EXAMPLES.
* Add integration test
* linting
2 years ago
Matt Clay
4208bdbbcd
ansible-test - Update nios-test-container to 3.0.0
2 years ago
Abhijeet Kasurde
e6e19e37f7
validate-modules: Check for correct values in choice ( #82266 )
...
* validate-modules: Check for correct values in choice
* validate-modules test now checks the length of choices and
correct option values inside the choice.
Fixes : #82179
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fix sanity tests
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
---------
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Martin Krizek
afd45aca6a
ansible-test - remove rhel 9.2 test remote ( #82211 )
...
Fixes #82024
2 years ago
Abhijeet Kasurde
fbdb666411
ansible-test: Added Fedora 39 ( #82218 )
...
* Fedora 39 remote
* Fedora 39 container
Fixes : #82018
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Martin Krizek
0bab08ee33
ansible-test - Add RHEL 9.3 support ( #82178 )
...
Fixes #82020
2 years 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.
2 years ago
Matt Clay
36d6860d80
ansible-test - Remove no-main-display sanity test
2 years ago
Matt Clay
6e15fb0ebf
ansible-test - Removed no-basestring sanity test
2 years ago
Matt Clay
c349b91af3
ansible-test - Removed no-dict-* sanity tests
2 years ago
Matt Clay
9765bb46f9
ansible-test - Remove no-unicode-literals test
2 years ago
Matt Clay
18e8401edd
Remove Python 2.x compat from unit tests ( #82109 )
2 years 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>
2 years ago
Matt Clay
e933d9d8a6
ansible-test - Fix parsing of cgroup entries
2 years ago
Matt Clay
37cee8bdfc
ansible-test - Remove special cryptography install ( #82008 )
...
Python 3.10 is the minimum version on the controller, and it requires openssl 1.1.1 or later.
As a result, there's no need to check the openssl version any longer.
2 years ago
Matt Clay
f5c742cdfd
ansible-test - Clean up old Python 2 compat code ( #81962 )
...
* Update generated code __future__ import
* Remove Python 2.x compat from compile sanity test
* Remove __metaclass__ from pylint good names list
* Remove Python 2.x compat from ansible-test injector
* Remove Python 2.x compat from ansible-test importer
* Remove Python 2.x compat from ansible-test units
* Remove Python 2.x compat from validate-modules
* Remove Python 2.x compat from pylint plugins
* Remove more Python 2.x compat from ansible-test
* Remove Python 2.x openssl detection in ansible-test
* Remove obsolete Python 2.x comment
* Remove obsolete ansible-test Python 2.x support
* Remove unused bootstrap script functions
* Keep mypy happy
* Remove unused imports
* Keep pylint happy
2 years ago
Matt Clay
fd0f48e99d
ansible-test - Update base/default containers ( #81957 )
2 years ago
Matt Davis
d8484f0af7
Update default test container Python to 3.12 and support for PyLint 3.0.1 ( #81953 )
...
* temporary PyLint plugin to mask 3.12 finalizer noise
* ansible-test - Default to Python 3.12 for base/default
* ansible-test - Update pylint requirements
* ansible-test - Remove obsoleted changelog entry
* Add changelog fragment for pylint work-around
2 years ago
Sviatoslav Sydorenko
d2ba76c117
Remove Python `< 3.5` `selectors` fallbacks ( #81872 )
2 years ago
Matt Clay
921efce43a
ansible-test - Remove more Python 2.7 / 3.6 support ( #81898 )
2 years ago
Matt Clay
b94ee1cefd
Drop Python 2.7 and Python 3.6 support ( #81866 )
...
* Drop Python 2.7 and Python 3.6 support
* Remove obsolete _json_compat
2 years ago
Sloane Hertel
000cf1dd46
Update the test containers to include Python3.12.0 final ( #81858 )
2 years ago
Matt Clay
b7903669b4
ansible-test - Update distro containers ( #81851 )
...
* ansible-test - Update distro containers
* Update the alpine3 container to Python 3.11
* Update changelog
2 years ago
Matt Clay
20f17687da
ansible-test - Invoke container sleep through env ( #81853 )
2 years ago
Abhijeet Kasurde
d8f791d88c
Bump sanity test requirements for 3.12 ( #81846 )
2 years ago