| 1 |
*** Settings *** |
| 2 |
|
| 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 |
Test Setup Ctn Cleanup Cache |
| 10 |
|
| 11 |
*** Variables *** |
| 12 |
${MOCKOON_JSON} ${CURDIR}${/}vmware8-restapi.mockoon.json |
| 13 |
|
| 14 |
${CMD} ${CENTREON_PLUGINS} --plugin=apps::vmware::vsphere8::esx::plugin |
| 15 |
... --mode=power |
| 16 |
... --password=C3POR2P2 |
| 17 |
... --username=obi-wan |
| 18 |
... --hostname=127.0.0.1 |
| 19 |
... --proto=http |
| 20 |
... --port=3000 |
| 21 |
... --esx-id=host-22 |
| 22 |
|
| 23 |
*** Test Cases *** |
| 24 |
Power ${tc} |
| 25 |
[Tags] apps api vmware vsphere8 esx |
| 26 |
${command} Catenate ${CMD} --http-backend=curl ${extraoptions} |
| 27 |
|
| 28 |
Ctn Run Command And Check Result As Strings ${command} ${expected_result} |
| 29 |
|
| 30 |
Examples: tc extraoptions expected_result -- |
| 31 |
... 1 ${EMPTY} OK: power-usage-watts : skipped (no value(s)) - no data for host host-22 counter power.capacity.usage.HOST at the moment. |
| 32 |
... 2 ${EMPTY} OK: Power usage is 200 Watts | 'power.capacity.usage.watts'=200W;;;; |
| 33 |
... 3 --warning-power-usage-watts=0:0 WARNING: Power usage is 200 Watts | 'power.capacity.usage.watts'=200W;0:0;;; |
| 34 |
... 4 --critical-power-usage-watts=0:0 CRITICAL: Power usage is 200 Watts | 'power.capacity.usage.watts'=200W;;0:0;; |