Tags: dsccommunity/SChannelDsc
Tags
BREAKING: SChannelProtocol Class-Based (#72) * Merge main * Delete protocol tests * Add Reason * Add protocolbase class * Add protocol server and client resources * Add strings files * Update changelog * Update examples * Update changelog * Fix tests * Remove use of Where-Object * Fix reasons assertions * Protocol Client integration tests * Update tests * Config * Formatting * Update * Make deploy depend on all tests * Update * Update * Update * Add import * Update * Update * Update * Update * Test * Test * Add dir per config * Use flags on enum * Add helper method to convert a enum to the individual flag values * Use enum with flags * Int tests * Fix * Remove Type * Fix HQRM * Fix type * Disable tests * No need to convert * Fix text * Testing * Only assign if there are values * test for empty * fix * Set values * fix * Int tests * assign var * fix * Revert "Use flags on enum" This reverts commit 9843e2e. * Reapply "Use flags on enum" This reverts commit 13bde73. * Use string array as enum array or enum with flags does not produce valid MOF. * Add protocol server integration tests * Add property assertion * Add clear * Fix assert * Remove clear flag * Set Next version * Remove old codecov config * Remove commented config * Fill in missing issue descriptions * Update synopsis' * Use unique GUIDs * CodeRabbit fixes * Coderabbit fixes * Update Description * Fix message * Only run Integration Test files. * Add space * Fix tests * Revert "Set Next version" This reverts commit 4a5fd64. * Fix formatting * Use real GUIDs * Add comment based help * Update exmaple formatting * CodeRabbit suggestions * ModuleFast fixes current issues with PSResourceGet * Use latest GitHubTasks * Fix convergence issue * Modify update * Fixes * Fix logic * Debug * Fix default protocols * Fix * Remove debug * Add test coverage
`Reset-TlsProtocol`: Add new command (#70) * `Reset-TlsProtocol`: Add new command * Add test to verify TLS 1.3 protocol removal in Reset-TlsProtocol * Refactor mocks in Reset-TlsProtocol tests for TLS 1.2 and TLS 1.3 registry paths * Rename test context for protocol reset to clarify registry path preservation * Add verification for TLS 1.3 protocol removal to ensure registry path preservation * Remove redundant check for TLS protocols registry path in Reset-TlsProtocol tests * Add test for handling Remove-Item failure in Reset-TlsProtocol * Refactor TLS 1.3 protocol check in ConvertTo-TlsProtocolRegistryKeyName function for clarity * Add comment to clarify guard for Tls13 definition in ConvertTo-TlsProtocolRegistryKeyName function * Update tests/Unit/Public/Reset-TlsProtocol.Tests.ps1 Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Add logic to remove parent protocol key if empty after removing child items * Increase invocation count for Test-Path in Reset-TlsProtocol tests * Add mocks for Get-ChildItem in Reset-TlsProtocol tests * Update Get-ChildItem mocks in Reset-TlsProtocol tests to simulate existing registry keys --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Add TLS protocol management commands (#58) * Add TLS protocol management commands * Fix default values to allow docs to be generated * Fix capture inner exception messages * Refactor protocol handling to use [System.Security.Authentication.SslProtocols] enum values across functions and tests * Enhance TLS protocol functions to support enabled/disabled checks for client and server connections * Update error ID for failure handling in Disable-TlsProtocol function * Update Test-TlsNegotiation function to use localized message for protocol attempts * Fix logic in Test-TlsProtocol to handle null protocol states correctly * Refactor Get-TlsProtocolRegistryPath tests to move mocks into BeforeAll blocks for better organization * Add parameter validation tests for TLS protocol commands * Add parameter validation tests for TLS protocol commands * Clarify comment in Test-TlsProtocol function regarding default protocol states for -Disabled parameter * Enhance ShouldProcess messages in Enable-TlsProtocol and Disable-TlsProtocol functions; improve error handling in Test-TlsNegotiation function * Remove unnecessary blank line in Get-TlsProtocolRegistryPath.Tests.ps1 * Refactor test descriptions for clarity and consistency across TLS protocol tests * Remove redundant parameter set checks from TLS protocol tests * Fix logic in Test-TlsProtocol function for protocol state checks * Refactor variable names in Enable-TlsProtocol function for consistency and clarity * Improve timeout handling in Test-TlsNegotiation function with proper resource disposal * Refactor parameter declaration in cert validation callback for improved clarity * Add INPUTS section to Get-TlsProtocolRegistryPath and change variable types to UInt32 in Get-TlsProtocol * Change expected type assertions for Enabled and DisabledByDefault properties to UInt32 in Get-TlsProtocol tests * Add test case to validate default behavior of Test-TlsNegotiation when Protocol parameter is not provided * Add test case for handling failure in New-Item during Disable-TlsProtocol * Add test case for handling failure in New-Item during Enable-TlsProtocol * Add test case for handling omitted Protocol parameter in Get-TlsProtocol * Update error message for missing DscResource.Test module dependency in test scripts * Refactor tests to suppress output from Disable-TlsProtocol and Enable-TlsProtocol commands * Remove empty placeholder file from module source * Update Test-TlsNegotiation examples and change default port to 443 * Add regex pattern to cSpell ignore localized string IDs * Implement Set-TlsProtocolRegistryValue function for managing TLS/SSL protocol registry settings * Refactor variable names in Get-TlsProtocol, Test-TlsNegotiation, and Test-TlsProtocol functions for improved readability * Refactor test assertions for Protocol parameter to use Should -BeTrue for clarity * Refactor error message handling in Set-TlsProtocolRegistryValue function for improved clarity * Add SuppressMessage attributes and refactor tests to use Set-TlsProtocolRegistryValue for protocol management * Add Force parameter to Set-TlsProtocolRegistryValue for bypassing confirmation prompts * Fix default TCP port in Test-TlsNegotiation documentation from 1433 to 443 * Refactor Get-TlsProtocol tests to use Should -HaveType for type assertions * Refactor parameter assertions in tests to use Should -BeFalse for clarity * Add support for Tls13 in Get-TlsProtocol for older .NET versions * Refactor Get-TlsProtocolRegistryPath to use string formatting for registry path construction * Fix registry path escaping in Test-TlsProtocol tests * Refactor ConvertTo-TlsProtocolRegistryKeyName tests to use a data-driven approach for known protocol mappings * Update tests to use strict mode and fix registry path escaping * Remove Cmdlet parameter from examples in Set-TlsProtocolRegistryValue documentation * Refactor Test-TlsProtocol function for improved readability and consistency in control flow * Add -Scope It to Should-Invoke assertions in tests for consistency * Update Get-TlsProtocol tests to use Should -BeOfType for type assertions * Refactor Test-TlsNegotiation tests to improve protocol handling and assertions * Fix registry path escape characters in Get-TlsProtocolRegistryPath and related tests * Update Get-TlsProtocol to include Tls13 in default protocols and adjust handling for older .NET versions * Refactor test scripts to remove script scope for protocol variables * Refactor test scripts to eliminate script scope for commandInfo variable
Pester 5 Migration - Rename resources from MSFT to DSC (#66) * Add repo changes * HQRM fixes * Disable all tests * Remove exports * Migrate Cipher * Update strings * Rename MSFT to DSC * Update changelog * Rename strings * Rename remaining resources * Migrate CipherSuites * Remove unused strings * Migrate Hash * Fix example * Fix json format * Migrate KeyExchangeAlgo * Remove old file * Migrate Protocol * Migrate SChannelSettings * Convert .Common * Remove unused functions * Review comments * Fix verbose message * Align strings to community conventions * Update pipeline to test multiple versions * Remove unknown stage * Fix * Update changelog * Fix parameter filters * Fix test title * Remove unused helper module * Fix title * Update compatibility version * Remove commented code
Reorganize module to prepare for Pester 5 (#65) * Rename test files * Rename Utils module to Common and separate functions to separate files * Reference new module name * Remove non DSC Community files * Update case on READMEs * Update paths * Remove test run scripts * Use modulefast * Update changelog * Update changelog
PreviousNext