mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
This option has been added to track disappeared jobs and fix a concatenation issue in long output. Refs: CTOR-775
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
*** Settings ***
|
|
Documentation Check Rubrik REST API jobs cache file creation
|
|
|
|
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
|
|
|
|
Suite Setup Start Mockoon ${MOCKOON_JSON}
|
|
Suite Teardown Stop Mockoon
|
|
Test Timeout 120s
|
|
|
|
|
|
*** Variables ***
|
|
${MOCKOON_JSON} ${CURDIR}${/}applications-rubrik-restapi.json
|
|
${cmd} ${CENTREON_PLUGINS}
|
|
... --plugin=apps::backup::rubrik::restapi::plugin
|
|
... --hostname=${HOSTNAME}
|
|
... --api-username='username'
|
|
... --api-password='password'
|
|
... --proto='http'
|
|
... --port=${APIPORT}
|
|
|
|
|
|
*** Test Cases ***
|
|
cache ${tc}/1
|
|
[Tags] apps backup rubrik restapi cache
|
|
|
|
${command} Catenate
|
|
... ${cmd}
|
|
... --mode=cache
|
|
|
|
${output} Run ${command}
|
|
${output} Strip String ${output}
|
|
Should Be Equal As Strings
|
|
... ${output}
|
|
... ${expected_result}
|
|
... \nWrong output result for command:\n${command}\n\nExpected:\n${expected_result}\nCommand output:\n${output}\n
|
|
|
|
Examples: tc extra_options expected_result --
|
|
... 1 ${EMPTY} OK: Cache files created successfully
|
|
|