Jordan Borean
c8914a1678
windows - Fix module utils with glob paths ( #53835 )
...
* windows - Fix module utils with glob paths
* fix link util tests when using DOS 8.3 paths
(cherry picked from commit 980ca564ce
)
6 years ago
Dag Wieers
136da25bbf
WinRM/PSRP: Ensure shell returns UTF-8 output ( #47404 )
...
* WinRM/PSRP: Ensure shell returns UTF-8 output
This PR makes UTF-8 output work in PSRP shells.
* Add win_command and win_shell integration tests
* Fix tests
* more test fixes
(cherry picked from commit 691ff4b9e6
)
6 years ago
Jordan Borean
d559213b31
fix Ansible.ModuleUtils.FileUtil to respect ErrorAction if running in a try/catch ( #45451 )
...
(cherry picked from commit d4ce1b9f31
)
6 years ago
Jordan Borean
9259f31fee
Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it ( #43179 )
...
* Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it
* Changed namespace and class to be a better standard and fixed some typos
* Changes from review
* changes to avoid out of bound mem of server 2008
* changes to detect failure when setting a privileged not allowed
6 years ago
Jordan Borean
48ad90ac8e
powershell: support recursive requires statements ( #43143 )
6 years ago
Jordan Borean
0d1daf4de8
Ansible.ModuleUtils.SID - allow SID as an input to allow people to specify well know SIDs instead of the name ( #39400 )
7 years ago
Jordan Borean
b6afe6946d
Ansible.ModuleUtils.FileUtil - Add ability to test non file system provider paths ( #39200 )
7 years ago
jhawkesworth
ad94d03ba1
Tolerate win line endings on windows module_util load ( #37291 )
...
* tolerate windows line endings when loading windows module utils. Helpful for old custom windows modules.
* add test modules to demonstrate win line ending module load behaviour.
* attempt to fix sanity check failures
* pep8 fix
* explict skip of test modules from shebang check (core modules must still have expected unix style line endings)
* switch to rstrip() following core team meeting feedback
7 years ago
Jordan Borean
68e44e082e
Ansible.ModuleUtils.FileUtil: catch DirectoryNotFoundException when testing a path ( #37968 )
7 years ago
Jordan Borean
ea7d29e262
azure windows: changed pagefile to dynamically get the path ( #35376 )
7 years ago
Matt Davis
2a9ec6bdbf
fix Windows tests with hardcoded Administrator account ( #35339 )
...
* Admin account is not always called Administrator (eg Azure)
* this fixes some, but not all issues related to the Administrator account on non-English Windows as well (still numerous references to "Administrators" and other en-US Windows group names)
7 years ago
Jordan Borean
6f9f337a67
standardise the powershell FileUtils ( #34969 )
7 years ago
Jordan Borean
1bc4940ee1
added powershell symlink util helper ( #27153 )
...
* Added symbolic link util for powershell
* updated module_util license to BSD
7 years ago
Jordan Borean
e16e6313c7
windows: fix for checking locked system files ( #30665 )
...
* fix for checking locked system files
* moved functions to share module util and created tests
* fixed windows-paths test based on win_stat changes
7 years ago
Jordan Borean
b663f602bc
windows argv to string module utility ( #28970 )
...
* windows argv to string module utility
* rebased PR with latest devel branch
7 years ago
Jordan Borean
a940eb1e80
CamelConverter - more fixes picked up in testing ( #30601 )
7 years ago
Jordan Borean
1ea0293878
CamelConversion: fix to not convert string values ( #30595 )
7 years ago
Jordan Borean
6d196eaa98
windows command changed to use CreateProcess ( #30253 )
...
* windows command changed to use CreateProcess
* change to get become to work
7 years ago
Jordan Borean
a695f30411
Added powershell SID utils for shared common code ( #27091 )
...
* Added powershell SID utils for shared common code
* rebased from upstream and fixed up module util after change
7 years ago
Matt Davis
91f4c37ed7
rename legacy PS module_utils to remove PowerShell prefix ( #27495 )
7 years ago
Jordan Borean
a260063ffd
Added function to convert camelCase to snake_case for powershell ( #26203 )
...
* Added camel case to snake case converters
* removed uneeded shebang
* renamed util to remove PowerShell from the name
7 years ago
Matt Davis
907b662dc6
Powershell module_utils loader and tests ( #26932 )
...
* supports custom module_utils loads (anything in module prefaced with `#Requires -Module Ansible.ModuleUtils.*`)
* supports all usual PluginLoader module_utils locations (built-in lib/ansible/module_utils/, custom path from config, playbook module_utils/, ~/.ansible/module_utils, role module_utils, etc),
* moves Powershell module_utils from module_utils/powershell.ps1 to module_utils/powershell/Ansible.ModuleUtils.PowerShellLegacy.psm1
7 years ago