1995 Commits
Author SHA1 Message Date
Travis Plunk 03d9281be6 Merged PR 27699: Block getting help from network locations in restricted remoting sessions
Cherry picked from !27698

Related work items: #152543
2023-09-20 20:23:09 +00:00
Travis PlunkandDongbo Wang d1d8b65045 Increase the timeout when waiting for the event log (#19264) (#19936)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2023-07-12 09:40:13 -07:00
Travis Plunk 7c4fd5b29a Delete charset regex test (#19585) 2023-05-05 11:48:04 -07:00
Travis Plunk 17da21af20 Fix issue with merge of 19068 (#19586) 2023-04-28 10:50:46 -07:00
Aditya Patwardhan 8450602d59 Skip VT100 tests on Windows Server 2012R2 as console does not support it (#19413) 2023-04-07 11:47:34 -07:00
James Truher [MSFT] 9fc8642474 Improve package management acceptance tests by not going to the gallery (#19412) 2023-04-07 11:46:26 -07:00
Aditya Patwardhan dd76e4721b Test fixes for stabilizing tests (#19068) 2023-04-07 11:45:51 -07:00
Dongbo Wang b8602c8034 [release/v7.2.7] Backport of "Fix error formatting to use color defined in $PSStyle.Formatting" (#18287) 2022-10-13 16:02:37 -07:00
Aditya Patwardhan f153a64400 Fix ForEach-Object -Parallel when passing in script block variable (#16564) (#17860) 2022-08-09 16:01:17 -07:00
Aditya PatwardhanandDongbo Wang c446ba0e8b Make Out-String and Out-File keep string input unchanged (#17455) (#17859)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2022-08-09 16:01:12 -07:00
github-actions[bot] efd3c91b92 Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks (#17822) 2022-08-09 16:01:06 -07:00
github-actions[bot]andTravis Plunk f518f0bc4c Make Assembly Load Native test work on a FX Dependent Linux Install (#17496)
* Make Assembly Load Native test work on a FX Dependent Linux Install

* Update Assembly.LoadNative.Tests.ps1

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2022-06-07 17:54:40 +00:00
Travis Plunk ff8311ec60 Backport test fixes for 7.2 (#17494) 2022-06-07 10:39:13 -07:00
James Truher [MSFT] f1cb6d6b63 Enable more tests to be run in a container. (#17294) 2022-06-01 11:11:09 -07:00
a3385b92e3 Update to use windows-latest as the build agent image (#17418)
* Update to use 'windows-latest' as the build agent image

* Update additional files

* debug test failures

* Added some more wincompat debug info

* Added some more wincompat debug info 2

* Stabilizing some wincompat tests when they are run on OS with compatibility-bugged WindowsPS buitin modules

* Stabilizing some wincompat tests

* Add verbose message to 'Enable-WSManCredSSP' test

* More debugging

* Make the 'Enable-WSManCredSSP' test more stable

* Address feedback

* remove broken tests

* Fix Spelling

* remove more broken TLS tests

* remove broken tests

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
Co-authored-by: unknown <anmenaga@microsoft.com>
Co-authored-by: Travis Plunk <github@ez13.net>
2022-06-01 10:31:28 -07:00
github-actions[bot] 0fe19c1136 Try to stabilize a few tests that fail intermittently (#17426) 2022-05-26 10:03:35 -07:00
Travis Plunk 8af2f5c611 TLS test fix back-port (#17424)
Cherry-pick part of #17061
2022-05-24 13:13:44 -07:00
Steve Lee 10230139bf Fix web cmdlets so that an empty Get does not include a content-length header (#16587) 2022-05-09 10:38:51 -07:00
Travis Plunk 5f2bfe1708 Re-enable PowerShellGet tests targeting PowerShell gallery (#17062)
Re-enable `PowerShellGet` tests targeting PowerShell gallery (#17062)

# Conflicts:
#	test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1
2022-04-13 22:05:07 +00:00
Paul Higinbotham 1a5b53a821 Skip failing scriptblock tests (#17093) 2022-04-13 19:08:41 +00:00
Andrew Menagarishvili 6cc82777e1 Merged PR 18394: Change default for $PSStyle.OutputRendering to Ansi
Cherry picked from !18333
2021-12-07 21:54:57 +00:00
Dongbo Wang 9e5e8a2603 Don't throw exception when trying to resolve a possible link path (#16310) 2021-11-01 11:58:34 -07:00
Travis Plunk 2134068884 Disallow Add-Type in NoLanguage mode on a locked down machine (#16245) 2021-10-18 11:05:01 -07:00
Dongbo Wang 93a3788e0e Make property names for the color VT sequences consistent with documentations (#16212) 2021-10-18 11:03:35 -07:00
Steve Lee a1c1aeba5c Don't allow Move-Item with FileSystemProvider to move a directory into itself (#16198) 2021-10-18 11:02:11 -07:00
Dongbo Wang 6819dfc75a Change Target from a CodeProperty to be an AliasProperty that points to FileSystemInfo.LinkTarget (#16165) 2021-10-18 11:00:16 -07:00
Steve Lee c1401377d4 Add isOutputRedirected parameter to GetFormatStyleString() method (#14397) 2021-09-15 11:12:26 -07:00
Paul Higinbotham 1dcc873952 Fix ConvertTo-SecureString with key regression due to .NET breaking change (#16068) 2021-09-15 11:12:21 -07:00
Steve Lee 7c9bf378f0 Fix regression in Move-Item to only fallback to CopyAndDelete in specific cases (#16029)
If Move fails, check if known case before attempting CopyAndDelete:

- if an item is attempted to be renamed across filesystem mount boundaries.
- if the source and destination do not have the same root path.
2021-09-15 11:11:20 -07:00
Dongbo Wang 13c5aee0f8 Set $? correctly for command expression with redirections (#16046) 2021-09-15 11:10:52 -07:00
Aditya Patwardhan 88df7e91b7 Update Ubuntu images to use Ubuntu 20.04 (#15906) 2021-09-15 11:09:26 -07:00
Ilya d36dc85612 Enable two previously disabled Get-Process tests (#15845) 2021-09-15 11:09:04 -07:00
Joel Sallow (/u/ta11ow) 2afa687b04 Use CurrentCulture when handling conversions to DateTime in Add-History (#16005) 2021-09-15 11:08:51 -07:00
github-actions[bot] b414fff353 Update .NET SDK version from 6.0.100-preview.6.21355.2 to 6.0.100-rc.1.21426.1 (#15648) 2021-09-15 11:08:39 -07:00
Steve Lee a162856af5 Change default to OutputRendering.Host and remove OutputRendering.Automatic (#15882) 2021-08-16 14:17:07 -07:00
Dongbo Wang eeb0407377 Add more tests to validate the current command error handling behaviors (#15919) 2021-08-14 14:31:49 -07:00
Dongbo Wang 286f12a37c Update .NET adapter to handle interface static members properly (#15908) 2021-08-14 07:56:14 -07:00
Paul Higinbotham 1ec61d955c Remove implicit remoting batch experimental feature (#15863)
It was decided by committee (#15862) to remove this experimental feature. It was an interesting idea but the implementation did not cover important cases, and could not be updated easily to do so.
2021-08-13 08:34:31 +05:00
Armaan Mcleod b70f06ccc6 Fix issue with Get-Process -Module failing to stop when piped to Select-Object (#15682) 2021-08-12 09:06:58 -07:00
Robert Holt 2f5150f5e5 Make Measure-Object property test independent of the filesystem (#15879) 2021-08-09 15:27:09 -07:00
Steve Lee cced56d75a Make PS-Committee reviewed experimental features stable (#15864) 2021-08-09 14:01:57 -07:00
Ilya 45adfee558 Enhance Remove-Item to work with OneDrive (#15571) 2021-08-05 11:41:55 -07:00
Steve Lee 2ae0e4d9dd Update ServerRemoteHost Version to be same as PSVersion (#15809) 2021-08-04 15:01:18 -07:00
3e86f9b287 ConvertTo-Csv: Quote fields with quotes and newlines when using -UseQuotes AsNeeded (#15765)
Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: lselden <luke.selden@vbrick.com>
2021-08-04 14:47:57 -07:00
6933c5b473 Only allow -File to accept .ps1 scripts on Windows (#15859)
Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>
2021-08-03 13:43:00 -07:00
Staffan Gustafsson 1bfa1c36a7 Forwarding progress stream changes from Foreach-Object -Parallel runspaces (#14271) 2021-07-31 18:51:03 +05:00
James Truher [MSFT] 881f31b4b3 Harden logic when looking for syslog entries to be sure that we select based on PID (#15841) 2021-07-30 10:10:33 +05:00
xtqqczze 055b7f3003 Fix CA1052 for public API to make classes static when they only have static methods (#15775) 2021-07-28 12:28:24 -07:00
Steve Lee 5e15f66f97 Add validation to $PSStyle to reject printable text as ANSI escape sequence (#15825) 2021-07-27 17:14:20 +00:00
Thomas Nieto 7777afc005 Add -PassThru parameter to Set-Clipboard (#13713) 2021-07-22 10:17:53 -07:00