itoussies 88be153235
enh(rubrik): add --check-retention option to track disappeared jobs and fix an issue in long output (#5171)
This option has been added to track disappeared jobs and fix a concatenation issue in long output.

Refs: CTOR-775
2024-10-08 15:05:04 +02:00

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