Commit graph

295 commits

Author SHA1 Message Date
Travis Plunk
720c615d04
Revert "Enhance Remove-Item to work with OneDrive (#14902)" (#15253)
This reverts commit fafc38fe5c.
2021-04-16 13:43:11 -07:00
Ilya
fafc38fe5c
Enhance Remove-Item to work with OneDrive (#14902) 2021-04-12 09:36:16 -07:00
Steve Lee
cf6876e716
Allow Set-Clipboard to accept empty string (#14579) 2021-04-01 13:03:19 -07:00
Steve Lee
5d0dadf19d
Fallback to CopyAndDelete() when MoveTo() fails due to an IOException (#15077) 2021-03-25 15:11:17 -07:00
Steve Lee
22b3653bf4
Fix Move-Item for FileSystemProvider to use copy-delete instead of move for DFS paths (#14913) 2021-03-08 15:01:31 -08:00
Kyle H
909ca89be9
The -Stream parameter now works with directories (#13941) 2020-12-07 17:31:55 -08:00
Robert Holt
c7781d157e
Reinstate Test-Connection tests (#13324) 2020-11-13 17:05:09 -08:00
David Reis
3effa20410
Recognize CONOUT$ and CONIN$ as reserved device names (#13508) 2020-09-14 11:10:12 -07:00
Dongbo Wang
1f904e47d4
Make the failing test pending to unblock PR CIs (#13310)
* Mark Test-Connection tests as pending
2020-07-30 12:48:53 +05:00
Robert Holt
d3addeb3da
Fix Move-Item to support cross-mount moves on Unix (#13044) 2020-07-06 16:39:08 -07:00
Christopher Yeleighton
babf02768b
Fix error message from new symbolic link missing target (#13085) 2020-07-03 12:54:26 +05:00
Robert Holt
a6507093a2
Remove dependency on DNS for Test-Connection tests on macOS (#12943) 2020-06-16 13:17:29 -07:00
Christopher Yeleighton
04b121471a
Make the switch parameter -Qualifier not positional for Split-Path (#12960) 2020-06-16 10:28:41 -07:00
romero126
8d85c14f5b
Rename CopyItem.Tests.ps1 to Copy-Item.Tests.ps1 to match other tests (#10701) 2020-06-12 08:16:40 -07:00
Bryan Berns
edf7cc0ead
Resolve the working directory as literal path for Start-Process when it's not specified (#11946) 2020-06-09 10:27:53 -07:00
Ilya
80ac3cc735
Enable skipped tests (#12894) 2020-06-05 12:01:53 -07:00
Ilya
3de9069ca7
Fix New-Item to create symbolic link to relative path target (#12797) 2020-06-01 13:12:27 -07:00
Ilya
c7455fd4d8
Add CommandLine property to Process (#12288) 2020-05-29 11:33:49 -07:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584) 2020-05-07 17:00:30 +05:00
Aditya Patwardhan
f5b2a9236c
Mark ping tests as Pending due to stability issues in macOS (#12504) 2020-04-27 12:18:02 -07:00
Ilya
264bcb3fda
Update UseNewEnvironment parameter behavior of Start-Process cmdlet on Windows (#10830) 2020-04-17 17:19:13 -07:00
Bryan Berns
5f89a10f5b
Added Support For Big Endian UTF-32 (#11947) 2020-04-07 14:33:15 -07:00
Joel Sallow (/u/ta11ow)
dfe9955346
Don't write DNS resolution errors on Test-Connection -Quiet (#12204) 2020-03-28 15:50:32 +05:00
Steve Lee
f23be437af
Fix terms checker issues (#12189) 2020-03-24 11:38:45 -07:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
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
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