From 80015c78d5e73a2b850179d3ac293e8a25fb4f45 Mon Sep 17 00:00:00 2001 From: DrIOS <58635327+DrIOSX@users.noreply.github.com> Date: Sun, 30 Jun 2024 12:10:43 -0500 Subject: [PATCH] fix: 8.5.4 simplified output and added object comment --- source/Private/Get-CISMSTeamsOutput.ps1 | 7 ++++++- source/tests/Test-DialInBypassLobby.ps1 | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/source/Private/Get-CISMSTeamsOutput.ps1 b/source/Private/Get-CISMSTeamsOutput.ps1 index 1423c71..db01902 100644 --- a/source/Private/Get-CISMSTeamsOutput.ps1 +++ b/source/Private/Get-CISMSTeamsOutput.ps1 @@ -219,8 +219,13 @@ function Get-CISMSTeamsOutput { # - Condition A: The `AllowPSTNUsersToBypassLobby` setting in the Global Teams meeting policy is not set to `False`. # - Condition B: Verification using the UI in the Microsoft Teams admin center shows that "People dialing in can't bypass the lobby" is not set to `Off`. # - Condition C: Individuals who dial in by phone are able to join the meeting directly without waiting in the lobby. - # Retrieve Teams meeting policy for PSTN users + # $CsTeamsMeetingPolicyPSTN Mock Object + <# + $CsTeamsMeetingPolicyPSTN = [PSCustomObject]@{ + AllowPSTNUsersToBypassLobby = $true + } + #> $CsTeamsMeetingPolicyPSTN = Get-CsTeamsMeetingPolicy -Identity Global | Select-Object -Property AllowPSTNUsersToBypassLobby return $CsTeamsMeetingPolicyPSTN } diff --git a/source/tests/Test-DialInBypassLobby.ps1 b/source/tests/Test-DialInBypassLobby.ps1 index f2bf4e6..08cf2af 100644 --- a/source/tests/Test-DialInBypassLobby.ps1 +++ b/source/tests/Test-DialInBypassLobby.ps1 @@ -31,8 +31,13 @@ function Test-DialInBypassLobby { # - Condition A: The `AllowPSTNUsersToBypassLobby` setting in the Global Teams meeting policy is not set to `False`. # - Condition B: Verification using the UI in the Microsoft Teams admin center shows that "People dialing in can't bypass the lobby" is not set to `Off`. # - Condition C: Individuals who dial in by phone are able to join the meeting directly without waiting in the lobby. - # Retrieve Teams meeting policy for PSTN users + # $CsTeamsMeetingPolicyPSTN Mock Object + <# + $CsTeamsMeetingPolicyPSTN = [PSCustomObject]@{ + AllowPSTNUsersToBypassLobby = $true + } + #> $CsTeamsMeetingPolicyPSTN = Get-CISMSTeamsOutput -Rec $recnum $PSTNBypassDisabled = -not $CsTeamsMeetingPolicyPSTN.AllowPSTNUsersToBypassLobby