Debian Codegraph @

ansible_collections/community/grafana/tests/integration/targets/grafana_datasource/tasks/errors.yml

raw
1 ---
2 - name: Create datasource without `ds_type` and `ds_url` (expect failure)
3 register: result
4 community.grafana.grafana_datasource:
5 name: datasource-postgres
6 ignore_errors: true
7
8 - ansible.builtin.debug:
9 var: result
10
11 - ansible.builtin.assert:
12 that:
13 - not result.changed
14 - result.failed
15 - "result.msg == 'state is present but all of the following are missing: ds_type, ds_url'"