summaryrefslogtreecommitdiff
path: root/lib/ansible/executor/powershell
Commit message (Collapse)AuthorAgeFilesLines
* Use ansible.module_utils.common.text.converters (#80704)Matt Clay2023-05-031-1/+1
| | | Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.
* Change ansible_job_id format (#79951)Martin Krizek2023-02-091-1/+1
| | | | | | | | | | * Change ansible_job_id format ...to be something that does not resemble float or other type which value could be changed by literal_eval that jinja2_native uses. Specifically the format of '%d.%d' is converted from str to float and then back to float which may result in truncating the number resulting in the job not being found because the job id does not exist.
* Fix up sanity problemsJordan Borean2022-11-021-5/+5
|
* ansible-test pssa update and new rules (#76256)Jordan Borean2021-11-108-54/+89
|
* PowerShell - Support optional module util imports (#75187)Jordan Borean2021-09-231-14/+27
|
* Vendor `distutils.version` (#74644)Matt Martz2021-05-111-1/+1
| | | | | | | | | | | | | | | * 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
* rethink wording (#70028)Brian Coca2020-10-301-2/+2
| | | | | | | * rethink wording * removed unrequired requirement * fix tests * fixed versions Co-authored-by: Sloane Hertel <shertel@redhat.com>
* win async - use full path for powershell (#70703)Jordan Borean2020-07-181-1/+2
|
* Code cleanup for ansible-test coverage support.Matt Clay2020-06-242-6/+6
|
* collection routing (#67684)Matt Davis2020-05-261-1/+1
| | | | | | | * `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
* Add resource_from_fqcr utility function. (#68474)Felix Fontein2020-05-141-1/+2
|
* windows - fix up env var quoting for unicode single quotes (#68968)Jordan Borean2020-04-161-7/+8
| | | | | * windows - fix up env var quoting for unicode single quotes * Add sanity ignore check for smart quotes
* Add relative module_util support for powershell (#68321)Jordan Borean2020-04-011-17/+34
| | | | | * Add relative module_util support for powershell * Added ansible-test classification support
* Address compat issue for collection loading on py26 (#68219)Matt Martz2020-03-231-6/+1
| | | | | | | | | | | | | | | | | | | | | * Address compat issue for collection loading on py26 * Move import_module shim to utils for compat across the codebase * Enable collection tests on py2.6 * Update changelog fragment * Simplify code using sys.moduls * Move compat to module_utils/compat/importlib * Add back errantly deleted newline * Remove hack comment Co-Authored-By: Matt Clay <matt@mystile.com> Co-authored-by: Matt Clay <matt@mystile.com>
* Fix runas as collection become plugin (#67638)Jordan Borean2020-02-211-1/+1
|
* Use Ansible to load ps module utils in arg spec checker (#67596)Jordan Borean2020-02-201-0/+1
| | | | | | * Use Ansible to load ps module utils in arg spec checker * Added changelog and note
* Add new configuration parameter to make Windows async startup timeout ↵Xyon2020-01-242-3/+9
| | | | | | | | | | | | | | configurable (#66670) * Add new configuration parameter to make this timeout configurable * Rename keys to be more correct and reformat exception message for whitespace handling * Rename config away from default prefix. Add vars element and associated changes to support. * Update 65001-allow_configuring_async_startup_timeout.yml Co-authored-by: Matt Davis <nitzmahone@users.noreply.github.com>
* Use UTF-8 without a BOM for win coverage (#66510)Jordan Borean2020-01-161-1/+3
|
* Windows coverage - output temp files with UTF-8 BOM (#65086)Jordan Borean2019-11-201-4/+8
| | | | | | | * Windows coverage - output temp files with UTF-8 BOM ci_complete ci_coverage * Remove testing changes to get ready for merge
* Add proper error when trying to run on older PS versions (#62634)Jordan Borean2019-09-241-0/+6
|
* win_exec_wrapper - Be more defensive when trying to get output errors (#62376)Jordan Borean2019-09-191-4/+34
| | | | | | * win_exec_wrapper - Be more defensive when trying to get output errors * Fix up property search
* Change collection PS util import pattern (#61307)Jordan Borean2019-08-271-29/+79
| | | | | | | | | | | | | | * Change collection PS util import pattern * Add changes for py2 compat * fix up regex and doc errors * fix up import analysis * Sanity fix for 2.6 CI workers * Get collection util path for coverage collection
* PowerShell - Added coverage collector (#59009)Jordan Borean2019-08-284-19/+272
| | | | | | | | | | | | | | | | * Added coverage collection for PowerShell - ci_complete ci_coverage * uncomment out coverage uploader call * Generate XML for PowerShell coverage * Use whitelist to exclude coverage run on non content plugins * Remove uneeded ignore entry * Try to reduce diff in cover.py * Fix up coverage report package - ci_complete ci_coverage
* Ansible.AccessToken - Added shared util for managing a Windows access token ↵Jordan Borean2019-08-091-10/+12
| | | | | | | | | | | | (#60302) * Ansible.AccessToken - Added shared util for managing a Windows access token * Fix tests when running in CI * More fixes for older servers * More fixes for Server 2008
* psrp - Fix raw and script tests for connection plugin (#55357)Jordan Borean2019-04-171-1/+1
| | | | | | | | * psrp - Fix raw and script tests for connection plugin * Fix error propagation with raw in psrp * uncomment test
* module_utils fixes in collections (#55118)Matt Davis2019-04-101-4/+17
| | | | | | | | | | | | * module_utils fixes in collections * fixed Windows module_utils in collections * fixed more Python module_utils cases (from X import module) * "medium style" Ansiballz modules now work properly with collections (ie, non-replacer but also not using basic.py) * added more tests * split Windows/POSIX exec * sanity
* Windows pslint: Re-enable PSPossibleIncorrectComparisonWithNull (#55065)Dag Wieers2019-04-101-1/+1
| | | | | | | | * pslint fixes * Fix up remaining sanity issues * now fix silly errors I made
* win become: refactor and add support for passwordless become (#48082)Jordan Borean2018-12-121-10/+17
| | | | | | | | | | | | | | | | * win become: refactor and add support for passwordless become * make tests more stable * fix up dep message for Load-CommandUtils * Add further check for System impersonation token * re-add support for become with accounts that have no password * doc fixes and slight code improvements * fix doc sanity issue
* split PS wrapper and payload (CVE-2018-16859) (#49142)Matt Davis2018-11-265-12/+25
| | | | | | * prevent scriptblock logging from logging payload contents * added tests to verify no payload contents in PS Operational event log * fix script action to send split-aware wrapper * fix CLIXML error parser (return to -EncodedCommand exposed problems with it)
* powershell - fix async for Ansible.Basic (#48404)Jordan Borean2018-11-131-13/+16
| | | | | | * powershell - fix async for Ansible.Basic * moved old out outside of the try block
* win_exec: refactor PS exec runner (#45334)Jordan Borean2018-10-029-0/+1175
* win_exec: refactor PS exec runner * more changes for PSCore compatibility * made some changes based on the recent review * split up module exec scripts for smaller payload * removed C# module support to focus on just error msg improvement * cleaned up c# test classifier code