рабочий вариант, но скороть 10 МБит
This commit is contained in:
@@ -33,7 +33,7 @@ function Get-PropertyValue {
|
||||
return $property.Value
|
||||
}
|
||||
|
||||
& (Join-Path $scriptDir "c18z92-node-agent-disabled-backend-fallback-smoke.ps1") `
|
||||
& (Join-Path $scriptDir "c18z92-node-agent-disabled-compat-fallback-smoke.ps1") `
|
||||
-ApiBaseUrl $ApiBaseUrl `
|
||||
-ClusterID $ClusterID `
|
||||
-ActorUserID $ActorUserID `
|
||||
@@ -51,7 +51,7 @@ for ($i = 0; $i -lt 8; $i++) {
|
||||
$response = Invoke-Api -Method GET -Path "/clusters/$ClusterID/fabric/service-channels/access-telemetry?actor_user_id=$ActorUserID&limit=50"
|
||||
$accessTelemetry = $response.fabric_service_channel_access_telemetry
|
||||
$activeChannel = @($accessTelemetry.active_channels | Where-Object { [string](Get-PropertyValue -Item $_ -Name "channel_id" -Default "") -eq $channelID }) | Select-Object -First 1
|
||||
if ($null -ne $activeChannel -and [int](Get-PropertyValue -Item $activeChannel -Name "entry_node_backend_fallback_blocked_count" -Default 0) -ge 1) {
|
||||
if ($null -ne $activeChannel -and [int](Get-PropertyValue -Item $activeChannel -Name "entry_node_degraded_route_blocked_count" -Default 0) -ge 1) {
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -64,10 +64,10 @@ $incident = @($incidents | Where-Object {
|
||||
|
||||
$checks = [ordered]@{
|
||||
base_disabled_fallback_smoke_passed = [bool]$baseResult.passed
|
||||
access_telemetry_reports_blocked_fallback = ($null -ne $accessTelemetry -and [int](Get-PropertyValue -Item $accessTelemetry -Name "backend_fallback_blocked_count" -Default 0) -ge 1)
|
||||
active_channel_reports_blocked_fallback = ($null -ne $activeChannel -and [int](Get-PropertyValue -Item $activeChannel -Name "entry_node_backend_fallback_blocked_count" -Default 0) -ge 1)
|
||||
active_channel_reports_violation_status = ($null -ne $activeChannel -and [string](Get-PropertyValue -Item $activeChannel -Name "entry_node_last_data_plane_violation_status" -Default "") -eq "backend_fallback_blocked_by_policy")
|
||||
incident_reports_blocked_fallback = ($null -ne $incident -and [string](Get-PropertyValue -Item $incident -Name "guard_status" -Default "") -eq "backend_fallback_blocked_by_policy")
|
||||
access_telemetry_reports_blocked_fallback = ($null -ne $accessTelemetry -and [int](Get-PropertyValue -Item $accessTelemetry -Name "degraded_route_blocked_count" -Default 0) -ge 1)
|
||||
active_channel_reports_blocked_fallback = ($null -ne $activeChannel -and [int](Get-PropertyValue -Item $activeChannel -Name "entry_node_degraded_route_blocked_count" -Default 0) -ge 1)
|
||||
active_channel_reports_violation_status = ($null -ne $activeChannel -and [string](Get-PropertyValue -Item $activeChannel -Name "entry_node_last_data_plane_violation_status" -Default "") -eq "degraded_route_blocked_by_policy")
|
||||
incident_reports_blocked_fallback = ($null -ne $incident -and [string](Get-PropertyValue -Item $incident -Name "guard_status" -Default "") -eq "degraded_route_blocked_by_policy")
|
||||
incident_action_reports_restore_route_or_policy = ($null -ne $incident -and [string](Get-PropertyValue -Item $incident -Name "recommended_operator_action" -Default "") -eq "restore_fabric_route_or_change_signed_backend_relay_policy_before_retry")
|
||||
}
|
||||
$failed = @($checks.GetEnumerator() | Where-Object { -not $_.Value } | ForEach-Object { $_.Key })
|
||||
@@ -96,3 +96,4 @@ if (-not $result.passed) {
|
||||
|
||||
Write-Host "C18Z95 node-agent blocked fallback telemetry smoke passed. Result: $target"
|
||||
$result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user