From 595cad0006c2b93cdaf348eeac6dfb921a5dc1f6 Mon Sep 17 00:00:00 2001 From: omercier Date: Fri, 27 Dec 2024 16:45:42 +0100 Subject: [PATCH] fix another test issue --- src/apps/salesforce/restapi/custom/api.pm | 12 ++++++------ tests/resources/spellcheck/stopwords.txt | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/apps/salesforce/restapi/custom/api.pm b/src/apps/salesforce/restapi/custom/api.pm index bdf40e0f5a..f423f85008 100644 --- a/src/apps/salesforce/restapi/custom/api.pm +++ b/src/apps/salesforce/restapi/custom/api.pm @@ -112,7 +112,7 @@ sub request_api { $self->{output}->option_exit(); } if ($self->{http}->get_code() != 200) { - $self->{output}->add_option_msg(short_msg => "Connection issue: " . $decoded->{message}); + $self->{output}->add_option_msg(short_msg => "Connection issue: " . defined($decoded->{message}) ? $decoded->{message} : ''); $self->{output}->option_exit(); } @@ -125,11 +125,11 @@ __END__ =head1 NAME -SFDC API boilerplate +Monitor SFDC API boilerplate =head1 SYNOPSIS -Get informations from SFDC API +Get information from SFDC API =head1 REST API OPTIONS @@ -137,15 +137,15 @@ Get informations from SFDC API =item B<--hostname> -Set hostname to query (default: 'api.status.salesforce.com') +Define the hostname to query (default: C) =item B<--timeout> -Set HTTP timeout in seconds (default: '10'). +Define the HTTP timeout in seconds (default: '10'). =item B<--api-version> -API version (default: 'v1'). +Define the API version (default: 'v1'). =back diff --git a/tests/resources/spellcheck/stopwords.txt b/tests/resources/spellcheck/stopwords.txt index fa29d91d34..08e968088b 100644 --- a/tests/resources/spellcheck/stopwords.txt +++ b/tests/resources/spellcheck/stopwords.txt @@ -49,11 +49,11 @@ hashicorpvault HPE Huawei ifAlias -includeAllDisks ifDesc ifName IMEI in-bcast +includeAllDisks in-crc in-fcserror in-mcast @@ -128,6 +128,7 @@ RRDCached Sansymphony SAS scenarii +SFDC sfp.temperature SkyHigh SNMP @@ -144,8 +145,8 @@ Teldat timeframe TiMOS tmnxSasAlarmInputDescription -total-oper-up total-oper-down +total-oper-up TrendMicro tsdb-version UCD