Bryan Berns
07962a9749
Address UTF-8 Detection In Get-Content -Tail ( #11899 )
...
- Addresses a comparison failure that causes UTF-8 detection to fail which in turn causes Get-Content -Tail to resort to forward lookups given encoding type cannot be detected. Possible this misdetection is due to the incoming encoding object as being of type System.Text.UTF8Encoding where as the comparison uses the object Encoding.UTF8 which is derived from System.Text.UTF8Encoding+UTF8EncodingSealed.
- See https://github.com/PowerShell/PowerShell/issues/11830
- Added 'OEM', 'UTF8BOM', and 'UTF8NoBOM' as explicit encodings for existing Get-Content -Tail tests.
* Add Multi-Byte Unicode Tail Character Tests
- Modified -Tail encoding test to use three different test sets: utf-8, utf-16, utf-32. The test verifies that the content resulting from -Tail is equal to the same string returned from a regular Get-Content using both an explicit and implicit encoding.
* Remove BigEndianUnicode Reference In Comment
2020-03-14 09:57:04 +05:00
Aditya Patwardhan
5edff316c1
Skip directory creation at root test on macOS ( #11878 )
2020-02-18 14:11:22 -08:00
Aditya Patwardhan
a578347b5a
Update Get-PlatformInfo helper and tests for Debian 10, 11 and CentOS 8 ( #11842 )
2020-02-12 18:35:24 -08:00
Ilya
9770477d43
Add new tests for Get-ChildItem (FileSystemProvider) ( #11602 )
2020-02-12 08:17:44 +05:00
Brendan Burns and Ilya
127fec5eb9
Refactor and implement Restart-Computer for Un*x and macOS ( #11319 )
...
Co-authored-by: Ilya <darpa@yandex.ru >
2020-02-03 14:57:17 -08:00
James Truher [MSFT]
476a2d1dac
Fixes for running tests on Raspbian ( #11661 )
2020-01-30 14:41:03 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
Dongbo Wang
bf85f3fbe1
Make Test-Connection always use the default synchronization context for sending ping requests ( #11517 )
2020-01-22 08:19:06 +05:00
Aditya Patwardhan
d1ada89bb5
Test fixes for various platforms ( #11579 )
2020-01-14 10:57:13 -08:00
James Truher [MSFT]
1484749f04
Test fixes for failing tests ( #11541 )
2020-01-14 08:40:50 -08:00
xtqqczze
225164037f
Correct case of $PID special variable
2020-01-13 19:34:38 +00:00
xtqqczze
94a73caa41
Correct case of $IsWindows special variable
2020-01-13 19:27:21 +00:00
xtqqczze
47a3b4e293
Correct case of $true special variable
2020-01-13 19:25:09 +00:00
xtqqczze
6014f4bac3
Correct case of $null special variable
2020-01-13 19:24:42 +00:00
xtqqczze
4a9d70fdcd
Correct case of $PWD special variable
2020-01-13 19:24:10 +00:00
xtqqczze
679702ba05
Correct case of $PSDefaultParameterValues special variable
2020-01-13 19:21:25 +00:00
xtqqczze
b6a687bf21
Correct case of $error special variable
2020-01-13 19:19:39 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Ilya
99cf9fd859
Re-balance CI tests ( #11420 )
2020-01-05 13:01:42 +05:00
Joel Sallow (/u/ta11ow)
7b33cfe847
Test-Connection: Fallback to hop IP Address on -Traceroute without -ResolveDestination ( #11335 )
2019-12-19 09:51:34 -08:00
Brendan Burns
d38541fdce
Add an implementation of Stop-Computer for Linux and macOS ( #11151 )
2019-12-02 17:29:11 -08:00
Joel Sallow (/u/ta11ow)
440837944a
Test-Connection - Improve Logic and Output (#10697 )
2019-11-18 11:32:59 -08:00
Andrew
b218e6f6cc
Support using non-compatible Windows PowerShell modules in PowerShell Core ( #10973 )
2019-11-18 10:44:55 -08:00
James Truher [MSFT]
fe712f8de2
Experimental Feature: Provide Unix stat information in filesystem output ( #11042 )
2019-11-15 17:26:11 -08:00
Steve Lee
e185f89591
Handle exception if enumerating files fails when rebuilding path to have correct casing ( #11014 )
2019-11-12 08:53:33 -08:00
Steve Lee and Ilya
b74a26bb91
Added cross-platform Get-Clipboard and Set-Clipboard ( #10340 )
...
Co-Authored-By: Ilya <darpa@yandex.ru >
Co-Authored-By: Ilya <darpa@yandex.ru >
2019-11-04 11:28:58 -08:00
Steve Lee
4b8462766f
Fix setting original path of filesystem object to not have extra trailing slash ( #10959 )
2019-11-02 22:09:08 +05:00
Steve Lee
a3d73d751f
Handle IO Exception as non-terminating ( #10950 )
2019-11-01 10:06:40 -07:00
PRASOON KARUNAN V
5a76137d14
Take ComputerName via Pipeline in Get-HotFix ( #10852 )
...
* add process record for Get-hotfix
* update new FWLink
2019-11-01 08:02:19 +05:00
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