|
@@ 340-351 (lines=12) @@
|
| 337 |
|
// first the direct connectivity to the server |
| 338 |
|
$flrServerStatus = $this->checkFlrServerStatus($this->idPFederation); |
| 339 |
|
$this->additionalFindings[AbstractTest::INFRA_NRO_IDP][] = $flrServerStatus; |
| 340 |
|
switch ($flrServerStatus["STATUS"]) { |
| 341 |
|
case AbstractTest::STATUS_GOOD: |
| 342 |
|
unset($this->possibleFailureReasons[AbstractTest::INFRA_NRO_IDP]); |
| 343 |
|
break; |
| 344 |
|
case AbstractTest::STATUS_PARTIAL: |
| 345 |
|
// a subset of the FLRs is down? This probably doesn't impact the user unless he's unlucky and has his session fall into failover. |
| 346 |
|
// keep FLR as a possible problem with original probability |
| 347 |
|
break; |
| 348 |
|
case AbstractTest::STATUS_DOWN: |
| 349 |
|
// Raise probability by much (even monitoring is sometimes wrong, or a few minutes behind reality) |
| 350 |
|
$this->possibleFailureReasons[AbstractTest::INFRA_NRO_IDP] = 0.95; |
| 351 |
|
} |
| 352 |
|
} |
| 353 |
|
|
| 354 |
|
// now let's theck the link |
|
@@ 382-393 (lines=12) @@
|
| 379 |
|
$visitedFlrStatus = $this->checkFlrServerStatus($this->visitedFlr); |
| 380 |
|
$this->additionalFindings[AbstractTest::INFRA_NRO_SP][] = $visitedFlrStatus; |
| 381 |
|
// direct query to server |
| 382 |
|
switch ($visitedFlrStatus["STATUS"]) { |
| 383 |
|
case AbstractTest::STATUS_GOOD: |
| 384 |
|
unset($this->possibleFailureReasons[AbstractTest::INFRA_NRO_SP]); |
| 385 |
|
break; |
| 386 |
|
case AbstractTest::STATUS_PARTIAL: |
| 387 |
|
// a subset of the FLRs is down? This probably doesn't impact the user unless he's unlucky and has his session fall into failover. |
| 388 |
|
// keep FLR as a possible problem with original probability |
| 389 |
|
break; |
| 390 |
|
case AbstractTest::STATUS_DOWN: |
| 391 |
|
// Raise probability by much (even monitoring is sometimes wrong, or a few minutes behind reality) |
| 392 |
|
$this->possibleFailureReasons[AbstractTest::INFRA_NRO_SP] = 0.95; |
| 393 |
|
} |
| 394 |
|
// and again its uplink to the ETLR |
| 395 |
|
$visitedFlrUplinkStatus = $this->checkFedEtlrUplink($this->visitedFlr); |
| 396 |
|
$this->additionalFindings[AbstractTest::INFRA_NRO_SP][] = $visitedFlrUplinkStatus; |
|
@@ 432-441 (lines=10) @@
|
| 429 |
|
$this->additionalFindings[AbstractTest::INFRA_NRO_SP][] = $countryToCountryStatus; |
| 430 |
|
$this->additionalFindings[AbstractTest::INFRA_ETLR][] = $countryToCountryStatus; |
| 431 |
|
$this->additionalFindings[AbstractTest::INFRA_NRO_IDP][] = $countryToCountryStatus; |
| 432 |
|
switch ($countryToCountryStatus["STATUS"]) { |
| 433 |
|
case AbstractTest::STATUS_GOOD: |
| 434 |
|
// all routes work |
| 435 |
|
break; |
| 436 |
|
case AbstractTest::STATUS_PARTIAL: |
| 437 |
|
// at least one, or even all have a routing problem |
| 438 |
|
case AbstractTest::STATUS_DOWN: |
| 439 |
|
// that's rather telling. |
| 440 |
|
$this->possibleFailureReasons[AbstractTest::INFRA_NRO_SP] = 0.95; |
| 441 |
|
} |
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
$this->normaliseResultSet(); |