Closed johlju closed 2 years ago
I would be happy to get initial review on this while I get the integration tests finished.
Merging #1769 (ce11053) into main (5b0a7e3) will decrease coverage by
1%
. The diff coverage is100%
.
@@ Coverage Diff @@
## main #1769 +/- ##
=====================================
- Coverage 87% 86% -2%
=====================================
Files 38 37 -1
Lines 6349 6261 -88
=====================================
- Hits 5575 5422 -153
- Misses 774 839 +65
Flag | Coverage Δ | |
---|---|---|
unit | 86% <100%> (-2%) |
:arrow_down: |
Impacted Files | Coverage Δ | |
---|---|---|
...dules/SqlServerDsc.Common/SqlServerDsc.Common.psm1 | 98% <100%> (ø) |
|
...ces/DSC_SqlConfiguration/DSC_SqlConfiguration.psm1 | 94% <0%> (-6%) |
:arrow_down: |
...DSC_SqlAlwaysOnService/DSC_SqlAlwaysOnService.psm1 | 95% <0%> (-5%) |
:arrow_down: |
...efaultLocation/DSC_SqlDatabaseDefaultLocation.psm1 | 95% <0%> (-5%) |
:arrow_down: |
...ces/DSC_SqlAgentFailsafe/DSC_SqlAgentFailsafe.psm1 | 95% <0%> (-5%) |
:arrow_down: |
...urce/DSCResources/DSC_SqlScript/DSC_SqlScript.psm1 | 95% <0%> (-5%) |
:arrow_down: |
...sources/DSC_SqlScriptQuery/DSC_SqlScriptQuery.psm1 | 95% <0%> (-5%) |
:arrow_down: |
...SCResources/DSC_SqlWaitForAG/DSC_SqlWaitForAG.psm1 | 95% <0%> (-5%) |
:arrow_down: |
...lEndpointPermission/DSC_SqlEndpointPermission.psm1 | 95% <0%> (-5%) |
:arrow_down: |
...Resources/DSC_SqlPermission/DSC_SqlPermission.psm1 | 96% <0%> (-4%) |
:arrow_down: |
... and 13 more |
Pull Request (PR) description
prefix.ps1
which content is placed first in the built module (.psm1). This file imports dependent modules, and imports localized strings used by private and public commands.DatabasePermission
- complex type for the DSC resource SqlDatabasePermission.Ensure
- Enum to be used for the propertyEnsure
in class-based resources.Reason
- Used by methodGet()
to return the reason a property is not in desired state.ResourceBase
- class that can be inherited by class-based resource and provides functionality meant simplify the creating of class-based resource.ConvertFrom-CompareResult
ConvertTo-Reason
Get-ClassName
Get-DscProperty
Get-LocalizedDataRecursive
Test-ResourceHasProperty
Test-ResourcePropertyIsAssigned
Connect-SqlDscDatabaseEngine
ConvertFrom-SqlDscDatabasePermission
ConvertTo-SqlDscDatabasePermission
Get-SqlDscDatabasePermission
Set-SqlDscDatabasePermission
Test-SqlDscIsDatabasePrincipal
.vscode/analyzersettings.psd1
.DatabasePermissionInfo
when used with the typeDatabasePermissionSet
. The stubs suggested that the propertyPermissionType
(of typeDatabasePermissionSet
) inDatabasePermissionInfo
should have been a arrayDatabasePermissionSet[]
. This conflicted with real SMO as it does not pass an array, but instead a singleDatabasePermissionSet
. The stubs was modified to mimic the real SMO. At the same time some old mock code in the SMO stubs was removed as it was no longer in use.SetupCredential
of the functionConnect-SQL
was renamed toCredential
and the parameter nameSetupCredential
was made a parameter alias.ParameterState
andPermissions
has been replaced by parametersPermission
,PermissionToInclude
, andPermissionToExclude
. These permissions parameters are now an instance of the typeDatabasePermission
. The typeDatabasePermission
contains two properties;State
andPermission
.This Pull Request (PR) fixes the following issues
Task list
This change is