You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring:
The integration tests does not currently test changing password on a SQL login. This resulted in the bug reported in issue #1048 and issue #1032.
johlju
changed the title
SqlServerLogin: Add integration test for testing changing passwords for SQL login
SqlLogin: Add integration test for testing changing passwords for SQL login
Jul 10, 2020
…' type (#1652)
- SqlLogin
- Added functionality to throw exception if an update to the `LoginMustChangePassword`
value on an existing SQL Login is attempted. This functionality is not supported
by referenced, SQL Server Management Object (SMO), libraries and cannot be
supported directly by this module.
- Added integration tests to ensure that an added (or updated) `SqlLogin` can
connect into a SQL instance once added (or updated).
- Added integration tests to ensure that the default database connected to by
a `SqlLogin` is the same as specified in the resource's `DefaultDatabase`
property/parameter.
- Reversed order in which `PasswordExpirationEnabled` and `PasswordPolicyEnforced`
are updated within `SqlLogin` resource. `PasswordPolicyEnforced` is now updated
first.
- Added integration tests to assert `LoginPasswordExpirationEnabled`,
`LoginPasswordPolicyEnforced` and `LoginMustChangePassword` properties/parameters
are applied and updated correctly. Similar integration tests also added to ensure
the password of the `SqlLogin` is updated if the password within the `SqlCredential`
value/object is changed (issue #361, issue #1032, and issue #1050).
- Updated `SqlLogin`, integration tests to make use of amended `Wait-ForIdleLcm`,
helper function, `-Clear` switch usage to remove intermittent, integration
test failures (issue #1634).
Details of the scenario you tried and the problem that is occurring:
The integration tests does not currently test changing password on a SQL login. This resulted in the bug reported in issue #1048 and issue #1032.
We should add a test for this scenario as well.
The DSC configuration that is using the resource (as detailed as possible):
https://github.com/PowerShell/SqlServerDsc/blob/a8cb7528153eb7d7246a41b97c7a28b831686ac5/Tests/Integration/MSFT_SqlServerLogin.config.ps1#L165-L199
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
Any
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev
The text was updated successfully, but these errors were encountered: