Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
a7baf68
Merge main
dan-hughes Feb 1, 2026
d787b25
Delete protocol tests
dan-hughes Feb 1, 2026
cd5ae64
Add Reason
dan-hughes Feb 1, 2026
a06da47
Add protocolbase class
dan-hughes Feb 1, 2026
4c0d55a
Add protocol server and client resources
dan-hughes Feb 1, 2026
2e6f53d
Add strings files
dan-hughes Feb 1, 2026
f0972f7
Update changelog
dan-hughes Feb 1, 2026
b475fce
Update examples
dan-hughes Feb 1, 2026
36f22d8
Update changelog
dan-hughes Feb 2, 2026
12fa914
Fix tests
dan-hughes Feb 2, 2026
8430033
Remove use of Where-Object
dan-hughes Feb 2, 2026
19c0f88
Fix reasons assertions
dan-hughes Feb 2, 2026
80d2b0c
Protocol Client integration tests
dan-hughes Feb 2, 2026
6e84744
Update tests
dan-hughes Feb 2, 2026
6f8b1fe
Config
dan-hughes Feb 2, 2026
3579d99
Formatting
dan-hughes Feb 2, 2026
07efb63
Update
dan-hughes Feb 2, 2026
8b2b437
Make deploy depend on all tests
dan-hughes Feb 2, 2026
31bc766
Update
dan-hughes Feb 2, 2026
9b2182d
Update
dan-hughes Feb 2, 2026
30c2faf
Update
dan-hughes Feb 2, 2026
070dadc
Add import
dan-hughes Feb 2, 2026
3744a68
Update
dan-hughes Feb 2, 2026
661d238
Update
dan-hughes Feb 2, 2026
4f49c2b
Update
dan-hughes Feb 2, 2026
ed4765a
Update
dan-hughes Feb 2, 2026
32df18b
Test
dan-hughes Feb 2, 2026
9796054
Test
dan-hughes Feb 2, 2026
cfdb483
Add dir per config
dan-hughes Feb 2, 2026
9843e2e
Use flags on enum
dan-hughes Feb 2, 2026
e2cae2d
Add helper method to convert a enum to the individual flag values
dan-hughes Feb 2, 2026
bf7ed92
Use enum with flags
dan-hughes Feb 2, 2026
b8a23a3
Int tests
dan-hughes Feb 2, 2026
41c139a
Fix
dan-hughes Feb 2, 2026
7a86522
Remove Type
dan-hughes Feb 2, 2026
df688d3
Fix HQRM
dan-hughes Feb 2, 2026
dcf0555
Fix type
dan-hughes Feb 2, 2026
58cd4bd
Disable tests
dan-hughes Feb 2, 2026
b0fead7
No need to convert
dan-hughes Feb 2, 2026
e7d39b7
Fix text
dan-hughes Feb 5, 2026
845a130
Testing
dan-hughes Feb 5, 2026
70a353b
Only assign if there are values
dan-hughes Feb 6, 2026
026cff0
test for empty
dan-hughes Feb 6, 2026
fd45e62
Merge branch 'main' into class-protocol
dan-hughes Feb 6, 2026
79704bb
fix
dan-hughes Feb 6, 2026
34c1ba8
Set values
dan-hughes Feb 6, 2026
8704852
fix
dan-hughes Feb 6, 2026
13f4c70
Int tests
dan-hughes Feb 6, 2026
210836b
assign var
dan-hughes Feb 6, 2026
591dcbe
fix
dan-hughes Feb 6, 2026
13bde73
Revert "Use flags on enum"
dan-hughes Feb 8, 2026
2737128
Reapply "Use flags on enum"
dan-hughes Feb 8, 2026
096a768
Use string array as enum array or enum with flags does not produce va…
dan-hughes Feb 9, 2026
f4f1012
Add protocol server integration tests
dan-hughes Feb 9, 2026
38e3f9b
Add property assertion
dan-hughes Feb 9, 2026
9937c77
Add clear
dan-hughes Feb 12, 2026
468a36a
Fix assert
dan-hughes Feb 17, 2026
cc46a75
Remove clear flag
dan-hughes Feb 17, 2026
4a5fd64
Set Next version
dan-hughes Feb 17, 2026
dc296e3
Remove old codecov config
dan-hughes Feb 17, 2026
1fa3ac6
Remove commented config
dan-hughes Feb 17, 2026
a227da3
Fill in missing issue descriptions
dan-hughes Feb 17, 2026
74cc1fc
Update synopsis'
dan-hughes Feb 17, 2026
2e207c7
Use unique GUIDs
dan-hughes Feb 17, 2026
96199f5
CodeRabbit fixes
dan-hughes Feb 17, 2026
bb9773e
Coderabbit fixes
dan-hughes Feb 17, 2026
a625d0e
Update Description
dan-hughes Feb 17, 2026
c40a2be
Fix message
dan-hughes Feb 17, 2026
70925ac
Only run Integration Test files.
dan-hughes Feb 17, 2026
d163cc5
Add space
dan-hughes Feb 17, 2026
9c2dd17
Merge branch 'main' into class-protocol
dan-hughes Feb 17, 2026
2430165
Fix tests
dan-hughes Feb 17, 2026
9583b4e
Revert "Set Next version"
dan-hughes Feb 19, 2026
56bb6a4
Fix formatting
dan-hughes Feb 19, 2026
9eecee0
Use real GUIDs
dan-hughes Feb 19, 2026
6f4f28d
Add comment based help
dan-hughes Feb 19, 2026
b6e5b5b
Update exmaple formatting
dan-hughes Feb 19, 2026
e0f72c9
CodeRabbit suggestions
dan-hughes Feb 20, 2026
c7ec8c5
ModuleFast fixes current issues with PSResourceGet
dan-hughes Feb 20, 2026
4869e81
Use latest GitHubTasks
dan-hughes Feb 20, 2026
235ecca
Fix convergence issue
dan-hughes Feb 20, 2026
a4a8be0
Modify update
dan-hughes Feb 20, 2026
a204707
Fixes
dan-hughes Mar 27, 2026
260e57d
Fix logic
dan-hughes Mar 27, 2026
989a0e5
Debug
dan-hughes Mar 27, 2026
99d47b6
Fix default protocols
dan-hughes Mar 27, 2026
13f4801
Fix
dan-hughes Mar 27, 2026
d0353df
Remove debug
dan-hughes Mar 27, 2026
f038c30
Add test coverage
dan-hughes Mar 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .codecov.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Test-TlsProtocol
- Enum
- SChannelSslProtocols
- BREAKING: Converted Protocol to class-based resource [issue #50](https://github.com/dsccommunity/SChannelDsc/issues/50).
- This now consists of two resources
- SChannelProtocolClient
- SChannelProtocolServer
- Add DTLS support [issue #37](https://github.com/dsccommunity/SChannelDsc/issues/37).

### Changed

Expand All @@ -44,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Convert-SCDscCIMInstanceToString
- Convert-SCDscHashtableToString
- Test-SCDscObjectHasProperty
- Protocol Resource - Replaced by class resources

## [1.5.0] - 2026-01-27

Expand Down
12 changes: 0 additions & 12 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,3 @@ branches:
ignore:
sha: []
merge-message-formats: {}


# feature:
# tag: useBranchName
# increment: Minor
# regex: f(eature(s)?)?[/-]
# source-branches: ['master']
# hotfix:
# tag: fix
# increment: Patch
# regex: (hot)?fix(es)?[/-]
# source-branches: ['master']
8 changes: 7 additions & 1 deletion RequiredModules.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@
ModuleBuilder = 'latest'
ChangelogManagement = 'latest'
Sampler = 'latest'
'Sampler.GitHubTasks' = 'latest'
'Sampler.GitHubTasks' = @{
Version = 'latest'
Parameters = @{
AllowPrerelease = $true
}
}
MarkdownLinkCheck = 'latest'
'DscResource.Test' = 'latest'
xDscResourceDesigner = 'latest'

# Build dependencies needed for using the module
'DscResource.Common' = 'latest'
'DscResource.Base' = 'latest'

# Analyzer rules
'DscResource.AnalyzerRules' = 'latest'
Expand Down
2 changes: 1 addition & 1 deletion Resolve-Dependency.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
set to $false then PowerShellGet will be used to resolve dependencies.
#>
UsePSResourceGet = $true
#PSResourceGetVersion = '1.0.1'
# PSResourceGetVersion = '1.0.1'

# PowerShellGet compatibility module only works when using PSResourceGet or ModuleFast.
UsePowerShellGetCompatibilityModule = $true
Expand Down
48 changes: 48 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,57 @@ stages:
bash <(curl -s https://codecov.io/bash) -f "./$(buildFolderName)/$(testResultFolderName)/JaCoCo_coverage.xml"
displayName: 'Publish Code Coverage to Codecov.io'

- stage: Integration_Test
displayName: 'Integration Test'
dependsOn: Build
jobs:
- job: Test_Integration
displayName: 'Integration'
strategy:
matrix:
Windows Server 2022:
vmImage: 'windows-2022'
Windows Server 2025:
vmImage: 'windows-2025'
pool:
vmImage: $(vmImage)
timeoutInMinutes: '0'
steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download Pipeline Artifact'
inputs:
buildType: 'current'
artifactName: $(buildArtifactName)
targetPath: '$(Build.SourcesDirectory)/$(buildArtifactName)'

- task: PowerShell@2
name: configureWinRM
displayName: 'Configure WinRM'
inputs:
targetType: 'inline'
script: 'winrm quickconfig -quiet'
pwsh: false

- task: PowerShell@2
name: test
displayName: 'Run Integration Test'
inputs:
filePath: './build.ps1'
arguments: "-Tasks test -PesterScript 'tests/Integration/Resources/DSC_*.Integration.Tests.ps1' -CodeCoverageThreshold 0"
pwsh: false

- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '$(buildFolderName)/$(testResultFolderName)/NUnit*.xml'
testRunTitle: 'Integration $(vmImage)'
condition: succeededOrFailed()

- stage: Deploy
dependsOn:
- Quality_Test_and_Unit_Test
- Integration_Test
condition: |
and(
succeeded(),
Expand Down
7 changes: 7 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ NestedModule:
Path: ./output/RequiredModules/DscResource.Common
AddToManifest: false
Exclude: PSGetModuleInfo.xml
DscResource.Base:
CopyOnly: true
Path: ./output/RequiredModules/DscResource.Base
AddToManifest: false
Exclude: PSGetModuleInfo.xml
SChannelDsc.Common:
Prefix: prefix.ps1
VersionedOutputDirectory: false
Expand Down Expand Up @@ -115,6 +120,7 @@ Pester:
OutputEncoding: ascii
ExcludeFromCodeCoverage:
- Modules/DscResource.Common
- Modules/DscResource.Base

####################################################
# Code Coverage Configuration #
Expand Down Expand Up @@ -148,6 +154,7 @@ DscTest:
- output
ExcludeModuleFile:
- Modules/DscResource.Common
- Modules/DscResource.Base
# Must exclude built module file because it should not be tested like MOF-based resources
- SChannelDsc.psm1
MainGitBranch: main
Expand Down
21 changes: 21 additions & 0 deletions source/Classes/001.SChannelReason.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<#
.SYNOPSIS
The reason a property of a DSC resource is not in desired state.

.DESCRIPTION
A DSC resource can have a read-only property `Reasons` that the compliance
part (audit via Azure Policy) of Azure AutoManage Machine Configuration
uses. The property Reasons holds an array of SChannelReason. Each SChannelReason
explains why a property of a DSC resource is not in desired state.
#>

class SChannelReason
{
[DscProperty()]
[System.String]
$Code

[DscProperty()]
[System.String]
$Phrase
}
Loading