Travis Plunk
a7af714d3f
Merged PR 8428: Disable debugger in System Lock down mode
...
disable debugger in System Lock down mode
2019-05-16 20:17:31 +00:00
Aditya Patwardhan
2d1fc730c7
Merged PR 8394: Port release automation changes into 6.2.1
2019-05-15 00:12:12 +00:00
Travis Plunk
de5e1aa8c4
Partially revert "Fix the failed test and update 'Publish-TestResults' to make AzDO fail the task when any tests failed ( #9457 )"
...
This reverts commit 3fc464d84b .
2019-05-14 12:51:04 -07:00
Dongbo Wang
3fc464d84b
Fix the failed test and update 'Publish-TestResults' to make AzDO fail the task when any tests failed ( #9457 )
...
# Conflicts:
# test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1
2019-05-13 14:51:32 -07:00
Steve Lee and Travis Plunk
9a2ed974fd
Fix skipping of tests in RemoteSession.Basic.Tests.ps1 ( #9304 )
...
Moved check if able to write to $PSHome as way to skip test to `BeforeAll` which already contained a check if running on Windows.
## PR Context
As part https://github.com/PowerShell/PowerShell/pull/9279 , tests were updated to be skipped if the test requires writing to `$PSHome` but is not able to. However, these tests already had a skip mechanism in place so the additional check caused the test to run when it should have skipped.
Co-authored-by: Travis Plunk <github@ez13.net >
2019-04-15 14:29:52 -07:00
Steve Lee and Travis Plunk
efe9f99f1a
Update tests to account for when $PSHOME is readonly ( #9279 )
...
Co-Authored-By: SteveL-MSFT <slee@microsoft.com >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2019-04-15 14:29:42 -07:00
Travis Plunk
5f53274ba7
Mark tests in macOS CI which use applescript as pending/inconclusive ( #9352 )
...
Mark tests in macOS CI which use applescript as pending/inconclusive
# Conflicts:
# build.psm1
2019-04-15 13:21:49 -07:00
Steve Lee and Travis Plunk
9e608ac55f
Enable SecureString cmdlets for non-Windows ( #9199 )
...
On Unix systems, fallback to plaintext manipulation instead of using the DPAPI which is not available.
## PR Context
Currently, existing scripts that use SecureString cmdlets fail with an error complaining about crypt32.dll not being available. This change allows these cmdlets to be used, but there is no encryption of the string.
.Net already [states](https://docs.microsoft.com/en-us/dotnet/api/system.security.securestring?view=netcore-2.1#remarks ) that the contents of a SecureString are not encrypted on .Net Core.
Fix https://github.com/PowerShell/PowerShell/issues/1654
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2019-03-25 10:01:11 -07:00
Travis Plunk
f581ea657d
Add Obsolete message to Send-MailMessage ( #9178 )
...
Add Obsolete message to Send-MailMessage
## PR Context
See https://github.com/PowerShell/PowerShell-RFC/pull/160
Co-authored-by: Steve Lee <slee@microsoft.com >
Co-authored-by: Ilya <darpa@yandex.ru >
# Conflicts:
# test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1
2019-03-25 10:00:42 -07:00
Travis Plunk
e0d5dfd828
Fix Enter-PSHostProcess tests flakiness ( #9007 )
2019-03-21 14:28:49 -07:00
Joel Sallow (/u/ta11ow)
ea4bf50623
Fix -NoEnumerate behaviour in Write-Output ( #9069 )
...
Fix is to preserve input collection type in output.
The regression was caused by #2038
2019-03-13 13:32:51 -07:00
Reece Dunham
a4517c015b
Added RequireSudoOnUnix tags to PowerShellGet tests and unmark as pending ( #8954 )
2019-03-13 13:03:46 -07:00
Ilya
6912a91d0f
Pending NamedPipeConnectionInfo test ( #9003 )
...
Related #8971 . Pending the test until we fix a root case of failure.
2019-03-13 12:55:43 -07:00
mjanko5
477ad564b6
Add test for -WhatIf for New-FileCatalog ( #8966 )
2019-03-13 12:55:29 -07:00
Tyler James Leonhardt
23eccfd641
[feature] Add -CustomPipeName to pwsh and Enter-PSHostProcess ( #8889 )
...
This allows a user to start PowerShell up with the name of the named pipe that is used for cross process communication (I.e. Enter-PSHostProcess).
2019-02-22 23:40:03 +05:00
Andrea Spadaccini
af86157855
Fix typo: aganist ➜ against ( #8943 )
2019-02-22 18:46:31 +05:00
Travis Plunk
57aeca428e
Port Security bypass fixes from 6.1.3 ( #8915 )
2019-02-21 13:44:08 -08:00
Steve Lee
b06ad6aa61
Enable discovering modules that have names same as a culture (e.g. Az) ( #8777 )
...
Here are the major changes:
- Add logic to skip checking for possible resource directories for the first set of sub directories from the top level.
- There was an additional skip if the folder is hidden, rather than doing an explicit attribute check, change the `EnumerationOption` to skip hidden folders.
- Since the `IsPossibleModuleDirectory()` helper now only checks to see if the name matches a culture, renamed to `IsPossibleResourceDirectory()`
- When getting the default modules, we don't search recursively into individual module folders, so removed additional check for possible resource directory.
2019-02-20 12:23:27 -08:00
Adam Gauthier
caf8ac6a6a
Add configurable maximum depth in ConvertFrom-Json with -Depth ( #8199 )
...
Adds an optional -Depth parameter to the cmdlet which lets the user to specify a maximum depth allowed for deserialization, which will overwrite the default maximum of 1024.
2019-02-20 10:37:37 +05:00
Steve Lee
26a58670c1
Enable creating relative symlinks on Windows with New-Item ( #8783 )
2019-02-07 11:44:23 -08:00
Bruce Payette
6bc6257a55
Allow .exe files to be used as IL binary modules ( #7281 )
...
Fix for #6741 Allow .exe files to be used as binary modules. Basically anywhere a .dll could be used with modules, you can now use a .exe file. Also did a little clean up, replacing constant strings with the StringLiteral values instead.
2019-02-07 11:24:06 -08:00
Steve Lee
313c8c06a1
Enable Write-Information to accept $null ( #8774 )
2019-01-31 13:16:34 -08:00
Joshua T
c935bce1ac
Adding parameter "ReplyTo" to Send-MailMessage ( #8727 )
2019-01-30 16:33:15 -08:00
Mark Kraus
ff83206e1c
Fix Request Charset Issues in Web Cmdlets ( #8742 )
...
Instantiating a new MediaTypeHeaderValue object fails when the -ContentType parameter includes a charset such as application/json; charset=utf-8. This makes it impossible to set the content encoding on web requests. Moving to Parse() ensures we actually get a proper MediaTypeHeaderValue when the charset is present, thus allowing users to set their request encoding via proper -ContentType values.
2019-01-26 12:48:47 +05: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
Sergey Vasin
a9841d98fa
Make Join-String -InputObject 1,2,3 result equal to 1,2,3 | Join-String result ( #8611 )
...
Make `Join-String -InputObject 1,2,3` result equal to `1,2,3 | Join-String` result.
Fix #8610
2019-01-24 12:53:37 -08:00
xtqqczze
863528881f
Use https in URLs where available ( #8622 )
...
Use https in URLS across the repository where the domain serves content by https.
2019-01-24 12:50:11 -08:00
Steve Lee
3a8205018e
Fix Enter-PSHostProcess test to wait until runspace is ready before attempting to enter ( #8725 )
...
This fixes CI test failure in Windows build.
2019-01-23 15:07:34 -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
Mark Kraus
2dd549e34b
Fix Code Page Parsing Isssue in Invoke-RestMethod ( #8694 )
2019-01-22 10:45:40 -08:00
Mark Kraus
67004aa224
Fix expect 100-continue Issue with Web Cmdlets ( #8679 )
...
Web Cmdlets will no longer forcibly remove Expect: 100-continue from web requests.
This was a legacy setting that needed to be there because of platform differences that have since been resolved in CoreFX.
2019-01-19 11:16:18 +05:00
Michael Klement
20919ee793
Allow 'name' as an alias key for 'label' in ConvertTo-Html, allow the 'width' entry to be an integer ( #8426 )
2019-01-18 11:02:22 -08:00
Reece Dunham
f29a04c1bd
Remove appveyor environment checks ( #8669 )
2019-01-17 12:33:35 -08:00
PRASOON KARUNAN V
6b3e06893a
Adding tests for PSDiagnostics Module ( #8431 )
2019-01-16 14:59:35 -08:00
Ilya
782ef99465
Add support enum and char types in Format-Hex cmdlet ( #8191 )
2019-01-16 16:58:22 +05:00
Kirk Munro
41d9667307
Add -Stable to Sort-Object and related tests ( #7862 )
2019-01-15 17:14:39 -08:00
Dongbo Wang
c2dfae8ccb
Fix 'FixupFileName' to not load resolved assembly during module discovery ( #8634 )
2019-01-15 16:22:25 -08:00
xtqqczze
6126624b63
Revise use of Start-Sleep cmdlet ( #8633 )
...
* Avoid use of sleep alias (follow-up to #8546 )
* Specify default parameter name
* Shorten overly specific comments
2019-01-15 12:31:52 +05:00
Steve Lee
c3cb6df809
Update 'CommandNotFound' fuzzy suggestion to only return unique results ( #8640 )
2019-01-14 14:28:15 -08:00
Jani
812456f84c
Improve Start-Sleep cmdlet to accept fractional seconds ( #8537 )
2019-01-14 10:04:44 -08:00
Steve Lee
6fa5195589
Update fuzzy test to fix daily build ( #8629 )
2019-01-11 16:45:49 -08:00
Steve Lee
71e58f9439
Add the experimental feature 'PSUseAbbreviationExpansion' to support tab completion on abbreviated command names ( #8109 )
2019-01-10 16:11:43 -08:00
Steve Lee
b87cd1c0a3
Add support to show suggestions on CommandNotFound exception ( #8458 )
...
* support fuzzy matching with get-command and on CommandNotFound exception, show suggestion
* fix CodeFactor issues
* change algorithm to use Damerau-Levenshtein Distance which is more useful in finding close matches
2019-01-10 13:35:30 -08:00
Ilya
6647b29f41
Fix LiteralPath in Import-Csv to bind to Get-ChildItem output ( #8277 )
...
Added new tests.
2019-01-09 18:49:15 +05:00
Michael Klement
73716e9792
Make scriptblock-based calculated properties work again in ConvertTo-Html ( #8427 )
2019-01-09 13:55:03 +05:00
Sergey Vasin
6f071f0ba5
Fix Join-String cmdlet FormatString parameter logic ( #8449 )
2019-01-09 11:06:20 +05: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
379cbb60cd
Correctly capitalize the ForEach operator in *.ps1 ( #8583 )
2019-01-06 17:00:56 +05:00
xtqqczze
f0f301bc5e
Avoid use of mkdir alias in *.ps1 and *.psm1 ( #8582 )
2019-01-04 14:31:24 +05: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