Skip to content

Commit

Permalink
Merge pull request #4273 from NikCharlebois/Dev
Browse files Browse the repository at this point in the history
Fixes for Integration Tests
  • Loading branch information
NikCharlebois authored Jan 31, 2024
2 parents ed91b13 + 1ccd485 commit 5e33d07
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class MSFT_EXOAvailabilityAddressSpace : OMI_BaseResource
[Write, Description("The Credentials parameter specifies the username and password that's used to access the Availability services in the target forest.")] String Credentials;
[Write, Description("The ForestName parameter specifies the SMTP domain name of the target forest for users whose free/busy data must be retrieved. If your users are distributed among multiple SMTP domains in the target forest, run the Add-AvailabilityAddressSpace command once for each SMTP domain.")] String ForestName;
[Write, Description("The TargetAutodiscoverEpr parameter specifies the Autodiscover URL of Exchange Web Services for the external organization. Exchange uses Autodiscover to automatically detect the correct server endpoint for external requests.")] String TargetAutodiscoverEpr;
[Write, Description("The TargetServiceEpr parameter specifies the Exchange Online Calendar Service URL of the external Microsoft 365 organization that you're trying to read free/busy information from.")] String TargetServiceEpr;
[Write, Description("The TargetTenantID parameter specifies the tenant ID of the external Microsoft 365 organization that you're trying to read free/busy information from.")] String TargetTenantId;
[Write, Description("Specifies if this AvailabilityAddressSpace should exist."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
[Write, Description("Credentials of the Exchange Global Admin"), EmbeddedInstance("MSFT_Credential")] string Credential;
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Get-TargetResource
}
if ($null -eq $AvailabilityConfig)
{
Write-Verbose -Message "Availability config for $($OrgWideAccount) does not exist."
Write-Verbose -Message "Availability config for [$($OrgWideAccount)] does not exist."
return $nullReturn
}
$result = @{
Expand Down Expand Up @@ -267,10 +267,6 @@ function Test-TargetResource
$ValuesToCheck.Remove('ManagedIdentity') | Out-Null

$DesiredValues = $PSBoundParameters
if ($OrgWideAccount.Contains('@'))
{
$DesiredValues.OrgWideAccount = $OrgWideAccount.Split('@')[0]
}

$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ Configuration Example
EXOAvailabilityAddressSpace 'ConfigureAvailabilityAddressSpace'
{
Identity = 'Contoso.com'
AccessMethod = 'OrgWideFB'
AccessMethod = 'OrgWideFBToken'
ForestName = 'example.contoso.com'
TargetAutodiscoverEpr = 'https://contoso.com/autodiscover/autodiscover.xml'
TargetServiceEpr = 'https://contoso.com/autodiscover/autodiscover.xml'
TargetTenantId = 'o365dsc.onmicrosoft.com'
Ensure = 'Present'
Credential = $Credscredential
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ Configuration Example
EXOAvailabilityAddressSpace 'ConfigureAvailabilityAddressSpace'
{
Identity = 'Contoso.com'
AccessMethod = 'OrgWideFBBasic' # Updated Property
AccessMethod = 'OrgWideFBToken'
ForestName = 'example.contoso.com'
TargetAutodiscoverEpr = 'https://contoso.com/autodiscover/autodiscover.xml'
TargetServiceEpr = 'https://contoso.com/autodiscover/autodiscover.xml'
TargetTenantId = 'contoso.onmicrosoft.com' # Updated Property
Ensure = 'Present'
Credential = $Credscredential
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Configuration Example
ModerationEnabled = $False;
Identity = "DemoDG";
Name = "DemoDG";
OrganizationalUnit = "$Domain";
PrimarySmtpAddress = "demodg@$Domain";
RequireSenderAuthenticationEnabled = $True;
SendModerationNotifications = "Always";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Configuration Example
ModerationEnabled = $False;
Identity = "DemoDG";
Name = "DemoDG";
OrganizationalUnit = "$Domain";
PrimarySmtpAddress = "demodg@$Domain";
RequireSenderAuthenticationEnabled = $True;
SendModerationNotifications = "Always";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Configuration Example
EXOIntraOrganizationConnector 'ConfigureIntraOrganizationConnector'
{
Identity = "MainCloudConnector"
DiscoveryEndpoint = "https://ExternalDiscovery.Contoso.com"
DiscoveryEndpoint = "https://ExternalDiscovery.Contoso.com/"
TargetAddressDomains = "Cloud1.contoso.com","Cloud2.contoso.com"
Enabled = $True
Ensure = "Present"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Configuration Example
EXOIntraOrganizationConnector 'ConfigureIntraOrganizationConnector'
{
Identity = "MainCloudConnector"
DiscoveryEndpoint = "https://ExternalDiscovery.Contoso.com"
DiscoveryEndpoint = "https://ExternalDiscovery.Contoso.com/"
TargetAddressDomains = "Cloud1.contoso.com","Cloud2.contoso.com"
Enabled = $False # Updated Property
Ensure = "Present"
Expand Down

0 comments on commit 5e33d07

Please sign in to comment.