summaryrefslogtreecommitdiffstats
path: root/test/sanity (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use antsibull-changelog instead of packaged changelog generator (#69313)Felix Fontein2020-06-115-39/+4
| | | 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.
* Intercept code-smell tests using subprocess.Matt Clay2020-06-113-0/+3
| | | | | 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/+1
| | | | | * Use common pssanity requirements file * Fix up sanity ignore
* support hard coded module_defaults.yml groups for collections (#69919)Sloane Hertel2020-06-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Only allow groups which were hardcoded in module_defaults.yml only load action groups from the collection if module_defaults contains a potential group for the action * Fix tests using modules that override those whitelisted in lib/ansible/config/module_defaults.yml Third party modules should not be using group/ - use the action name instead * add externalized module_defaults tests add the missing group and collections ci_complete Co-authored-by: Matt Davis <mrd@redhat.com> * changelog ci_complete * Fix import in tests ci_complete * Update with requested changes ci_complete * don't traceback since we don't validate the contents of module_defaults ci_complete Co-authored-by: Matt Davis <mrd@redhat.com>
* Split out and install sanity test requirements. (#69971)Matt Clay2020-06-098-4/+23
| | | | | | | | | | | | | | | | | | | * Split out sanity test requirements. * Run each --venv test separately. This provides verification that the requirements for each test are properly specified. * Use a separate requirements file per sanity test. * Skip setuptools/cryptography setup for sanity. * Eliminate pyyaml missing warning. * Eliminate more pip noise. * Fix conflicting generate_pip_install commands. * Add changelog fragment.
* Re-add documentation for yum "install_repoquery" (#69871)Rick Elrod2020-06-041-2/+0
| | | | | | | | | | | | | | | | | | | | | Change: - This was removed in 2014 in 122a7021bc0af. - The option still exists and is enabled by default and can lead to user confusion when people aren't expecting packages (or updated dependencies for it) to get installed and they do. - Add the option documentation back with a few notes to make it clear what is happening. Test Plan: N/A, no code change, just documentation Tickets: - Refs #69497 Signed-off-by: Rick Elrod <rick@elrod.me> * Fix sanity errors Signed-off-by: Rick Elrod <rick@elrod.me>
* Add support to install collections from git repositories (#69154)Sloane Hertel2020-05-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Enable installing collections from git repositories * Add tests for installing individual and multiple collections from git repositories * Test to make sure recursive dependencies with different syntax are deduplicated * Add documentation * add a changelog * Skip Python 2.6 * Only fail if no collections are located in a git repository Add support for a 'type' key for collections in requirement.yml files. Update the changelog and document the supported keys and allowed values for the type. Add a note that the collection(s) in the repo must contain a galaxy.yml * Add a warning about embedding credentials in SCM URLs * Update with review suggestions * suppress sanity compile failure for Python 2.6
* ansible-test - fix up relative util import for powershell validate-modules ↵Jordan Borean2020-05-291-0/+3
| | | | | | | | | (#69753) * ansible-test - fix up relative util import for powershell validate-modules * Use different tactic for generic group * Use python 2 and 3
* Fix docs return formatting. (#69632)Toshio Kuratomi2020-05-281-1/+0
| | | | | Gets rid of the unknown field names in the return data. Allows the plugin return docs to format under the new docs pipeline. * Expect that package_facts will pass return-syntax-error now.
* collection routing (#67684)Matt Davis2020-05-262-7/+14
| | | | | | | * `meta/` directory in collections * runtime metadata for redirection/deprecation/removal of plugin loads * a compatibility layer to keep existing content working on ansible-base + collections * a Python import redirection layer to keep collections-hosted (and otherwise moved) content importable by things that don't know better * supported Ansible version validation on collection loads
* correctly merge multiple facts results (#68987)Brian Coca2020-05-211-0/+2
| | | | | * correctly merge multiple facts results fixes #68532
* Remove conflicting plugin from test/support/ dir. (#69628)Matt Clay2020-05-201-2/+0
|
* Add multipart/form-data functionality (#69376)Matt Martz2020-05-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add multipart/form-data functionality * Fix some linting issues * Fix error message * Allow filename to be provided with content * Add integration test * Update examples * General improvements to multipart handling * Use prepare_multipart for galaxy collection publish * Properly account for py2 vs py3, ensuring no max header length * Address test assumptions * Add unit tests * Add changelog * Ensure to use CRLF instead of NL * Ignore line-endings in fixture * Consolidate code, add comment * Bump fallaxy container version * ci_complete
* comment heavy playbook (#68981)Brian Coca2020-05-192-0/+2
| | | | | | * create examples/play.yml Co-authored-by: flowerysong <junk+github@flowerysong.com>
* Update compile skip; all release and docs build scripts require 3.6+Toshio Kuratomi2020-05-141-6/+18
|
* Fix filedescriptor out of range in select() when running commands (#65058)Bob Weinand2020-05-141-3/+3
| | | | | | | | | | | | | | | | | * Fix filedescriptor out of range in select() when running commands * Simplify the run_command() code Now that we're using selectors in run_command(), we can simplify some of the code. * Use fileobj.read() instead of os.read() * No longer use get_buffer_size() as we can just slurp all of the data instead. Also use a simpler conditional check of whether the selector map is empty Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
* Flatten the directory hierarchy of modules (#68966)Matt Martz2020-05-141-124/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Flatten the directory hierarchy of modules * Update ignore.txt, flatten units * Update imports * Completely flatten the modules directory * Update sanity ignore * Fix some sanity test ignores * Fix relative import * Fix docs builds without category * ci_complete * Clean up docs. ci_complete * Adjust needs/file alias * ci_complete * fix hardcoded ping module paths Co-authored-by: Matt Davis <mrd@redhat.com>
* Add deprecated removed_in_version and deprecated_aliases version tests (#66920)Felix Fontein2020-05-131-0/+1
|
* lintRick Elrod2020-05-081-0/+1
| | | | Signed-off-by: Rick Elrod <rick@elrod.me>
* Remove left hand side slicingToshio Kuratomi2020-05-061-0/+1
| | | | | | | | | | | | | | | | Left hand side slicing is confusing and slower but maybe more memory efficient in some circumstances. There is one case where it adds to code safety: when it's used to substitute a different list in place of a slice of the original list and the original list could have been bound to a different variable in some other code. (The most likely case of this is when it's a global variable and some other code might import that variable name). Because of the confusion factor we think it should only be used for the safety case or where it's been benchmarked and shown to have some sort of documentatble improvement. At the moment, only one piece of code falls into those categories so this PR removes all the other instances of left hand side slicing.
* Filter BLACKLIST_EXTS in PluginLoader (#69029)Rick Elrod2020-04-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | Change: Rather than hardcoding .pyo and .pyc, filter on all BLACKLIST_EXTS in the non-legacy logic of PluginLoader (_find_fq_plugin). The two harcoded extensions are part of BLACKLIST_EXTS already and this simply adds the rest of the blacklisted extensions to the check. In addition, check .endswith() instead of an exact match of the suffix, like everywhere else that uses BLACKLIST_EXTS. This allows for blacklisting, for example, emacs's backup files which can appear after any extension, leading to things like `foo.py~`. Test Plan: Ran `ansible-playbook` against a collection where a `foo.py~` module was getting executed instead of `foo.py` which also appeared in the same directory. `foo.py~` is no longer executed. Tickets: Fixes #22268 Refs #27235 Signed-off-by: Rick Elrod <rick@elrod.me>
* Update ansible-test handling of delegation paths. (#69056)Matt Clay2020-04-211-1/+0
|
* native types: literal_eval all the things (#68938)Martin Krizek2020-04-171-2/+0
| | | | | | | With https://github.com/pallets/jinja/pull/1190 merged our short-circuit is no longer valid (has it ever been?) as now data like ' True ' may go through our ansible_native_concat function as opposed to going through intermediate call to Jinja2's native_concat before. Now we need to always send data through literal_eval to ensure native types are returned.
* Expose to_<str> as a public function (#68965)Jordan Borean2020-04-161-1/+0
| | | | | | | * Expose to_<str> as a public function * Fix sanity checks * Move docstring to start of util
* windows - fix up env var quoting for unicode single quotes (#68968)Jordan Borean2020-04-161-0/+1
| | | | | * windows - fix up env var quoting for unicode single quotes * Add sanity ignore check for smart quotes
* prepare for future ansibot collection changes (#68944)jctanner2020-04-141-0/+1
|
* Migrate apt_repo to community.general. Fixes #68637 (#68641)Matt Martz2020-04-021-1/+0
|
* Add initial ansible-test tests for collections. (#68533)Matt Clay2020-03-291-0/+3
|
* Move coding guidelines links to readme. (#68479)Matt Clay2020-03-261-1/+0
|
* Cleanup refs to deleted files/dirs. (#68480)Matt Clay2020-03-261-7/+0
| | | | | | | | | * Remove deleted contrib dir from MANIFEST.in * Update package-data sanity test. Remove deleted files and directories. * Remove aws_config dirs.
* fix make webdocs warnings (#68411)Sandra McCann2020-03-251-3/+0
|
* disable bot notification spam (#68460)jctanner2020-03-251-0/+1
| | | | | * disable bot notification spam * add new key to botmeta sanity
* Ignore test files in new package-data sanity test (#68452)Jordan Borean2020-03-251-0/+2
|
* prevent ansible_facts injection (#68431)Brian Coca2020-03-241-0/+1
| | | | | | | - also only replace when needed - switched from replace to index - added test to verify bogus_facts are not accepted CVE-2020-10684
* remove azure extras and extras_require support (#67822)Matt Davis2020-03-232-34/+0
| | | | | | | | | | | | * remove azure extras and extras_require support * Since Azure will be collectionized, the requirements will float more frequently than Ansible releases; the Azure collection needs to host the requirements now. * Removed the dynamic extras support as well, since Azure was the only thing using it. If we need it again, it's easy to pull back from history. * Mark azure-requirements as orhpaned. This keeps the docs around so that existing links from old test runs remain valid. Co-authored-by: Matt Clay <matt@mystile.com>
* Rename tests (#68356)Matt Clay2020-03-231-4/+4
| | | | | | | | | | | * Rename `tests` test to match plugin type. * Rename `test_infra` test to avoid confusion. This test target is not a test for test plugins. * Rename `vars_prompt` test to avoid confusion. * Update sanity ignores.
* Fix sanity test ignores.Matt Clay2020-03-231-8/+0
|
* fix last 7 docs errors on post-migration test runs (#68115)Alicia Cozine2020-03-231-0/+3
| | | | | | | | | | | | | | * address toc-tree-glob-pattern-no-match errors * address Include-file-not-found error * address 2.10 porting guide errors, add warning to page * updates individual plugin type pages * Add ignores. Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com> Co-authored-by: Matt Clay <matt@mystile.com>
* Migrated to wti.remoteAnsible Core Team2020-03-231-12/+0
|
* Migrated to vyos.vyosAnsible Core Team2020-03-231-128/+0
|
* Migrated to openvswitch.openvswitchAnsible Core Team2020-03-231-7/+0
|
* Migrated to azure.azcollectionAnsible Core Team2020-03-231-665/+0
|
* Migrated to purestorage.flashbladeAnsible Core Team2020-03-231-8/+0
|
* Migrated to purestorage.flasharrayAnsible Core Team2020-03-231-34/+0
|
* Migrated to google.cloudAnsible Core Team2020-03-231-233/+0
|
* Migrated to cyberark.bizdevAnsible Core Team2020-03-231-1/+0
|
* Migrated to skydive.skydiveAnsible Core Team2020-03-231-21/+0
|
* Migrated to hetzner.hcloudAnsible Core Team2020-03-231-5/+0
|
* Migrated to dellemc_networking.os6Ansible Core Team2020-03-231-23/+0
|
* Migrated to dellemc_networking.os9Ansible Core Team2020-03-231-23/+0
|