-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zabbix_template: Fix the issue for the unicode strings doesn’t decode…
… in python2 (#322) * fix the issue for the unicode strings doesn’t decode in python2 * add the integration test for #314 * add changelog file * add the test for comparing the unicode #322 (comment)
- Loading branch information
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bugfixes: | ||
- zabbix_template - fixed the bug that it doesn't decode the Unicode in Python2 (https://github.com/ansible-collections/community.zabbix/pull/322). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/integration/targets/test_zabbix_template/files/template1_50_higher_decode_unicode.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"zabbix_export": { | ||
"version": "5.0", | ||
"groups": [ | ||
{ | ||
"name": "Templates" | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"template": "ExampleTemplate314", | ||
"name": "ExampleTemplate314", | ||
"description": "\u30c6\u30b9\u30c8\u30b3\u30e1\u30f3\u30c8", | ||
"groups": [ | ||
{ | ||
"name": "Templates" | ||
} | ||
], | ||
"items": [ | ||
{ | ||
"name": "test", | ||
"type": "ZABBIX_ACTIVE", | ||
"key": "logrt[\"/test.*test.log\",\"test.*total=([0-9.]+)\",,,skip,\\1]" | ||
} | ||
], | ||
} | ||
], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters