| 1 |
*** Settings *** |
| 2 |
Documentation VeloCloud REST API Edge Status |
| 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}${/}velocloud.mockoon.json |
| 13 |
${HOSTNAME} 127.0.0.1 |
| 14 |
${APIPORT} 3000 |
| 15 |
${CMD} ${CENTREON_PLUGINS} |
| 16 |
... --plugin=cloud::vmware::velocloud::restapi::plugin |
| 17 |
... --mode edge-status |
| 18 |
... --hostname=${HOSTNAME} |
| 19 |
... --username=XloginX |
| 20 |
... --password=XpasswordX |
| 21 |
... --proto=http |
| 22 |
... --port=${APIPORT} |
| 23 |
... --custommode=api |
| 24 |
|
| 25 |
*** Test Cases *** |
| 26 |
Edge Status ${tc} |
| 27 |
[Tags] cloud api vmware |
| 28 |
${command} Catenate ${CMD} ${extraoptions} |
| 29 |
${output} Run ${command} |
| 30 |
|
| 31 |
${output} Strip String ${output} |
| 32 |
Should Be Equal As Strings |
| 33 |
... ${output} |
| 34 |
... ${expected_result} |
| 35 |
... Wrong output result for command:\n${command}\n\nObtained:\n${output}\n\nExpected:\n${expected_result}\n |
| 36 |
... values=False |
| 37 |
... collapse_spaces=True |
| 38 |
|
| 39 |
|
| 40 |
Examples: tc extraoptions expected_result -- |
| 41 |
... 1 ${EMPTY} CRITICAL: Edge 'MYEDGE#02' State is 'OFFLINE', Service State is 'IN_SERVICE', HA State is 'READY', Activation State is 'ACTIVATED' |
| 42 |
... 2 --critical-status='' OK: All edges status are ok |