Skip to content

Commit

Permalink
Added numbering for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Dec 14, 2024
1 parent 7cd563a commit ae83037
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Maester/Exchange/Test-ExchangeSetting.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BeforeDiscovery {
Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" {
$portalLink_SecureScore = "https://security.microsoft.com/securescore"

It "Ensure Spam confidence level (SCL) is configured in mail transport rules with specific domains" -Tag "SetScl", "TransportRule" {
It "MT.1037: Ensure Spam confidence level (SCL) is configured in mail transport rules with specific domains" -Tag "SetScl", "TransportRule" {

$portalLink_TransportRules = "https://admin.exchange.microsoft.com/#/transportrules"

Expand All @@ -37,7 +37,7 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" {
}
}

It "Ensure modern authentication for Exchange Online is enabled" -Tag "OAuth2ClientProfileEnabled" {
It "MT.1038: Ensure modern authentication for Exchange Online is enabled" -Tag "OAuth2ClientProfileEnabled" {

$result = $OrganizationConfig.OAuth2ClientProfileEnabled

Expand All @@ -55,7 +55,7 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" {
}
}

It "Ensure MailTips are enabled for end users" -Tag "MailTipsExternalRecipientsTipsEnabled" {
It "MT.1039: Ensure MailTips are enabled for end users" -Tag "MailTipsExternalRecipientsTipsEnabled" {
#Get-OrganizationConfig | fl MailTipsAllTipsEnabled, MailTipsExternalRecipientsTipsEnabled
#Set-OrganizationConfig -MailTipsAllTipsEnabled $true -MailTipsExternalRecipientsTipsEnabled $true -MailTipsGroupMetricsEnabled $true -MailTipsLargeAudienceThreshold '25'

Expand All @@ -76,7 +76,7 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" {
}

# Y
It "Ensure additional storage providers are restricted in Outlook on the web" -Tag "AdditionalStorageProvidersAvailable" {
It "MT.1040: Ensure additional storage providers are restricted in Outlook on the web" -Tag "AdditionalStorageProvidersAvailable" {
#Get-OwaMailboxPolicy | fl Name, AdditionalStorageProvidersAvailable, ThirdPartyFileProvidersEnabled, ConditionalAccessPolicy, ChangePasswordEnabled, *Offline*, ReportJunkEmailEnabled
#Set-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default -AdditionalStorageProvidersAvailable $false

Expand All @@ -97,15 +97,15 @@ Describe "Exchange Setting" -Tag "Maester", "Exchange", "SecureScore" {
}

# Z
It "Ensure users installing Outlook add-ins is not allowed" -Tag "MyCustomApps", "MyMarketplaceApps", "MyReadWriteMailboxApps" {
It "MT.1041: Ensure users installing Outlook add-ins is not allowed" -Tag "MyCustomApps", "MyMarketplaceApps", "MyReadWriteMailboxApps" {
#Get-ManagementRoleAssignment -Role "My Custom Apps" -RoleAssignee $defaultrole | ft -AutoSize
#Get-ManagementRoleAssignment -Role "My Marketplace Apps" -RoleAssignee $defaultrole | ft -AutoSize
#Get-ManagementRoleAssignment -Role "My ReadWriteMailbox Apps" -RoleAssignee $defaultrole | ft -AutoSize

$result = [bool](Get-ManagementRoleAssignment -Role "My Custom Apps" -RoleAssignee $RoleAssignmentPolicyDefault) -or `
[bool](Get-ManagementRoleAssignment -Role "My Marketplace Apps" -RoleAssignee $RoleAssignmentPolicyDefault) -or `
[bool](Get-ManagementRoleAssignment -Role "My ReadWriteMailbox Apps" -RoleAssignee $RoleAssignmentPolicyDefault)

if ($result -eq $false) {
$testResultMarkdown = "Well done. Apps in 'Default Role Assignment Policy' is $($result)`n`n"
} else {
Expand Down

0 comments on commit ae83037

Please sign in to comment.