Skip to content

Commit

Permalink
add the test for comparing the unicode #322 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-joker committed Feb 2, 2021
1 parent d083743 commit 875b77d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/targets/test_zabbix_template/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,19 @@
state: present
register: import_template_json

- name: Gather Zabbix template infomation.
zabbix_template_info:
server_url: "{{ zabbix_server_url }}"
login_user: "{{ zabbix_login_user }}"
login_password: "{{ zabbix_login_password }}"
template_name: ExampleTemplate314
format: json
register: gather_template_result

- assert:
that:
- import_template_json.changed is sameas true
- gather_template_result.template_json.zabbix_export.templates.0.description == "\u30c6\u30b9\u30c8\u30b3\u30e1\u30f3\u30c8"

- name: Delete Zabbix template.
zabbix_template:
Expand Down

0 comments on commit 875b77d

Please sign in to comment.