Debian Codegraph @

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

raw
1 *** Settings ***
2 Documentation Netapp Ontap Restapi Snapmirrors 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=snapmirrors
22
23
24 *** Test Cases ***
25 Snapmirrors ${tc}
26 [Tags] storage netapp ontapp api snapmirrors 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 --critical-status='' OK: Snapmirror 'svm1:volume1-svm1:volume1' healthy: false [state: snapmirrored] [transfer state: string]
35 ... 2 ${EMPTY} CRITICAL: Snapmirror 'svm1:volume1-svm1:volume1' healthy: false [state: snapmirrored] [transfer state: string]
36 ... 3 --warning-status='\\\%{healthy} ne "true"' --critical-status='' WARNING: Snapmirror 'svm1:volume1-svm1:volume1' healthy: false [state: snapmirrored] [transfer state: string]