mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
NEW TEST mode (jobs & list-jobs)
This commit is contained in:
parent
da502d08dc
commit
42ec00a9d8
@ -78,7 +78,7 @@ sub run {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
my $results = $self->manage_selection(%options);
|
||||
foreach my $uid (keys %$results) {
|
||||
foreach my $uid (sort keys %$results) {
|
||||
$self->{output}->output_add(
|
||||
long_msg => sprintf(
|
||||
'[uid: %s][jobName: %s][jobType: %s]',
|
||||
|
34
tests/apps/backup/veeam/vbem/restapi/list-jobs.robot
Normal file
34
tests/apps/backup/veeam/vbem/restapi/list-jobs.robot
Normal file
@ -0,0 +1,34 @@
|
||||
*** Settings ***
|
||||
Documentation Check Veeam Backup Enterprise Manager using Rest API,Check jobs.
|
||||
|
||||
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource
|
||||
|
||||
Suite Setup Start Mockoon ${MOCKOON_JSON}
|
||||
Suite Teardown Stop Mockoon
|
||||
Test Timeout 120s
|
||||
|
||||
|
||||
*** Variables ***
|
||||
${MOCKOON_JSON} ${CURDIR}${/}restapi.json
|
||||
|
||||
${cmd} ${CENTREON_PLUGINS}
|
||||
... --plugin=apps::backup::veeam::vbem::restapi::plugin
|
||||
... --mode=list-jobs
|
||||
... --hostname=${HOSTNAME}
|
||||
... --api-username='username'
|
||||
... --api-password='password'
|
||||
... --proto='http'
|
||||
... --port=${APIPORT}
|
||||
|
||||
*** Test Cases ***
|
||||
list-jobs ${tc}
|
||||
[Tags] apps backup veeam vbem restapi list-jobs
|
||||
|
||||
${command} Catenate
|
||||
... ${cmd}
|
||||
... ${extraoptions}
|
||||
|
||||
Ctn Verify Command Output ${command} ${expected_result}
|
||||
|
||||
Examples: tc extraoptions expected_result --
|
||||
... 1 --timeframe='' List jobs: [uid: urn:veeam:Job][jobName: Backup client 2 - Tous les jours][jobType: Backup] [uid: urn:veeam:Job:xxxxxxxx-yyyy-zzzz-1111-aaaaaaaaaaaa][jobName: PROD Job 1][jobType: Backup]
|
Loading…
x
Reference in New Issue
Block a user