Debian Codegraph @

tests/network/keysight/nvos/restapi/license.robot

raw
1 *** Settings ***
2 Documentation Check the licenses 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}${/}keysight.json
13
14 ${cmd} ${CENTREON_PLUGINS}
15 ... --plugin=network::keysight::nvos::restapi::plugin
16 ... --custommode=api
17 ... --hostname=${HOSTNAME}
18 ... --api-username=username
19 ... --api-password=password
20 ... --proto=http
21 ... --port=${APIPORT}
22
23
24 *** Test Cases ***
25 license ${tc}
26 [Tags] network restapi
27 ${command} Catenate
28 ... ${cmd}
29 ... --mode=license
30 ... ${extraoptions}
31
32 Log ${cmd}
33 Ctn Run Command And Check Result As Strings ${command} ${expected_result}
34
35 Examples: tc extraoptions expected_result --
36 ... 1 --verbose OK: status : skipped (no value(s))
37 ... 2 --unknown-status=\\\%{status} OK: status : skipped (no value(s))
38 ... 3 --warning-status='\\\%{status} =~ /MINOR/i' OK: status : skipped (no value(s))
39 ... 4 --critical-status='\\\%{status} =~ /MAJOR|CRITICAL/i' OK: status : skipped (no value(s))