summaryrefslogtreecommitdiffstats
path: root/test/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Force an upgrade to a newer version of antsibullToshio Kuratomi2020-08-141-0/+3
|
* Add support for non-yaml EXAMPLES (#71184)Matt Martz2020-08-121-1/+14
| | | | | | | | | * Add support for non-yaml EXAMPLES * Make pattern raw string * fmt tag should be the first non-whitespace line * Add changelog fragment
* Updates to Integration tests to pass against Alpine (#70946)Matt Martz2020-08-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start of alpine testing * More updates * Add forgotten file * remove debug * Add alpine3 * equal * group 4 * group 4 * group 5 * Try to decrease test length * libuser only available in testing * Remove debug * Make loops target work on hosts without gnu date * Enable alpine testing * ci_complete * Don't specify uid for creating test user * ci_complete * Re-sort docker completion * use newer container image * ci_complete * fix indentation Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-test: bump acme test container version to 2.0.0 (#71097)Felix Fontein2020-08-071-1/+1
|
* Make changelog tool be more strict about suffixes (#70909)Felix Fontein2020-08-062-1/+5
| | | | | | | * Bump antsibull-changelog version. * Flag all dotfiles, except .keep and .gitkeep. * Enable ignoring other fragment extensions.
* Misc typo fixes (#71089)Abhijeet Kasurde2020-08-051-1/+1
|
* fix collection package root location under pytest >=6.0.0 (#70963)Matt Davis2020-08-042-8/+30
|
* Fix ansible-test self-test change classification.Matt Clay2020-08-041-0/+5
| | | | | | Changes to sanity and unit tests now trigger the ansible-test self-test integration tests. No changelog entry since this only affects tests for ansible itself and not collections.
* Add the ansible_2_10 intersphinx reference. (#71028)Toshio Kuratomi2020-08-031-1/+1
| | | | | | | | | | | There are links from the scenario guides to collections but collections docs aren't built in testing or locally when we're on the devel branch. Due to that we need to make sure those references resolve to the production docsite. We can use intersphinx to make sure that happens. * The test for binary files wasn't reading enough of the file. Checking for null bytes in the first 1024 bytes failed to diagnose the ansible_2_10.inv file as binary
* Fix ansible-test relative import analysis.Matt Clay2020-07-301-2/+61
|
* Cap pytest version to avoid relative import issue.Matt Clay2020-07-281-0/+1
|
* validate-modules: fix version_added validation for top-level, fix error ↵Felix Fontein2020-07-282-23/+27
| | | | | | | | | | | | | | | | | codes (#70869) * Also validate top-level version_added. * Fix error code. * Produce same version_added validation error in schema than in code (and stop returning it twice). * Return correct error codes for invalid version_added for options and return values. * Add changelog. * Fix forgotten closing braket. * Accept 'historical' for some top-level version_added.
* Update ansible-base test container to 1.5.0. (#70856)Matt Clay2020-07-241-1/+1
|
* validate_modules: added missing single quote (#70744)Abhijeet Kasurde2020-07-201-1/+1
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fix ansible-test virtualenv management.Matt Clay2020-07-141-4/+3
|
* Update ansible-test change detection for plugins.Matt Clay2020-07-141-0/+34
|
* Fix ansible-test error in community.aws (#70507)Alan Rominger2020-07-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | * Fix ansible-test error in community.aws * Add changelog entry for fix * Change check from None to string_types * Update changelogs/fragments/70507-validate-null-author.yaml clarify wording "or a list of strings" Co-authored-by: Felix Fontein <felix@fontein.de> * Update test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/schema.py clarify wording - single string or not specified valid Co-authored-by: Felix Fontein <felix@fontein.de> * Do not fail but return None when given outside list Co-authored-by: Felix Fontein <felix@fontein.de>
* Test against galaxy_ng (#70303)Matt Martz2020-07-011-77/+32
| | | | | | | | | | | | | | | * Test against galaxy_ng * Switch container image * Remove redundant |default * Re-enable * Update image * Update wording * Don't use pulp as the container name
* ansible-test - do not validate blacklisted ps modules (#70376)Jordan Borean2020-06-301-0/+3
| | | | | | | | | * ansible-test - do not validate blacklisted ps modules * Update changelogs/fragments/validate-modules-ps-doc-blacklist.yaml Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Clay <matt@mystile.com>
* Code cleanup for ansible-test coverage support.Matt Clay2020-06-251-1/+1
|
* Test netconf plugins in ansible-doc sanity test.Matt Clay2020-06-251-3/+2
|
* Code cleanup in the import sanity test.Matt Clay2020-06-241-18/+22
|
* Pin ansible-test requirements for RHEL.Matt Clay2020-06-231-0/+3
| | | | The `packaging` and `pyparsing` packages are now installed by `ansible-test` during provisioning of RHEL instances to match the downstream vendored versions.
* Rename pylint plugin and add tests. (#70225)Matt Clay2020-06-231-54/+54
| | | | | * Renamed custom pylint plugin for unwanted names. * Add integration tests for sanity test failures.
* Fix yamllint sanity test line numbers.Matt Clay2020-06-181-3/+4
| | | | Parse errors from libyaml now compensate for the offset of the documentation within a module.
* Improve consistency of ansible-test pylint results. (#70132)Matt Clay2020-06-184-6/+12
| | | | | | | | | | | | | | | | | | * Disable too-many-ancestors pylint check. This check was only enabled for ansible-test code. In some cases this check counts 1 more ancestor in python 3.7+ than under python 3.6, making the check inconsistent and unsuitable for use in ansible-test. * Disable additional pylint checks: - import-error - no-name-in-module These checks were only enabled for ansible-test code. These checks provide inconsistent results since they are dependent on available imports, which vary between environments. It may be practical to enable these checks in the future if changes are made to ensure a consistent test environment for pylint.
* Clean up ansible-test pylint configs. (#70129)Matt Clay2020-06-184-64/+72
| | | | | | | | | * Sort disabled pylint codes in config. * Fix comments in pylint config. * Add comments to pylint config. * Prepare to sort pylint config. * Fix pylint config indentation. * Sort pylint good/bad names in config. * Add changelog fragment.
* Test ansible-galaxy against pulp/pulp_ansible (#69605)Matt Martz2020-06-173-181/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Test galaxy cli against pulp * linting fix * Renames and small fixes * Better handling for resetting pulp * Clean up some things, add a comment * I can't spell * Bump fallaxy, use alternate pulp image * Only reset pulp when we're are executing against pulp * Update for updated pulp container * Update some comments with correct URLs and typos * Linting fix * Pin pulp-fedora31 to a digest * Address review comments for documentation
* Disabled inconsistent pylint checks.stable-2.10-branchpointMatt Clay2020-06-174-0/+8
|
* Add an author exception for OpenStack Ansible SIGMonty Taylor2020-06-171-1/+2
| | | | | | | | | | | | The current author line wants to match a github author id. But some people, including the OpenStack project, do not use github, and additionally do not claim individual ownership but instead group ownership. Since there are already a couple of hard-coded examples in the regex, just add one more. Alternately we could come up with some mechanism to indicate that the author is purposely not listing a github id, but that seems a bit heavywight.
* Update ansible-test default test containers.Matt Clay2020-06-171-2/+2
| | | | The main change is the upgrade to Python 3.9.0b3.
* Add pyparsing constraint to ansible-test.Matt Clay2020-06-161-0/+1
| | | | | | | | The upcoming pyparsing 3 release will require Python 3.5 or later, see: https://github.com/pypa/packaging/issues/313 Unfortunately pip 8.x and earlier versions do not support python version requirements, which is why this constraint is needed.
* Fix ansible-test import sanity test issues. (#70084)Matt Clay2020-06-161-8/+21
|
* Fix missing allow_date=False.Felix Fontein2020-06-151-2/+2
|
* Boolean error: fix deprecation date sanity check. (#70047)Felix Fontein2020-06-131-1/+1
|
* Update ansible-test test containers.Matt Clay2020-06-121-12/+12
|
* validate-modules: allow YAML dates in module documentation and ↵Felix Fontein2020-06-123-5/+20
| | | | meta/runtime.yml. (#70025)
* validate ansible-base's and collections runtime.yml (#69742)John R Barker2020-06-123-0/+163
| | | | | | | | | | | | | | | | | | | | | | * Validate ansible-base & collection's runtime.yml Add new test `runtime-metadata` * Schema validation of file * Error if a a legacy meta/routing.yml exist in a collection * removal_date OR removal_version * Add tombstone validation. * Allow both ISO 8601 date strings and datetime.date objects (from YAML dates). * Address review comments. * Add metadata to test collection. * Add requirements file. Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Matt Clay <matt@mystile.com>
* Avoid use of deprecated junit-xml method.Matt Clay2020-06-121-1/+9
|
* Ignore return code from antsibull_changelog lint.Matt Clay2020-06-121-1/+1
|
* Add Azure Pipelines support to ansible-test.Matt Clay2020-06-112-0/+305
|
* Add mccabe complexity testing (#64623)Matt Martz2020-06-112-1/+4
| | | | | | | | | | | * Add mccabe complexity testing * Make mccabe complexity an optional error * Add mccabe to new sanity pylint requirements * Add a changelog fragment. Co-authored-by: Matt Clay <matt@mystile.com>
* Fix changelog sanity test config detection.Matt Clay2020-06-111-3/+4
|
* config: singular ANSIBLE_COLLECTIONS_PATH (#70007)James Cassell2020-06-114-6/+6
| | | | | | | | | | | | * config: singular ANSIBLE_COLLECTIONS_PATH Every other *_PATH setting in ansible is singular, and the traditional $PATH variable is also singular despite containing a list of directories. Let's be consistent both internally and with POSIX tradition. * update all ANSIBLE_COLLECTIONS_PATHS env references to be singular * deprecate plural ANSIBLE_COLLECTIONS_PATHS setting
* Use antsibull-changelog instead of packaged changelog generator (#69313)Felix Fontein2020-06-115-0/+67
| | | Replace the ansible-base changelog linting and generation tool with antsibull-changelog and make it available for linting collections. Previously changelog linting was limited to ansible-base.
* ansible-test: vcenter initialize group/vmware (#70011)Gonéri Le Bouder2020-06-111-1/+1
| | | | | | | | | | | Ensure the vcenter provider initialize the `module_defaults` of all the vmware modules, not just `vmware_guest`. The VMware CI relies on this for the authentication of the different VMware modules. The commit adjust `incidental_vmware_prepare_tests/tasks/init_vcsim.yml`. The test-suite uses a copy of `vmware_guest` that is not in the `group/vmware` group. As a result, we need to manually pass the authentification parameter.
* Intercept code-smell tests using subprocess.Matt Clay2020-06-111-1/+8
| | | | | Some code-smell sanity tests for ansible-base use subprocess to invoke ansible commands. Intercept these commands to make sure the correct script and python version are used.
* Use common ps sanity requirements file (#69992)Jordan Borean2020-06-101-0/+15
| | | | | * Use common pssanity requirements file * Fix up sanity ignore
* Additional ansible-test sanity adjustments. (#69974)Matt Clay2020-06-104-17/+59
| | | | | | * Fix ansible-test check_pyyaml usage. * Avoid unnecessary pip commands. * Avoid pointless pip check. * Only install ansible-test requirements as needed.
* Fix ansible-test pip filter on Fedora 32.Matt Clay2020-06-101-1/+1
| | | | The original version works on CentOS 8 but not Fedora 32.