@@ -191,7 +191,7 @@ InModuleScope Arcus.Scripting.LogicApps {
191191
192192 # Assert
193193 Assert-MockCalled Get-AzCachedAccessToken - Scope It - Times 1
194- Assert-MockCalled Get-AzLogicAppRunHistory - Scope It - Times 6 - ParameterFilter { $ResourceGroupName -eq $resourceGroup }
194+ Assert-MockCalled Get-AzLogicAppRunHistory - Scope It - Times 3 - ParameterFilter { $ResourceGroupName -eq $resourceGroup }
195195 Assert-MockCalled Disable-AzLogicApp - Scope It - Exactly 0
196196 }
197197 It " Doesn't disable anything when checkType = NoWaitingOrRunningRuns but returns a zero count on an the waiting runs for stopType = None" {
@@ -216,10 +216,10 @@ InModuleScope Arcus.Scripting.LogicApps {
216216
217217 # Assert
218218 Assert-MockCalled Get-AzCachedAccessToken - Scope It - Times 1
219- Assert-MockCalled Get-AzLogicAppRunHistory - Times 4 - ParameterFilter { $ResourceGroupName -eq $resourceGroup }
219+ Assert-MockCalled Get-AzLogicAppRunHistory - Times 2 - ParameterFilter { $ResourceGroupName -eq $resourceGroup }
220220 Assert-MockCalled Disable-AzLogicApp - Scope It - Exactly 0
221221 }
222- It " Disbales all logic apps when checkType = NoWaitingOrRunningRuns with found waiting and no running runs for stopType = Immediate" {
222+ It " Disables all logic apps when checkType = NoWaitingOrRunningRuns with found waiting and no running runs for stopType = Immediate" {
223223 # Arrange
224224 $resourceGroup = " my-resource-group"
225225 $logicAppNames = @ (" snd-async" , " ord-sthp-harvest-order-doublechecker" , " rcv-sthp-harvest-order-af-ftp" , " rcv-sthp-harvest-order-af-sft" , " rcv-sthp-harvest-order-af-file" )
@@ -244,7 +244,7 @@ InModuleScope Arcus.Scripting.LogicApps {
244244
245245 # Assert
246246 Assert-MockCalled Get-AzCachedAccessToken - Scope It - Times 1
247- Assert-MockCalled Get-AzLogicAppRunHistory - Scope It - Times 10 - ParameterFilter { $ResourceGroupName -eq $resourceGroup }
247+ Assert-MockCalled Get-AzLogicAppRunHistory - Scope It - Times 5 - ParameterFilter { $ResourceGroupName -eq $resourceGroup }
248248 Assert-MockCalled Disable-AzLogicApp - Scope It - Exactly 5 - ParameterFilter { $resourceGroupName -eq $resourceGroup }
249249 }
250250 It " Disables all logic apps when checkType = NoWaitingOrRunningRuns with found waiting and running runs for stopType = Immediate" {
0 commit comments