| 1 |
*** Settings *** |
| 2 |
Documentation HPE Primera Storage REST API |
| 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}${/}hpe-primera.mockoon.json |
| 13 |
${HOSTNAME} 127.0.0.1 |
| 14 |
${APIPORT} 3000 |
| 15 |
${CMD} ${CENTREON_PLUGINS} |
| 16 |
... --plugin=storage::hp::primera::restapi::plugin |
| 17 |
... --mode=list-volumes |
| 18 |
... --hostname=${HOSTNAME} |
| 19 |
... --api-username=toto |
| 20 |
... --api-password=toto |
| 21 |
... --proto=http |
| 22 |
... --port=${APIPORT} |
| 23 |
... --custommode=api |
| 24 |
... |
| 25 |
|
| 26 |
*** Test Cases *** |
| 27 |
List-Volumes ${tc} |
| 28 |
[Tags] storage api hpe hp |
| 29 |
${output} Run ${CMD} ${extraoptions} | wc -l |
| 30 |
|
| 31 |
${output} Strip String ${output} |
| 32 |
Should Be Equal As Strings |
| 33 |
... ${output} |
| 34 |
... ${expected_result} |
| 35 |
... Wrong output result for command:\n${CMD} ${extraoptions}\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} 18 |
| 42 |
... 2 --disco-show 20 |
| 43 |
... 3 --disco-format 7 |