Skip to content

Feature/242 pester v6 migration - #267

Open
ddemeyer wants to merge 10 commits into
masterfrom
feature/242-pester-v6-migration
Open

Feature/242 pester v6 migration#267
ddemeyer wants to merge 10 commits into
masterfrom
feature/242-pester-v6-migration

Conversation

@ddemeyer

Copy link
Copy Markdown
Contributor

Closes #242, #265 and #266

Update version guard, CI install gates, README, AGENTS.md and
instruction files to require Pester 6.0.0+ instead of 5.3.0+.
No test-file assertion changes in this commit — the v5 Should -Be
syntax remains valid in Pester 6.
…onger test performance, just a simple get, not time consuming. Marking some tests as pester:no-parallel and avoiding hot spots by using more unique LogicalIds per test.
…et, ILogger). Constructor becomes Logger = this — no singleton, no Initialize. Six explicit ILogger interface methods added, each routing to the cmdlet's own PSCmdlet stream methods with a PSInvalidOperationException guard. The using Trisoft.ISHRemote.HelperClasses import was not added (not needed). TrisoftCmdletLogger.cs — deleted entirely. No longer referenced anywhere. CertificateValidationHelper.cs — removed the static _logger field and the using Trisoft.ISHRemote.Cmdlets import. OverrideCertificateValidation(ILogger logger) and RestoreCertificateValidation(ILogger logger) now accept the logger as a parameter. IshSession.cs — updated the one call site: CertificateValidationHelper.OverrideCertificateValidation(_logger) — passes the session's own per-instance logger.
…pLock = new object(); alongside the existing _ishTypeFieldSetup field declaration. Getter — added outer null-check guard (fast path, no lock if already initialised) plus lock (_ishTypeFieldSetupLock) with an inner double-checked null test, keeping all existing construction logic unchanged. Setter — wrapped the single _ishTypeFieldSetup = new IshTypeFieldSetup(...) assignment in lock (_ishTypeFieldSetupLock), ensuring the reference swap is never observed mid-construction by a concurrent reader.
…er working make stdin hang, so removed "Start-IshRemoteMcpServer with ActivateWhileLoop=true and stdin EOF" test.
…erationException or NotImplementedException on WriteVerbose or WriteDebug.
@ddemeyer
ddemeyer requested a review from a team as a code owner August 19, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintain Pester Tests to run on v6.0.0

1 participant