Commit Graph
2734 Commits
Author SHA1 Message Date
MartinGC94 c5cc8c8bbc Fix a null reference crash in completion code (#19916) 2023-07-10 12:31:27 -07:00
dependabot[bot] 1fd1ab7bb0 Bump XunitXml.TestLogger from 3.0.78 to 3.1.11 (#19900) 2023-07-10 12:04:35 -07:00
dependabot[bot] 83b06a1cc3 Bump xunit from 2.4.2 to 2.5.0 (#19902) 2023-07-10 11:25:51 -07:00
Travis Plunk aa31732aa9 Switch to GitHub Action for linting markdown (#19899) 2023-07-07 10:15:35 -07:00
dependabot[bot] 73630960ef Bump xunit.runner.visualstudio from 2.4.5 to 2.5.0 (#19901)
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.5 to 2.5.0.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases)
- [Commits](https://github.com/xunit/visualstudio.xunit/compare/v2.4.5...2.5.0)

---
updated-dependencies:
- dependency-name: xunit.runner.visualstudio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-07 15:50:02 +05: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
dependabot[bot] b059c7e134 Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 (#19867)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.6.2 to 17.6.3.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.6.2...v17.6.3)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-28 19:10:01 +05:00
Patrick Meinecke 066d7bff2c Fix native executables not redirecting to file (#19842) 2023-06-23 12:16:18 -07:00
Aditya Patwardhan ebe0b54340 Update to .NET 8 Preview 4 (#19696) 2023-06-21 15:17:22 -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
josea 16558c9414 Make Update-Help throw proper error when current culture is not associated with a language (#19765) 2023-06-20 09:49:46 -07:00
James Truher [MSFT] 5437f387cc Add a new experimental feature to control native argument passing style on Windows (#18706) 2023-06-19 16:31:56 -07:00
MartinGC94 15213d8494 Do not require activity when creating a completed progress record (#18474) 2023-06-19 16:20:08 -07:00
MartinGC94 994e43b1bf Fix TabExpansion2 variable leak when completing variables (#18763) 2023-06-19 15:48:59 -07:00
stevenebutler d614858550 WebCmdlets: Rename -TimeoutSec to -ConnectionTimeoutSeconds (with alias) and add -OperationTimeoutSeconds (#19558) 2023-06-19 15:07:16 -07:00
MartinGC94 0cbcf7b4d6 Enable completion of variables across ScriptBlock scopes (#19819) 2023-06-19 13:30:39 -07:00
James Truher [MSFT] b9b5136f0e Avoid checking screen scraping on non-Windows platforms before launching native app (#19812) 2023-06-19 11:26:14 -07:00
James Truher [MSFT] 133acc1961 Fix logic for Import-CliXml test (#19805) 2023-06-19 10:26:38 -07:00
MartinGC94 8b2de76eff Fix completion of the foreach-statement variable (#19814) 2023-06-19 10:20:13 -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
MartinGC94 f093f538fa Fix variable type inference precedence (#18691) 2023-06-12 10:38:17 -07:00
CarloToso 1822ad7373 Add FileNameStar to MultipartFileContent in WebCmdlets (#19467) 2023-06-12 09:55:32 -07:00
dependabot[bot] 592e2f0d19 Bump Microsoft.NET.Test.Sdk from 17.6.1 to 17.6.2 (#19762) 2023-06-07 10:30:48 -07:00
dependabot[bot] f5b7fd894d Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.1 (#19733) 2023-06-05 21:55:16 -07:00
MartinGC94 79d99b501b Fix member completion for PowerShell Enum class (#19740) 2023-06-05 17:04:19 -07:00
James Truher [MSFT] 22fdbbda0b Re-enable Get-ComputerInfo pending tests (#19746) 2023-06-05 16:36:59 -07:00
MartinGC94 6520c05949 Fix parsing for array literals in index expressions in method calls (#19224) 2023-06-05 14:10:03 -07:00
James Truher [MSFT]andJames Truher 6c4eb38364 Update syslog parser to handle modern formats. (#19737)
Co-authored-by: James Truher <james@jwtmbp.local>
2023-06-05 11:07:05 -07:00
MartinGC94 31dd6483b2 Fix incorrect string to type conversion (#19560)
Fixes incorrect string to type conversions like: [Type] 'int]whatever' so they are no longer parsed as types.
This was fixed by adding a check for ScanType to also check that the parsed type name matches the input type name.
2023-05-31 09:39:38 +05:00
dependabot[bot] 86ed508be2 Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 (#19668) 2023-05-22 17:07:32 -07:00
James Truher [MSFT] d9697f07ba Add a public API for getting locations of PSModulePath elements (#19422) 2023-05-22 17:02:31 -07:00
Christopher Yeleighton b69cae01f8 Pass -UserScope as required by RunUpdateHelpTests (#13400) 2023-05-22 16:34:53 -07:00
Frode Flaten c57ada217d Filter completion for enum parameter against ValidateRange attributes (#17750) 2023-05-22 14:25:00 -07:00
06ab3b189d Improve path completion (#19489)
* Improve path completion

* Update src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs

Co-authored-by: Steve Lee <slee@microsoft.com>

* Address initial feedback from Steve and Paul

* Apply suggestions from code review

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Apply suggestions from code review

Co-authored-by: Ilya <darpa@yandex.ru>

* Apply suggestions from iSazonov.

* Add missing period to comment.

* Add comment explaining limitations of current approach.

* Correct some escaping issues and add tests

---------

Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>
Co-authored-by: Ilya <darpa@yandex.ru>
2023-05-22 11:10:59 -07:00
James Truher [MSFT] c444645b09 Change how 'isPreview' is determined for default cmdlets tests (#19650) 2023-05-15 10:25:12 -07:00
MartinGC94 2e2b7db092 Fix wildcard globing in root of device paths (#19442) 2023-05-15 10:15:05 -07:00
Aditya Patwardhan fef05d1a9b Skip file signature tests on 2012R2 where PKI cmdlet do not work (#19643) 2023-05-11 15:50:29 -07:00
James Truher [MSFT] a533cefc8b Change logic for testing missing or extra cmdlets. (#19635) 2023-05-11 14:07:56 -07:00
MartinGC94 bb3c8a2819 Fix an indexing out of bound error in CompleteInput for empty script input (#19501) 2023-05-10 13:56:33 -07:00
Aditya Patwardhan 7144ec707d Add ProductCode in registry for MSI install (#19590)
* Add ProductCode in registry for MSI install

* Add test for validating ProductCode regkey is created

* Add test better validation
2023-05-10 05:36:34 +00:00
MartinGC94 dc81491870 Improve variable completion performance (#19595) 2023-05-09 15:04:44 -07:00
Dominik Kaszewski 270f8f1be7 Allow partial culture matching in Update-Help (#18037) 2023-05-09 09:46:59 -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
MartinGC94 1c8b58c0b4 Fix array type parsing in generic types (#19205) 2023-05-08 16:21:51 -07: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
xtqqczze 19623357ad Remove minor versions from PSCompatibleVersions (#18635) 2023-05-08 12:37:42 -07:00
Staffan Gustafsson 33dc1a8fae Fixing structure typo in test setup (#17458) 2023-05-08 11:56:01 -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