Debian Codegraph @

tests/storage/netapp/ontap/restapi/luns.robot

raw
1 *** Settings ***
2 Documentation Netapp Ontap Restapi Luns plugin
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}${/}netapp.json
13
14 ${cmd} ${CENTREON_PLUGINS}
15 ... --plugin=storage::netapp::ontap::restapi::plugin
16 ... --hostname=${HOSTNAME}
17 ... --port=${APIPORT}
18 ... --proto=http
19 ... --api-username=username
20 ... --api-password=password
21 ... --mode=luns
22
23
24 *** Test Cases ***
25 Luns ${tc}
26 [Tags] storage netapp ontapp api luns mockoon
27 ${command} Catenate
28 ... ${CMD}
29 ... ${extra_options}
30
31 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
32
33 Examples: tc extra_options expected_result --
34 ... 1 ${EMPTY} OK: Lun '/vol/volume1/qtree1/lun1' state: online [container state: string]
35 ... 2 --warning-status='\\\%{state} !~ /notonline/i' WARNING: Lun '/vol/volume1/qtree1/lun1' state: online [container state: string]
36 ... 3 --critical-status='\\\%{state} !~ /notonline/i' CRITICAL: Lun '/vol/volume1/qtree1/lun1' state: online [container state: string]