Skip to content

Commit b918a68

Browse files
authored
Disable pester 5 syntax (#91)
* Disable Pester 5 syntax * Update changelog * Add newline to test preview deploy * Update
1 parent 48ed905 commit b918a68

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Fixed Changelog.
2222
- `Resolve-Dependency.psd1`
2323
- Disabled ModuleFast as it is not picking up Pester 6.0.0.
24-
- Migrated tests to Pester 6 format [#79](https://github.com/dsccommunity/SChannelDsc/issues/79).
24+
- Migrated tests to Pester 6 format [issue #79](https://github.com/dsccommunity/SChannelDsc/issues/79).
2525
- `SChannelProtocolClient`
2626
- `SChannelProtocolServer`
2727
- `SChannelReason`
2828
- `SChannelProtocolBase`
29-
- Migrated Public function tests to Pester 6 format [#81](https://github.com/dsccommunity/SChannelDsc/issues/81).
30-
- Migrated Private function tests to Pester 6 format [#80](https://github.com/dsccommunity/SChannelDsc/issues/80).
31-
- Migrated SChannelDsc.Common unit tests to Pester 6 format [#82](https://github.com/dsccommunity/SChannelDsc/issues/82).
32-
- Migrated script-based resource unit tests to Pester 6 format [#87](https://github.com/dsccommunity/SChannelDsc/issues/87).
33-
- Migrated Integration tests to Pester 6 format [#88](https://github.com/dsccommunity/SChannelDsc/issues/88).
29+
- Migrated Public function tests to Pester 6 format [issue #81](https://github.com/dsccommunity/SChannelDsc/issues/81).
30+
- Migrated Private function tests to Pester 6 format [issue #80](https://github.com/dsccommunity/SChannelDsc/issues/80).
31+
- Migrated SChannelDsc.Common unit tests to Pester 6 format [issue #82](https://github.com/dsccommunity/SChannelDsc/issues/82).
32+
- Migrated script-based resource unit tests to Pester 6 format [issue #87](https://github.com/dsccommunity/SChannelDsc/issues/87).
33+
- Migrated Integration tests to Pester 6 format [issue #88](https://github.com/dsccommunity/SChannelDsc/issues/88).
34+
- Enforce Pester 6 syntax [issue #83](https://github.com/dsccommunity/SChannelDsc/issues/83).
3435

3536
## [1.6.0] - 2026-02-17
3637

build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ Pester:
118118
TestResult:
119119
OutputFormat: NUnitXML
120120
OutputEncoding: ascii
121+
Should:
122+
DisableV5: true
121123
ExcludeFromCodeCoverage:
122124
- Modules/DscResource.Common
123125
- Modules/DscResource.Base

source/Public/Test-TlsProtocol.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function Test-TlsProtocol
9898
{
9999
$null
100100
}
101+
101102
if ($Disabled.IsPresent)
102103
{
103104
# Missing keys imply the protocol is enabled by default, so -Disabled should fail

0 commit comments

Comments
 (0)