-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlLogin: Added and amended integration tests for logins of 'SqlLogin' type (Fixes #361, #792, #1032, #1050, #1634) #1652
SqlLogin: Added and amended integration tests for logins of 'SqlLogin' type (Fixes #361, #792, #1032, #1050, #1634) #1652
Commits on Dec 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1918a9c - Browse repository at this point
Copy the full SHA 1918a9cView commit details -
Added condition in 'Get-ServerProtocolObject' to throw exception if $…
…serverInstance is not obtained
Configuration menu - View commit details
-
Copy full SHA for 557c9e7 - Browse repository at this point
Copy the full SHA 557c9e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbcaf5b - Browse repository at this point
Copy the full SHA fbcaf5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3dd55f - Browse repository at this point
Copy the full SHA a3dd55fView commit details -
Updated 'Get-ServerProtocolObject' to pass $ServerName into 'FailedTo…
…ObtainServerInstance' error message
Configuration menu - View commit details
-
Copy full SHA for 8a06161 - Browse repository at this point
Copy the full SHA 8a06161View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7c62d3 - Browse repository at this point
Copy the full SHA a7c62d3View commit details
Commits on Dec 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cdd1197 - Browse repository at this point
Copy the full SHA cdd1197View commit details -
Updated 'DSC_SqlLogin_AddLoginDscUser4_Config' to create login as 'Ds…
…cUser4Name', property value, not 'Admin_UserName' property value
Configuration menu - View commit details
-
Copy full SHA for e66174b - Browse repository at this point
Copy the full SHA e66174bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dd2d99 - Browse repository at this point
Copy the full SHA 9dd2d99View commit details -
Removed 'Admin_Password2' configuration property and made use of 'Dsc…
…User4Pass1' and 'DscUser4Pass2' properties in 'SqlLogin', integration test, configuration data.
Configuration menu - View commit details
-
Copy full SHA for 34691d4 - Browse repository at this point
Copy the full SHA 34691d4View commit details -
Added 'SqlDatabaseUser' resource into 'DSC_SqlLogin_AddLoginDscUser4_…
…Config', integration test, configuration
Configuration menu - View commit details
-
Copy full SHA for 3d7d15c - Browse repository at this point
Copy the full SHA 3d7d15cView commit details -
Added 'DefaultDatabase' property assignment to 'DSC_SqlLogin_AddLogin…
…DscUser4_Config' and 'DSC_SqlLogin_UpdateLoginDscUser4_Config', integration test configurations
Configuration menu - View commit details
-
Copy full SHA for 092554b - Browse repository at this point
Copy the full SHA 092554bView commit details -
Added integration tests for 'SqlLogin_AddLoginDscUser4_Config' to ens…
…ure new SQL login can connect into the (correct, default) database
Configuration menu - View commit details
-
Copy full SHA for bfe3a4a - Browse repository at this point
Copy the full SHA bfe3a4aView commit details -
Added 'SqlLogin_UpdateLoginDscUser4_Config', integration tests (simil…
…ar to 'AddLoginDscUser4' ones, but with new password).
Configuration menu - View commit details
-
Copy full SHA for c73b168 - Browse repository at this point
Copy the full SHA c73b168View commit details -
Added 'LoginMustChangePassword', 'LoginPasswordExpirationEnabled' and…
… 'LoginPasswordPolicyEnforced' parameter assertions to 'SqlLogin' resource, integration tests for 'SqlLogin' login types.
Configuration menu - View commit details
-
Copy full SHA for 768999d - Browse repository at this point
Copy the full SHA 768999dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9845c11 - Browse repository at this point
Copy the full SHA 9845c11View commit details -
Configuration menu - View commit details
-
Copy full SHA for e79b349 - Browse repository at this point
Copy the full SHA e79b349View commit details -
Updated 'Test-TargetResource' for 'SqlLogin' resource to return $fals…
…e if 'Get-TargetResource' returns null
Configuration menu - View commit details
-
Copy full SHA for c3f3841 - Browse repository at this point
Copy the full SHA c3f3841View commit details -
Added 'DSC_SqlLogin\Test-TargetResource' unit test for when 'Get-Targ…
…etResource' returns a $null value
Configuration menu - View commit details
-
Copy full SHA for 8320a6b - Browse repository at this point
Copy the full SHA 8320a6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30ed056 - Browse repository at this point
Copy the full SHA 30ed056View commit details -
Updated 'SqlLogin', 'Test-TargetResource' to cater for an existing, '…
…disabled' account (replacing incorrect 'if ($Disabled)' condition)
Configuration menu - View commit details
-
Copy full SHA for 0e43b48 - Browse repository at this point
Copy the full SHA 0e43b48View commit details -
Configuration menu - View commit details
-
Copy full SHA for d159c78 - Browse repository at this point
Copy the full SHA d159c78View commit details
Commits on Dec 15, 2020
-
Added/Used 'DscUser4DbRole' property and 'Integration_Test_SqlRole', …
…'SqlRole' configuration to 'Sqlogin', integration config to support connection into database
Configuration menu - View commit details
-
Copy full SHA for 97fc2c5 - Browse repository at this point
Copy the full SHA 97fc2c5View commit details -
Updated 'SqlLogin' tests to use 'ServerName' (not 'NodeName') and inc…
…lude 'InstanceName' in connection string. Also added tests for pre/post password change using 'Connect-SQL'.
Configuration menu - View commit details
-
Copy full SHA for b19cb50 - Browse repository at this point
Copy the full SHA b19cb50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44858e5 - Browse repository at this point
Copy the full SHA 44858e5View commit details -
Added $sqlConnection.Close() to the 'SqlLogin' integration tests to c…
…lose any connection that is opened.
Configuration menu - View commit details
-
Copy full SHA for 996b8be - Browse repository at this point
Copy the full SHA 996b8beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4693871 - Browse repository at this point
Copy the full SHA 4693871View commit details -
Updated 'SqlLogin', integration test, 'DSC_SqlLogin_UpdateLoginDscUse…
…r4_Config' configuration to leave 'LoginMustChangePassword', propert value as $false
Configuration menu - View commit details
-
Copy full SHA for 1534d32 - Browse repository at this point
Copy the full SHA 1534d32View commit details -
Configuration menu - View commit details
-
Copy full SHA for a88ee76 - Browse repository at this point
Copy the full SHA a88ee76View commit details -
Added condition to 'SqlLogin' resource to throw exception if 'MustCha…
…ngePassword' is to be changed.
Configuration menu - View commit details
-
Copy full SHA for 9e89942 - Browse repository at this point
Copy the full SHA 9e89942View commit details -
Added unit test for 'SqlLogin' when 'MustChangePassword' is to be upd…
…ated/changed on an existing login.
Configuration menu - View commit details
-
Copy full SHA for c323da5 - Browse repository at this point
Copy the full SHA c323da5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b98d96 - Browse repository at this point
Copy the full SHA 5b98d96View commit details -
Corrected 'SqlLogin', 'LoginMustChangePassword' test assertion within…
… 'UpdateLoginDscUser4' configuration, integration tests.
Configuration menu - View commit details
-
Copy full SHA for 61ec7c4 - Browse repository at this point
Copy the full SHA 61ec7c4View commit details -
Updated 'SqlLogin', unit tests to ensure that 'LoginMustChangePasswor…
…d' is not treated as a change that would throw an exception otherwise.
Configuration menu - View commit details
-
Copy full SHA for bed3fcb - Browse repository at this point
Copy the full SHA bed3fcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3e950e - Browse repository at this point
Copy the full SHA c3e950eView commit details -
Updated 'DSC_SqlLogin.schema.mof' to include note around inability to…
… change 'LoginMustChangePassword' value on a pre-existing SQL login.
Configuration menu - View commit details
-
Copy full SHA for 38c8c4a - Browse repository at this point
Copy the full SHA 38c8c4aView commit details -
Updated 'SqlLogin', 'README.md' to include description around 'LoginM…
…ustChangePassword' property.
Configuration menu - View commit details
-
Copy full SHA for 9b6a6bb - Browse repository at this point
Copy the full SHA 9b6a6bbView commit details -
Updated 'LoginMustChangePassword' parameter description on 'SqlLogin'…
…, 'Set-TargetResource' function.
Configuration menu - View commit details
-
Copy full SHA for 3d15820 - Browse repository at this point
Copy the full SHA 3d15820View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6112af - Browse repository at this point
Copy the full SHA a6112afView commit details -
Added '-Clear' switch to 'Wait-ForIdleLcm' function calls within 'Sql…
…Login', integration tests.
Configuration menu - View commit details
-
Copy full SHA for e892b0d - Browse repository at this point
Copy the full SHA e892b0dView commit details -
Added cleanup functionality prior to dropping database within 'SqlLog…
…in' integration tests
Configuration menu - View commit details
-
Copy full SHA for f12845e - Browse repository at this point
Copy the full SHA f12845eView commit details
Commits on Dec 16, 2020
-
Updated 'SqlLogin', integration test, database pre-tidy up to set 'Se…
…rver.ConnectionContext' properties rather than using 'ServerConnection' type.
Configuration menu - View commit details
-
Copy full SHA for 6ba3bf4 - Browse repository at this point
Copy the full SHA 6ba3bf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e776cf0 - Browse repository at this point
Copy the full SHA e776cf0View commit details -
Updated 'SqlLogin', integration tests to take default database offlin…
…e before it is deleted/tidied up
Configuration menu - View commit details
-
Copy full SHA for 0aa342e - Browse repository at this point
Copy the full SHA 0aa342eView commit details -
Updated 'SqlLogin' integration tests to move database tidy up into 'C…
…ontext' for 'CleanupDependencies' configuration. Also removed admin account, server name prefix.
Configuration menu - View commit details
-
Copy full SHA for ee691e9 - Browse repository at this point
Copy the full SHA ee691e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c4c3ca - Browse repository at this point
Copy the full SHA 6c4c3caView commit details -
Updated username and password for 'CleanupDependencies' configuration…
…, database tidy up
Configuration menu - View commit details
-
Copy full SHA for 61ab3fb - Browse repository at this point
Copy the full SHA 61ab3fbView commit details
Commits on Dec 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 44296ef - Browse repository at this point
Copy the full SHA 44296efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0db46c0 - Browse repository at this point
Copy the full SHA 0db46c0View commit details
Commits on Jan 10, 2021
-
Updated 'DscUser4Pass1' and 'DscUser4Pass2' properties in 'SqlLogin',…
… integration test configurations back to use default/similar passwords consistent with others.
Configuration menu - View commit details
-
Copy full SHA for 1f3d7c3 - Browse repository at this point
Copy the full SHA 1f3d7c3View commit details -
Added addition 'SqlLogin', integration tests to update the 'DscUser4'…
… password back to the original one and confirm successful.
Configuration menu - View commit details
-
Copy full SHA for c544ad2 - Browse repository at this point
Copy the full SHA c544ad2View commit details -
Added additional note around 'DscUser4' password change into integrat…
…ion tests, "README" file.
Configuration menu - View commit details
-
Copy full SHA for 4f63fe2 - Browse repository at this point
Copy the full SHA 4f63fe2View commit details -
Updated names of 2 'SqlLogin', integration tests to update 'to correc…
…t' to 'to connect to correct'.
Configuration menu - View commit details
-
Copy full SHA for 392df9c - Browse repository at this point
Copy the full SHA 392df9cView commit details -
Updated 'SqlLogin' documentation to attempt to clarify functionality …
…around 'LoginMustChangePassword'.
Configuration menu - View commit details
-
Copy full SHA for 7b9090b - Browse repository at this point
Copy the full SHA 7b9090bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c2ef2e1 - Browse repository at this point
Copy the full SHA c2ef2e1View commit details -
Merge pull request #1 from dsccommunity/main
Merging changes from 'dsccommunity/SqlServerDsc' main.
Configuration menu - View commit details
-
Copy full SHA for 326d424 - Browse repository at this point
Copy the full SHA 326d424View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ee45cd - Browse repository at this point
Copy the full SHA 8ee45cdView commit details -
Updated 'CleanupDependencies', 'SqlLogin' integration test to use ori…
…ginal 'DscUser4', login password.
Configuration menu - View commit details
-
Copy full SHA for 794c07d - Browse repository at this point
Copy the full SHA 794c07dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d1426c - Browse repository at this point
Copy the full SHA 8d1426cView commit details -
Removed 'DSC_SqlLogin\Test-TargetResource', unit test that asserts ar…
…ound functionality if 'Get-TargetResource' returns $null.
Configuration menu - View commit details
-
Copy full SHA for 2c54fa2 - Browse repository at this point
Copy the full SHA 2c54fa2View commit details
Commits on Jan 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 855ffca - Browse repository at this point
Copy the full SHA 855ffcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d39ee7a - Browse repository at this point
Copy the full SHA d39ee7aView commit details -
Moved 3, $sqlConnection = New-Object assignments into 'Should -Not -T…
…hrow', integration test, scriptblocks.
Configuration menu - View commit details
-
Copy full SHA for c8e1123 - Browse repository at this point
Copy the full SHA c8e1123View commit details -
Updated '...to connect to correct, SQL instance, default database', '…
…SqlLogin' integration tests to obtain default database within script block (and assert no exception).
Configuration menu - View commit details
-
Copy full SHA for 25c275b - Browse repository at this point
Copy the full SHA 25c275bView commit details -
Updated second, 'AddLoginDscUser4_Config' comment to use comment bloc…
…k (rather than line comments).
Configuration menu - View commit details
-
Copy full SHA for 31303e8 - Browse repository at this point
Copy the full SHA 31303e8View commit details -
Added 'When preparing database, dependencies cleanup' context to 'Sql…
…Login', integration tests (seperating from 'CleanupDependencies' test).
Configuration menu - View commit details
-
Copy full SHA for 9a3ddcb - Browse repository at this point
Copy the full SHA 9a3ddcbView commit details -
Removed, non-required brackets from 'When preparing database, depende…
…ncies cleanup' context.
Configuration menu - View commit details
-
Copy full SHA for b279b52 - Browse repository at this point
Copy the full SHA b279b52View commit details -
Reversed update order of 'PasswordExpirationEnabled' and 'PasswordPol…
…icyEnforced' within 'Set-TargetResource' in 'SqlLogin' resource.
Configuration menu - View commit details
-
Copy full SHA for b6e8159 - Browse repository at this point
Copy the full SHA b6e8159View commit details -
Updated 'CHANGELOG' to include reversing of 'PasswordExpirationEnable…
…d' and 'PasswordPolicyEnforced' in `SqlLogin` resource.
Configuration menu - View commit details
-
Copy full SHA for 2b5434b - Browse repository at this point
Copy the full SHA 2b5434bView commit details -
Added comments around the ordering of updates to 'PasswordExpirationE…
…nabled' and 'PasswordPolicyEnforced'.
Configuration menu - View commit details
-
Copy full SHA for d2db2e0 - Browse repository at this point
Copy the full SHA d2db2e0View commit details -
Updated 'Set-TargetResource' in 'SqlLogin' to update 'PasswordPolicyE…
…nforced' and 'PasswordExpirationEnabled' as a single update.
Configuration menu - View commit details
-
Copy full SHA for d0d0120 - Browse repository at this point
Copy the full SHA d0d0120View commit details