last fix?

This commit is contained in:
omercier 2025-08-08 17:13:53 +02:00
parent 1c46eef2ee
commit dcade34ef8
3 changed files with 3 additions and 17 deletions

View File

@ -27,12 +27,7 @@ cache ${tc}/1
... ${cmd} ... ${cmd}
... --mode=cache ... --mode=cache
${output} Run ${command} Ctn Run Command And Check Result As Strings ${command} ${expected_result} ${tc}
${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 -- Examples: tc extra_options expected_result --
... 1 ${EMPTY} OK: Cache files created successfully ... 1 ${EMPTY} OK: Cache files created successfully

View File

@ -22,16 +22,7 @@ ${cmd} ${CENTREON_PLUGINS}
jobs ${tc}/11 jobs ${tc}/11
[Tags] apps backup rubrik restapi jobs [Tags] apps backup rubrik restapi jobs
${command} Catenate Ctn Run Command And Check Result As Regexp ${command} ${expected_result} ${tc}
... ${cmd}
... --mode=jobs
... ${extraoptions}
Log ${command}
${output} Run ${command}
Should Match Regexp ${output} ${expected_result}
Examples: tc extraoptions expected_result -- Examples: tc extraoptions expected_result --
... 1 ${EMPTY} OK: job 'centreon.groupe.active volumes' \[type: backup\] number of failed executions: 0.00 % - last execution .* - last execution started: 2024-07-18T20:00:01.382Z status: Success \| 'jobs.executions.detected.count'=2;;;0; 'centreon.groupe.active volumes~backup#job.executions.failed.percentage'=0.00%;;;0;100 'centreon.groupe.active volumes~backup#job.execution.last.seconds'=.*s;;;0; ... 1 ${EMPTY} OK: job 'centreon.groupe.active volumes' \[type: backup\] number of failed executions: 0.00 % - last execution .* - last execution started: 2024-07-18T20:00:01.382Z status: Success \| 'jobs.executions.detected.count'=2;;;0; 'centreon.groupe.active volumes~backup#job.executions.failed.percentage'=0.00%;;;0;100 'centreon.groupe.active volumes~backup#job.execution.last.seconds'=.*s;;;0;

View File

@ -34,4 +34,4 @@ Linux Memory with vault ${tc}
... 2 Linux ${VAULT_FILES}${/}vault.json ${EMPTY} UNKNOWN: File '.*/centreon/plugins/passwordmgr/vault.json' could not be found. ... 2 Linux ${VAULT_FILES}${/}vault.json ${EMPTY} UNKNOWN: File '.*/centreon/plugins/passwordmgr/vault.json' could not be found.
... 3 Linux ${VAULT_FILES}${/}vault_config_incomplete.json ${EMPTY} UNKNOWN: Unable to authenticate to the vault: role_id or secret_id is empty. ... 3 Linux ${VAULT_FILES}${/}vault_config_incomplete.json ${EMPTY} UNKNOWN: Unable to authenticate to the vault: role_id or secret_id is empty.
... 4 Linux ${VAULT_FILES}${/}vault_config_plain.json --debug OK: Ram Total: 1.92 GB Used ... 4 Linux ${VAULT_FILES}${/}vault_config_plain.json --debug OK: Ram Total: 1.92 GB Used
... 5 Linux ${VAULT_FILES}${/}vault_config_encrypted.json --vault-env-file=${VAULT_FILES}${/}env OK: Ram Total: 1.92 GB Used # ... 5 Linux ${VAULT_FILES}${/}vault_config_encrypted.json --vault-env-file=${VAULT_FILES}${/}env OK: Ram Total: 1.92 GB Used