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 resource SqlServiceAccount should return the service account name as a string, but since the string is returned in the property ServiceAccount which is of type MSFT_Credential we get a credential object back.
[-] Should have set the resource and all the parameters should match 630ms
Expected: {APPVYR-WIN\svc-SqlSecondary}
But was: {MSFT_Credential}
108: $resourceCurrentState.ServiceAccount | Should -Be ('{0}\{1}' -f $env:COMPUTERNAME, (Split-Path -Path $mockSqlServiceSecondaryAccountUserName -Leaf))
I suggest we add a read only property ServiceAccountName which returns the service account name as a string.
The DSC configuration that is using the resource (as detailed as possible):
- Changes to SqlServerDsc
- Added a README.md under Tests\Integration to help contributors to write
integration tests.
- Added 'Integration tests' section in the CONTRIBUTING.md.
- Changes to SqlServiceAccount
- Added a read-only parameter ServiceAccountName so that the service account
name is correctly returned as a string (issue #982).
- Added integration tests (issue #980).
- Changes to SqlSetup
- Cleaned up integration tests.
- Added integration tests for installing a default instance of Database Engine.
Details of the scenario you tried and the problem that is occurring:
The resource SqlServiceAccount should return the service account name as a string, but since the string is returned in the property
ServiceAccount
which is of typeMSFT_Credential
we get a credential object back.I suggest we add a read only property
ServiceAccountName
which returns the service account name as a string.The DSC configuration that is using the resource (as detailed as possible):
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
n/a
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: