Debian Codegraph @

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

raw
1 *** Settings ***
2 Documentation Netapp Ontap Restapi Hardware 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=hardware
22
23
24 *** Test Cases ***
25 Hardware ${tc}
26 [Tags] storage netapp ontapp api hardware 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: All 4 components are ok [1/1 bays, 1/1 disks, 1/1 frus, 1/1 shelfs]. | 'hardware.bay.count'=1;;;; 'hardware.disk.count'=1;;;; 'hardware.fru.count'=1;;;; 'hardware.shelf.count'=1;;;;
35 ... 2 --component='bay' OK: All 1 components are ok [1/1 bays]. | 'hardware.bay.count'=1;;;;
36 ... 3 --component='disk' OK: All 1 components are ok [1/1 disks]. | 'hardware.disk.count'=1;;;;
37 ... 4 --component='fru' OK: All 1 components are ok [1/1 frus]. | 'hardware.fru.count'=1;;;;
38 ... 5 --component='shelf' OK: All 1 components are ok [1/1 shelfs]. | 'hardware.shelf.count'=1;;;;
39