James Truher [MSFT]
0be73f1a42
Add debugging to the MTU size test ( #21463 )
2024-05-21 13:45:07 -07:00
Steve Lee
371ceff3b5
Fix Test-Path -IsValid to check for invalid path and filename characters ( #21358 )
2024-04-02 09:42:40 -07:00
Jordan Borean
4e2682920a
Get-Process: Remove admin requirement for -IncludeUserName ( #21302 )
2024-03-04 21:48:19 -08:00
Jordan Borean
fcf4953c3b
ConvertTo-Json: Serialize BigInteger as a number ( #21000 )
2024-02-27 14:52:58 -08:00
Steve Lee
05ed2f270c
Revert "Adjust PUT method behavior to POST one for default content type in WebCmdlets" ( #21049 )
2024-02-26 11:51:12 -08:00
Steve Lee
a880377d8a
Fix a regression in Format-Table when header label is empty ( #21156 )
2024-02-26 11:44:30 -08:00
Jordan Borean
71035543e7
ConvertFrom-Json: Add -DateKind parameter ( #20925 )
...
Adds the -DateKind parameter to the ConvertFrom-Json that allows the
caller to control how DateTime strings are converted into an object. The
default behaviour is to create a DateTime value with the Kind being
Unspecified if no TZ is set, Utc if the TZ Z is set, Local (after
conversion) if an explicit TZ is set. This adds a Utc, Local to
explicitly set the Kind as desired as well as a Offset and String value
to create a DateTimeOffset or keep as a string.
2024-02-13 09:05:07 +05:00
Jordan Borean
4f02a89906
Fix Get-Error serialization of array values ( #21085 )
...
Ensure Get-Error does not hang when attempting to serialize an exception
that contains a property whose type is an array of System.Type
instances. Also ensures that primitive types like System.Int32,
System.Boolean as well as System.String is formatted as a string rather
than an object with properties.
2024-01-24 08:41:18 +05:00
CarloToso
68204ae14f
Fix regression -Tail 0 -Wait ( #20734 )
2024-01-11 11:49:31 +05:00
dxk3355
71ae6070c2
Test-FileCatalog changes to use File.OpenRead to better handle when the file is executing or open Fix #20703 ( #20939 )
2023-12-21 22:28:36 +05:00
Armaan Mcleod
103c945c32
Fix -OlderThan/-NewerThan parameters for Test-Path when using PathType and date range ( #20942 )
2023-12-20 22:32:57 +05:00
Chaz Beck
3eda139723
Fix Start-Process -PassThru to make sure the ExitCode property is accessible for the returned Process object ( #20749 )
2023-12-07 19:11:28 +00:00
Matthias Wolf
ac84c35820
Fix regression in #20608 . ( #20745 )
2023-11-30 10:13:06 +05:00
Steve Lee
14245e0405
Fix rendering of DisplayRoot for network PSDrive ( #20793 )
2023-11-29 14:08:11 +05:00
Anam Navied
9ff866d908
Update PSResourceGet version for 1.0.1 release ( #20652 )
2023-11-09 11:01:11 -08:00
Patrick Meinecke
d3c91d0e63
Added a missing ConfigureAwait(false) call ( #20606 )
2023-11-01 12:42:28 -07:00
Thomas Nieto
4621c9e571
Change New-FileCatalog -CatalogVersion default to 2 ( #20428 )
2023-10-16 15:26:31 -07:00
Steve Lee
4fd4522b84
Suppress error output from Set-Location tests ( #20499 )
2023-10-16 19:46:59 +00:00
James Truher [MSFT]
81a7f6f621
Fix unixmode to handle setuid and sticky when file is not an executable ( #20366 )
2023-10-11 23:54:54 +00:00
Dongbo Wang
109c2425ac
Bump PSReadLine from 2.2.6 to 2.3.4 ( #20305 )
2023-10-03 11:28:44 -07:00
Steve Lee
9ebeca3d6e
Fix implicit remoting proxy cmdlets to act on common parameters ( #20367 )
2023-09-26 16:07:00 -07:00
Ikko Eltociear Ashimine
78cbbc3a02
Fix typo in FileCatalog.Tests.ps1 ( #20329 )
...
existant -> existent
2023-09-26 08:27:28 +05:00
James Truher [MSFT]
3f3d79d475
Continued improvement to tests for release automation ( #20182 )
2023-09-06 10:36:48 -07:00
Aditya Patwardhan
ddb3b5ff4c
Skip the test on x86 as InstallDate is not visible on Wow64 ( #20165 )
2023-08-29 12:46:53 -07:00
James Truher [MSFT]
a469783e76
Harden some problematic release tests ( #20155 )
2023-08-28 10:55:25 -07:00
CarloToso
344ac7b08a
New-Guid add -Empty and -InputObject parameters ( #20014 )
2023-08-28 09:33:55 -07:00
James Truher [MSFT]
046301b716
Additional test hardening for tests which fail in release pass. ( #20093 )
2023-08-16 11:28:59 -07:00
James Truher [MSFT]
91447e62de
Fixes for release tests ( #20028 )
2023-07-27 15:04:30 -07:00
CarloToso
e8ce6a5b1f
Support Unix-Socket in WebCmdlets ( #19343 )
2023-07-24 16:44:32 -07:00
MartinGC94
3f128d680f
Change how relative paths in Resolve-Path are handled when using the RelativeBasePath parameter ( #19755 )
2023-07-24 09:47:24 -07:00
dwtaber
3b9e70cfc8
Wait-Process: add -Any and -PassThru parameters ( #19423 )
2023-07-24 09:46:16 -07:00
Armaan Mcleod
836c0c580b
Added -CaseInsensitive switch parameter to Select-Object & Get-Unique cmdlets ( #19683 )
...
* Added Select-Object CaseInsensitive parameter and tests
* Added Get-Unique CaseInsensitive parameter and tests
* Fix codefactor issue
* Add named arguements
* Remove comments
2023-07-24 09:34:42 -07:00
Sean Wheeler
5595072568
Change docs.microsoft.com to learn.microsoft.com ( #19994 )
2023-07-17 15:54:17 -07:00
Steve Lee
5a6c66be13
Restore-Computer and Stop-Computer should fail with error when not running via sudo on Unix (#19824 )
2023-07-17 14:20:06 -07:00
Armaan Mcleod
d24285f437
Remove input text from the error message resulted by SecureString and PSCredential conversion failure ( #19977 )
2023-07-17 10:30:10 -07:00
James Truher [MSFT]
ee13bb9f05
Add more debugging to try to determine why these test fail in release build. ( #19829 )
2023-07-05 07:40:30 -07:00
CarloToso
cb2848c19b
Code cleanup for Get-Content to make -Head and -Tail disallow negative values ( #19715 )
2023-06-21 09:35:18 -07:00
MartinGC94
15213d8494
Do not require activity when creating a completed progress record ( #18474 )
2023-06-19 16:20:08 -07:00
stevenebutler
d614858550
WebCmdlets: Rename -TimeoutSec to -ConnectionTimeoutSeconds (with alias) and add -OperationTimeoutSeconds ( #19558 )
2023-06-19 15:07:16 -07:00
James Truher [MSFT]
133acc1961
Fix logic for Import-CliXml test ( #19805 )
2023-06-19 10:26:38 -07:00
alerickson
c43beccaa2
Add reference to PSResourceGet ( #19597 )
2023-06-16 16:16:34 -07:00
James Truher [MSFT]
ba0de3b4fe
Add some debugging to the transcript test for SilentlyContinue ( #19770 )
2023-06-12 17:03:53 -07:00
CarloToso
1822ad7373
Add FileNameStar to MultipartFileContent in WebCmdlets ( #19467 )
2023-06-12 09:55:32 -07:00
James Truher [MSFT]
22fdbbda0b
Re-enable Get-ComputerInfo pending tests ( #19746 )
2023-06-05 16:36:59 -07:00
MartinGC94
2e2b7db092
Fix wildcard globing in root of device paths ( #19442 )
2023-05-15 10:15:05 -07:00
Steve Lee
7888196b87
Add specific error message that creating Junctions requires absolute path ( #19409 )
2023-05-09 08:37:28 -07:00
xtqqczze
d314b0b1c0
Fix incorrect test cases in ExecutionPolicy.Tests.ps1 ( #19485 )
2023-05-09 00:12:07 +00:00
mkht
9502931493
Fix HTTP status from 409 to 429 for WebCmdlets to get retry interval from Retry-After header. ( #19622 )
2023-05-08 15:57:27 -07:00
Greg Dennis
1b248efb3f
Test-Json: Use JsonSchema.Net (System.Text.Json) instead of NJsonSchema (Newtonsoft.Json) ( #18141 )
...
Updates the Test-Json cmdlet to use JsonSchema.Net instead of NJsonSchema in order to:
- use System.Text.Json instead of Newtonsoft
- support the latest JSON Schema drafts (up to 2020-12)
2023-05-04 08:19:32 +05:00
07e041fe10
Allow combining of -Skip and -SkipLast parameters in Select-Object cmdlet. ( #18849 )
...
* Added SkipLast parameter set to Skip parameter and updated tests
* Using Should -BeExactly with string
* Update test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1
---------
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
Co-authored-by: Travis Plunk <github@ez13.net >
2023-05-02 13:07:32 -07:00