| 1 |
*** Settings *** |
| 2 |
Documentation Check Iplabel incidents |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Suite Setup Start Mockoon ${MOCKOON_JSON} |
| 7 |
Suite Teardown Stop Mockoon |
| 8 |
Test Timeout 120s |
| 9 |
|
| 10 |
|
| 11 |
*** Variables *** |
| 12 |
${MOCKOON_JSON} ${CURDIR}${/}monitoring-iplabel-ekara.json |
| 13 |
${cmd} ${CENTREON_PLUGINS} |
| 14 |
... --plugin=apps::monitoring::iplabel::ekara::restapi::plugin |
| 15 |
... --hostname=localhost |
| 16 |
... --api-username='username' |
| 17 |
... --api-password='password' |
| 18 |
... --port='3000' |
| 19 |
... --proto='http' |
| 20 |
|
| 21 |
*** Test Cases *** |
| 22 |
|
| 23 |
incidents ${tc} |
| 24 |
[Documentation] Check Iplabel scenarios |
| 25 |
[Tags] monitoring iplabel restapi |
| 26 |
|
| 27 |
${command} Catenate |
| 28 |
... ${cmd} |
| 29 |
... --mode=incidents |
| 30 |
... ${extra_options} |
| 31 |
|
| 32 |
Ctn Run Command And Check Result As Strings ${command} ${expected_result} |
| 33 |
|
| 34 |
Examples: tc extra_options expected_result -- |
| 35 |
... 1 --filter-name='Centreon Demo Navigation|AKILA - .Web.' CRITICAL: Incident #25421291, Scenario 'Centreon Demo Navigation' severity: Critical - Incident #25421962, Scenario 'AKILA - (Web)' severity: Critical - Incident #25422458, Scenario 'Centreon Demo Navigation' severity: Critical - Incident #25423513, Scenario 'Centreon Demo Navigation' status: Open, severity: Critical | 'ekara.incidents.current.total.count'=4;;;0; |
| 36 |
... 2 --filter-name='not a name' UNKNOWN: No scenarios found, can't search for incidents. Please check filters. |