Skip to content

Commit

Permalink
test: readded assert result msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jan 2, 2024
1 parent 333d557 commit b5924f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
that:
- "result.failed == false"
- "result.changed == true"
- "result.msg == 'Dashboard test created'"

- name: Check import grafana dashboard from file idempotency
community.grafana.grafana_dashboard:
Expand All @@ -32,5 +33,6 @@
that:
- "result.failed == false"
- "result.changed == false"
- "result.msg == 'Dashboard test unchanged.'"

- ansible.builtin.include_tasks: delete-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
that:
- "result.failed == false"
- "result.changed == true"
- "result.msg == 'Dashboard test created'"

- name: Check import grafana dashboard from file idempotency
community.grafana.grafana_dashboard:
Expand All @@ -33,6 +34,7 @@
that:
- "result.failed == false"
- "result.changed == false"
- "result.msg == 'Dashboard test unchanged.'"

- ansible.builtin.include_tasks: dashboard-export.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
that:
- "result.failed == false"
- "result.changed == true"
- "result.msg == 'Dashboard Zabbix Host Status created'"

- name: Check import grafana dashboard from id idempotency
community.grafana.grafana_dashboard:
Expand All @@ -30,5 +31,6 @@
that:
- "result.failed == false"
- "result.changed == false"
- "result.msg == 'Dashboard Zabbix Host Status unchanged.'"

- ansible.builtin.include_tasks: delete-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
that:
- "result.failed == false"
- "result.changed == true"
- "result.msg == 'Dashboard Zabbix Host Status created'"

- name: Check import grafana dashboard from url idempotency
community.grafana.grafana_dashboard:
Expand All @@ -28,5 +29,6 @@
that:
- "result.failed == false"
- "result.changed == false"
- "result.msg == 'Dashboard Zabbix Host Status unchanged.'"

- ansible.builtin.include_tasks: delete-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
that:
- "result.failed == false"
- "result.changed == true"
- "result.msg == 'Dashboard {{ result.uid }} deleted'"

0 comments on commit b5924f7

Please sign in to comment.