-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADReplicationSiteLink: Refactor Test-TargetResource Function (#601)
This PR refactors the Test-TargetResource function of the ADReplicationSiteLink resource.
- Loading branch information
1 parent
2b5590a
commit fa3aee9
Showing
3 changed files
with
96 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 14 additions & 10 deletions
24
source/DSCResources/MSFT_ADReplicationSiteLink/en-US/MSFT_ADReplicationSiteLink.strings.psd1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
ConvertFrom-StringData @' | ||
SiteNotFound = Site: '{0}' not found in SitesIncluded. Current SitesIncluded: '{1}'. (ADRSL0001) | ||
SiteFoundInExcluded = Excluded '{0}' site found in SitesIncluded. Current SitesIncluded: '{1}'. (ADRSL0002) | ||
PropertyNotInDesiredState = '{0}' is not in desired state Current: '{1}' Desired: '{2}'. (ADRSL0003) | ||
SettingProperty = Setting property '{0}' to '{1}' on site link '{2}'. (ADRSL0004) | ||
RemovingSites = Removing sites '{0}' from site link '{1}'. (ADRSL0005) | ||
AddingSites = Adding sites '{0}' to site link '{1}'. (ADRSL0006) | ||
NewSiteLink = Creating AD Site Link '{0}'. (ADRSL0007) | ||
RemoveSiteLink = Removing AD Site Link '{0}'. (ADRSL0008) | ||
SiteLinkNotFound = Could not find '{0}' site link. (ADRSL0009) | ||
GetSiteLinkUnexpectedError = Unexpected error getting site link '{0}'. (ADRSL0010) | ||
SiteNotFound = Site: '{0}' not found in SitesIncluded. Current SitesIncluded: '{1}'. (ADRSL0001) | ||
SiteFoundInExcluded = Excluded '{0}' site found in SitesIncluded. Current SitesIncluded: '{1}'. (ADRSL0002) | ||
PropertyNotInDesiredState = '{0}' is not in desired state Current: '{1}' Desired: '{2}'. (ADRSL0003) | ||
SettingProperty = Setting property '{0}' to '{1}' on site link '{2}'. (ADRSL0004) | ||
RemovingSites = Removing sites '{0}' from site link '{1}'. (ADRSL0005) | ||
AddingSites = Adding sites '{0}' to site link '{1}'. (ADRSL0006) | ||
NewSiteLink = Creating AD Site Link '{0}'. (ADRSL0007) | ||
RemoveSiteLink = Removing AD Site Link '{0}'. (ADRSL0008) | ||
SiteLinkNotFound = Could not find '{0}' site link. (ADRSL0009) | ||
GetSiteLinkUnexpectedError = Unexpected error getting site link '{0}'. (ADRSL0010) | ||
ADSiteInDesiredState = '{0}' is in the desired state. (ADRSL0011) | ||
ADSiteNotInDesiredState = '{0}' is not in the desired state. (ADRSL0012) | ||
ADSiteIsPresentButShouldBeAbsent = '{0}' is present but should be absent. (ADRSL0013) | ||
ADSiteIsAbsentButShouldBePresent = '{0}' is absent but should be present. (ADRSL0014) | ||
'@ |