romero126
fab1e12fb7
Update tests to accurately describe test actions. ( #10928 )
2019-10-30 09:13:55 +05:00
Eugene Samoylov
d528bf5d3d
Fix for Get-Content -ReadCount 0 behavior when -TotalCount is set ( #10749 )
2019-10-14 17:32:37 -07:00
Steve Lee
1fa73e360f
Add back Get-HotFix cmdlet ( #10740 )
2019-10-11 22:51:43 +05:00
Ilya
d7458c45b2
Add Get-ChildItem test ( #10507 )
2019-10-03 17:15:41 -07:00
PRASOON KARUNAN V
768e79a999
Adding -SecurityDescriptorSDDL parameter to New-Service ( #10483 )
2019-10-03 17:12:17 -07:00
romero126
0e90120b9a
Replace Ambiguous language for tests from switch to parameter for accuracy ( #10666 )
2019-10-03 20:54:08 +05:00
Ilya
91bf34679c
Read special reparse points without accessing it ( #10662 )
...
* Enhance enum FileDesiredAccess with zero value GenericZero
* Use the GenericZero as desired access mode to read reparse point without access it
From docs:
If desired access is zero, the application can query certain metadata such as file, directory, or device attributes without accessing that file or device, even if GENERIC_READ access would have been denied
2019-10-03 19:41:18 +05:00
PRASOON KARUNAN V
f6877022c3
Fix wrong output for New-Service in variable assignment and -OutVariable ( #10444 )
2019-09-03 11:11:14 -07:00
James Truher [MSFT]
3943f18c28
Alpine validation changes ( #10428 )
2019-08-24 11:35:34 -07:00
Steve Lee
5974afaa8d
Add support for AppX reparse points ( #10331 )
2019-08-13 17:45:41 -07:00
Dongbo Wang
0d817aa547
Update 'Microsoft.PowerShell.CoreCLR.Eventing' to resolve conflict with 'System.Diagnostics.EventLog' ( #10305 )
...
* Update 'Microsoft.PowerShell.CoreCLR.Eventing' to resolve conflicts
* Add reference to 'System.Diagnostics.EventLog' to build Microsoft.PowerShell.Commands.Diagnostics on Unix
* Stop compiling Get/New-WinEvent on Unix
2019-08-08 17:44:54 +05:00
Aditya Patwardhan
ea4895c849
Mark Set-Service tests with password as Pending ( #10146 )
2019-07-12 16:50:58 -07:00
Steve Lee
431ef0372a
Fix test password generation rule to meet Windows complexity requirements ( #10143 )
2019-07-12 12:11:45 -07:00
PRASOON KARUNAN V
ffb1549aa9
Add -SecurityDescriptorSddl parameter to Set-Service ( #8626 )
2019-07-11 13:23:57 -07:00
robdy
aa07eef187
Add test for New-Item -Force ( #9971 )
2019-06-25 11:03:07 -07:00
Steve Lee
981c990d74
Make UseAbbreviationExpansion and TempDrive official features ( #9872 )
2019-06-13 13:05:37 -07:00
kwkam
f0133bed8e
Fix Get-ChildItem -Path with wildcard char ( #9257 )
...
Unescape non-literal, non-glob path before existence checking.
2019-05-31 10:14:39 -07:00
Steve Lee
29e21470d9
Port PowerShell to .NET Core 3.0 ( #9597 )
2019-05-21 13:43:51 +08:00
Steve Lee
a96b4c0404
Update use of "PowerShell Core" to just "PowerShell" ( #9513 )
2019-05-10 15:34:27 -07:00
Aditya Patwardhan
ade85b4faa
Multiple test fixes and improved logging for fragile tests ( #9569 )
2019-05-10 10:56:12 -07:00
Steve Lee
346ab8c9d4
Change MatchType for EnumerationOptions to be Win32 ( #9529 )
2019-05-06 17:20:08 -07:00
xtqqczze
a702f68974
Ensure Wait-UntilTrue returns $true in Pester tests ( #9458 )
2019-05-01 17:03:43 -07:00
Dongbo Wang
687697bc90
Fix the failed test and update 'Publish-TestResults' to make AzDO fail the task when any tests failed ( #9457 )
2019-04-25 14:01:05 -07:00
Andrew
095be4655e
Return correct casing of filesystem path during normalization ( #9250 )
...
* return correct casing of filesystem path during normalization
* handle UNC case
* handle case to add trailing separator back
* add support for NTFS streams syntax
* add case-sensitive test
* only apply correct casing to directories
* handle 8.3 path syntax
* fix short path processing
2019-04-23 13:31:43 -07:00
Staffan Gustafsson
4ec36a0d4a
Fixing progress for Get-ComputerInfo ( #9236 )
2019-04-04 16:15:43 -07:00
Rene Hernandez
75da390d1e
Add ItemSeparator and AltItemSeparator properties in ProviderInfo ( #8587 )
...
Add two properties in `ProviderInfo` class: `ItemSeparator` and `AltItemSeparator`.
On windows, the default values for those two properties are `ItemSeparator = '\'` and `AltItemSeparator = '/'`.
On unix, the default values for those two properties are `ItemSeparator = '/'` and `AltItemSeparator = '\'`.
Registry provider is the only exception, both properties for it have the value `\`.
2019-04-02 09:59:36 -07:00
Steve Lee (POWERSHELL)
882e94f1cb
add case-sensitive test
2019-03-30 09:40:14 -07:00
Steve Lee
6bc2b55fdf
return correct casing of filesystem path during normalization
2019-03-29 13:22:52 -07:00
Staffan Gustafsson
9983297254
Removing Hardlink from Mode property in default file system format ( #8789 )
2019-03-12 15:49:16 -07:00
Steve Lee
26a58670c1
Enable creating relative symlinks on Windows with New-Item ( #8783 )
2019-02-07 11:44:23 -08:00
Aditya Patwardhan
6ccbebda27
Improve check for developer mode by checking minimum required build number ( #8749 )
...
* Improve check for developer mode by checking minimum required build number
The test would fail if the developer mode is enabled but the machine has an older build than the minimum required build.
The change adds a check for the build version in the test.
* Update test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1
2019-01-25 13:14:29 -08:00
Steve Lee
7e2cd7954f
Add the experimental feature for creating 'Temp:\' drive when FileSystemProvider initializes ( #8696 )
...
Adds Experimental Feature called `PSTempDrive` that, if enabled, creates a PSDrive called `Temp:` that maps to `[System.IO.Path]::GetTempPath()`.
2019-01-23 13:53:04 -08:00
Steve Lee
d6000fdea8
Allow Windows users in developer mode to create symlinks without elevation ( #8534 )
2019-01-08 10:43:24 -08:00
xtqqczze
1a3aadfc4e
Regularize redirection operator spacing in *.ps1 and *.ps1m ( #8581 )
...
Add space after redirection operator.
2019-01-03 12:59:14 +05:00
xtqqczze
70de294fea
Remove use of cmdlet aliases from .\test\powershell ( #8546 )
2018-12-28 13:48:23 +05:00
Aditya Patwardhan
551ed10b36
Fix EnvironmentVariable test and add missing null check in CommandHelpProvider ( #8408 )
...
* Disable NewItemUnauthorizedAccessError tests.
* Added expected value for $env:HOMEPATH for user with temporary profile.
* Added a missing null check in CommandHelpProvider.cs
2018-12-11 14:20:22 -08:00
Aditya Patwardhan
ee5fc080e2
Remove dotnet dependency to start WebListener ( #8390 )
...
WebListener.exe (which was already being built) is sufficient to start web listener. Remove the dependency on `dotnet` being present to start the web listener.
Use `Start-Process` instead of `Start-Job` to launch the WebListener.
2018-12-11 14:15:32 -08:00
PRASOON KARUNAN V
6e523f21eb
Fix for PSDrive creation with a UNC path with a trailing backslash or forward slash when combined with -Persist ( #8305 )
2018-11-30 08:49:22 +05:00
Luke Jeremy
0cc1f06be4
Remove Persist parameter from New-PSDrive on non-Windows platform ( #8291 )
2018-11-29 19:02:08 +05:00
Joel Sallow (/u/ta11ow)
775552c0f5
Test-Path: Return $false when given an empty or $null -Path/-LiteralPath value ( #8080 )
2018-11-21 10:08:31 +05:00
Paul Higinbotham
d4bf5c87bc
Fix tests running in Azure DevOps ( #8220 )
2018-11-09 15:11:02 -08:00
kwkam
caad7ed471
Fix Rename-Item -Path with wildcard char ( #7398 )
2018-11-09 11:08:26 -08:00
PRASOON KARUNAN V
f59353d5d9
Error message enhancement for clear-content cmdlet when targeting a directory ( #8134 )
2018-11-01 08:56:45 +05:00
Steve Lee
9141b11c5e
Enable Set-Location -LiteralPath to work with folders named "-" and "+" ( #8089 )
2018-10-24 09:37:59 +05:00
Steve Lee
082c3b0bae
Enable Add-Content to share read access to other tools while writing content ( #8091 )
2018-10-23 16:27:53 -07:00
Steve Lee
4e5e3900f6
Allow dynamic parameter to be returned even if path matches nothing ( #7957 )
2018-10-18 11:44:08 -07:00
Steve Lee
5b4e9a9881
Change API to match cmdlet which is more reliable in AzDevOpsPipelines Windows ( #8003 )
2018-10-11 15:52:12 -07:00
Ilya
0727f96d97
Replace hang term ( #7902 )
2018-10-02 08:11:38 +05:00
James Truher [MSFT]
98cf44cdec
Test changes needed for running in a container ( #7869 )
2018-09-28 13:49:31 -07:00
PRASOON KARUNAN V
e6702fe780
Get/Add-Content throws improved error when targeting a container ( #7823 )
2018-09-28 20:36:13 +05:00