diff --git a/CHANGELOG.md b/CHANGELOG.md index bc7879f..133a0f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ le projet suit SemVer. ## [Non publié] +### Tests + +- Couverture des sorties `victorialogs` (#14) et `http` (#24) remontée à + 100 % (audit du 04/11 : 94 % et 97 %) : santé `http` en 5xx et en 4xx, + aide `_liste_virgules` ; garde-fou de `mode` redondant avec le schéma + commun retiré de `VictoriaLogsOutput`. + ### Sécurité - Identifiants écrits dans l'URL masqués dans les journaux (#5, audit du diff --git a/lang/ar_AR.po b/lang/ar_AR.po index 6410441..6a445ca 100644 --- a/lang/ar_AR.po +++ b/lang/ar_AR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/bn_BD.po b/lang/bn_BD.po index 4ac3abd..569408e 100644 --- a/lang/bn_BD.po +++ b/lang/bn_BD.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/cs_CZ.po b/lang/cs_CZ.po index 57a0955..34086d6 100644 --- a/lang/cs_CZ.po +++ b/lang/cs_CZ.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/da_DK.po b/lang/da_DK.po index a444808..1fea61b 100644 --- a/lang/da_DK.po +++ b/lang/da_DK.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/de_DE.po b/lang/de_DE.po index 75a7cf4..ede6da2 100644 --- a/lang/de_DE.po +++ b/lang/de_DE.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/el_GR.po b/lang/el_GR.po index 0a54954..162fe63 100644 --- a/lang/el_GR.po +++ b/lang/el_GR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/en_US.po b/lang/en_US.po index 0e30f29..9cbfab6 100644 --- a/lang/en_US.po +++ b/lang/en_US.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: deusyv\n" "Language-Team: English\n" @@ -647,10 +647,6 @@ msgstr "transport: network failure after {} attempt(s)" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "victorialogs output: list of fields expected, got {}" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "victorialogs output: unknown mode {} (bulk or jsonline)" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" @@ -872,6 +868,9 @@ msgstr "uuid ignored: missing target option" #~ msgid "options inconnues pour cette sortie : {}" #~ msgstr "unknown options for this output: {}" +#~ msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" +#~ msgstr "victorialogs output: unknown mode {} (bulk or jsonline)" + #~ msgid "Âge maximal d'un fichier rotaté" #~ msgstr "Maximum age of a rotated file" diff --git a/lang/fa_IR.po b/lang/fa_IR.po index da385ea..96047ff 100644 --- a/lang/fa_IR.po +++ b/lang/fa_IR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/fi_FI.po b/lang/fi_FI.po index 0686086..b0e2ba3 100644 --- a/lang/fi_FI.po +++ b/lang/fi_FI.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/fr_FR.po b/lang/fr_FR.po index 94f6a7f..be161e9 100644 --- a/lang/fr_FR.po +++ b/lang/fr_FR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/he_IL.po b/lang/he_IL.po index 03024e0..79d0034 100644 --- a/lang/he_IL.po +++ b/lang/he_IL.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/hi_IN.po b/lang/hi_IN.po index a8a8202..04bd87c 100644 --- a/lang/hi_IN.po +++ b/lang/hi_IN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/hu_HU.po b/lang/hu_HU.po index de03037..3037898 100644 --- a/lang/hu_HU.po +++ b/lang/hu_HU.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/id_ID.po b/lang/id_ID.po index acd4841..0308a8f 100644 --- a/lang/id_ID.po +++ b/lang/id_ID.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/it_IT.po b/lang/it_IT.po index 361afcb..cdcc1dc 100644 --- a/lang/it_IT.po +++ b/lang/it_IT.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/ja_JP.po b/lang/ja_JP.po index e84114b..55908ed 100644 --- a/lang/ja_JP.po +++ b/lang/ja_JP.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/ko_KR.po b/lang/ko_KR.po index b5f4e71..9ae0280 100644 --- a/lang/ko_KR.po +++ b/lang/ko_KR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/locale/en_US/LC_MESSAGES/pystashtemplate.mo b/lang/locale/en_US/LC_MESSAGES/pystashtemplate.mo index af987aa..55dd03f 100644 Binary files a/lang/locale/en_US/LC_MESSAGES/pystashtemplate.mo and b/lang/locale/en_US/LC_MESSAGES/pystashtemplate.mo differ diff --git a/lang/messages.pot b/lang/messages.pot index c6e9267..dde17ec 100644 --- a/lang/messages.pot +++ b/lang/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -643,10 +643,6 @@ msgstr "" msgid "transport : échec réseau après {} essai(s)" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/outputs/victorialogs.py msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" diff --git a/lang/nb_NO.po b/lang/nb_NO.po index 4c339ce..5cca585 100644 --- a/lang/nb_NO.po +++ b/lang/nb_NO.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/nl_NL.po b/lang/nl_NL.po index 6d5634c..446d8ec 100644 --- a/lang/nl_NL.po +++ b/lang/nl_NL.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/pl_PL.po b/lang/pl_PL.po index e005d36..39caba2 100644 --- a/lang/pl_PL.po +++ b/lang/pl_PL.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/pt_BR.po b/lang/pt_BR.po index 7fe3e04..de35a7a 100644 --- a/lang/pt_BR.po +++ b/lang/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/ro_RO.po b/lang/ro_RO.po index 7c23c8a..661fc13 100644 --- a/lang/ro_RO.po +++ b/lang/ro_RO.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/ru_RU.po b/lang/ru_RU.po index 7959016..c064709 100644 --- a/lang/ru_RU.po +++ b/lang/ru_RU.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/sv_SE.po b/lang/sv_SE.po index fa1db53..63e43b9 100644 --- a/lang/sv_SE.po +++ b/lang/sv_SE.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/th_TH.po b/lang/th_TH.po index 5ecc8e0..59ec0ef 100644 --- a/lang/th_TH.po +++ b/lang/th_TH.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/tr_TR.po b/lang/tr_TR.po index 5128e39..f958835 100644 --- a/lang/tr_TR.po +++ b/lang/tr_TR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/uk_UA.po b/lang/uk_UA.po index b3d0f0b..122ff9b 100644 --- a/lang/uk_UA.po +++ b/lang/uk_UA.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/vi_VN.po b/lang/vi_VN.po index a8df5c4..f8e052e 100644 --- a/lang/vi_VN.po +++ b/lang/vi_VN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/lang/zh_CN.po b/lang/zh_CN.po index c4935c8..396b257 100644 --- a/lang/zh_CN.po +++ b/lang/zh_CN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: RsysLogstach\n" "Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n" -"POT-Creation-Date: 2026-11-04 21:47+0000\n" +"POT-Creation-Date: 2026-11-04 22:26+0000\n" "PO-Revision-Date: 2026-10-24 17:02+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -647,10 +647,6 @@ msgstr "" msgid "sortie victorialogs : liste de champs attendue, reçu {}" msgstr "" -#: src/pystashtemplate/outputs/victorialogs.py -msgid "sortie victorialogs : mode {} inconnu (bulk ou jsonline)" -msgstr "" - #: src/pystashtemplate/service.py #, python-brace-format msgid "entrée sflow : datagramme perdu erreur={error}" diff --git a/src/pystashtemplate/outputs/victorialogs.py b/src/pystashtemplate/outputs/victorialogs.py index 81e4a07..aedab10 100644 --- a/src/pystashtemplate/outputs/victorialogs.py +++ b/src/pystashtemplate/outputs/victorialogs.py @@ -119,9 +119,8 @@ def __init__( qui n'est ni une chaîne ni une liste. """ super().__init__(options, dlq=dlq, transport=transport) + # `mode` est déjà validé par le schéma commun (valeurs valides : MODES). self._mode = str(options.get("mode", "bulk")) - if self._mode not in MODES: - raise ValueError(_("sortie victorialogs : mode {} inconnu (bulk ou jsonline)").format(self._mode)) self._parametres: dict[str, str] = {} for option, (parametre, defaut) in _CHAMPS.items(): valeur = _liste_virgules(options.get(option, defaut)) diff --git a/tests/test_outputs_http.py b/tests/test_outputs_http.py index 7c8329b..f86005b 100644 --- a/tests/test_outputs_http.py +++ b/tests/test_outputs_http.py @@ -177,3 +177,36 @@ async def scenario() -> dict[str, Any]: assert asyncio.run(scenario()) == {"status": "joignable"} assert str(requetes[0].url) == "http://recepteur:8080/logs" assert requetes[0].method == "GET" + + +def test_health_en_5xx_leve() -> None: + # Joignable mais en erreur serveur : la santé échoue (#24). + s = HttpOutput( + {"url": "http://recepteur:8080/logs"}, + transport=httpx.MockTransport(lambda request: httpx.Response(503)), + ) + + async def scenario() -> None: + try: + await s.health() + finally: + await s.close() + + with pytest.raises(httpx.HTTPStatusError): + asyncio.run(scenario()) + + +def test_health_en_4xx_reste_joignable() -> None: + # Un 4xx prouve que le récepteur répond : pas d'erreur de santé. + s = HttpOutput( + {"url": "http://recepteur:8080/logs"}, + transport=httpx.MockTransport(lambda request: httpx.Response(405)), + ) + + async def scenario() -> dict[str, Any]: + try: + return await s.health() + finally: + await s.close() + + assert asyncio.run(scenario()) == {"status": "joignable"} diff --git a/tests/test_outputs_victorialogs.py b/tests/test_outputs_victorialogs.py index 75bb537..c42331c 100644 --- a/tests/test_outputs_victorialogs.py +++ b/tests/test_outputs_victorialogs.py @@ -116,13 +116,13 @@ async def scenario() -> None: def test_mode_inconnu_refuse() -> None: # Schéma commun (#8) : énumération validée à l'instanciation. - with pytest.raises(ValueError, match="valeurs valides : bulk, jsonline \(reçu : loki\)"): + with pytest.raises(ValueError, match=r"valeurs valides : bulk, jsonline \(reçu : loki\)"): sortie(FauxServeur(), mode="loki") def test_stream_fields_de_mauvais_type_refuse() -> None: # Schéma commun (#8) : type validé à l'instanciation (str ou liste). - with pytest.raises(ValueError, match="type str ou list ou tuple attendu \(reçu : int\)"): + with pytest.raises(ValueError, match=r"type str ou list ou tuple attendu \(reçu : int\)"): sortie(FauxServeur(), stream_fields=3) @@ -179,3 +179,14 @@ async def scenario() -> None: with pytest.raises(httpx.HTTPStatusError): asyncio.run(scenario()) + + +def test_liste_virgules_chaine_liste_et_type_refuse() -> None: + # Le schéma commun filtre déjà les types ; l'aide garde son propre contrat (#14). + from pystashtemplate.outputs.victorialogs import _liste_virgules + + assert _liste_virgules("host,app") == "host,app" + assert _liste_virgules(["host", "app"]) == "host,app" + assert _liste_virgules(("host",)) == "host" + with pytest.raises(ValueError, match="liste de champs attendue, reçu int"): + _liste_virgules(3)