From 404b42efb62596a8b781349bea40f57fae3eca0c Mon Sep 17 00:00:00 2001 From: omercier Date: Mon, 24 Jun 2024 16:22:08 +0200 Subject: [PATCH] fix(tests): various changes - improved troubkeshooting of pod_spell_check.t - fixed a typo on TRendMicro - Added missing stopwords for HyperV --- .github/scripts/pod_spell_check.t | 7 ++++--- src/apps/trendmicro/iwsva/snmp/plugin.pm | 2 +- tests/resources/spellcheck/stopwords.t | 8 +++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/scripts/pod_spell_check.t b/.github/scripts/pod_spell_check.t index 3aef6bb8a2..8d6790446f 100644 --- a/.github/scripts/pod_spell_check.t +++ b/.github/scripts/pod_spell_check.t @@ -5,7 +5,7 @@ use Test::More; use Test::Spelling; if (!@ARGV) { - die "Missing perl file to check."; + die "Usage: perl pod_spell_check.t module.pm stopwords.t"; } my $stopword_filename='tests/resources/spellcheck/stopwords.t'; @@ -14,9 +14,10 @@ if(defined($ARGV[1])){ } open(FILE, "<", $stopword_filename) or die "Could not open $stopword_filename"; -printf("stopword file use : ".$stopword_filename." \n"); +printf("Using dictionary: ".$stopword_filename." \n"); add_stopwords(); +close(FILE); set_spell_cmd('hunspell -l'); all_pod_files_spelling_ok($ARGV[0]); -close(FILE); + diff --git a/src/apps/trendmicro/iwsva/snmp/plugin.pm b/src/apps/trendmicro/iwsva/snmp/plugin.pm index 2e46ac9a7e..17075b4581 100644 --- a/src/apps/trendmicro/iwsva/snmp/plugin.pm +++ b/src/apps/trendmicro/iwsva/snmp/plugin.pm @@ -50,6 +50,6 @@ __END__ =head1 PLUGIN DESCRIPTION -Check TendMicro Iwsva equipments in SNMP. +Check TrendMicro Iwsva equipments in SNMP. =cut diff --git a/tests/resources/spellcheck/stopwords.t b/tests/resources/spellcheck/stopwords.t index a87a95d6b1..6b3f01c6dc 100644 --- a/tests/resources/spellcheck/stopwords.t +++ b/tests/resources/spellcheck/stopwords.t @@ -5,6 +5,7 @@ --exclude-fs --filter-fs --filter-vdom +--filter-vm --force-counters32 --force-counters64 --force-oid @@ -13,6 +14,9 @@ --oid-display --oid-extra-display --oid-filter +-EncodedCommand +-InputFormat +-NoLogo 2c ADSL Avigilon @@ -45,6 +49,7 @@ out-mcast out-ucast perfdata powershell +powershell.exe proto psu queue-messages-inflighted @@ -58,8 +63,9 @@ timeframe topic-messages-inflighted total-oper-down total-oper-up -TendMicro +TrendMicro uptime VDSL2 Veeam +VM WSMAN