Skip to content

Commit

Permalink
improve some assert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Apr 17, 2024
1 parent 423f990 commit 6c41c29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@
that:
- netdata_agent_channel is defined
- netdata_agent_channel is string
- netdata_agent_channel in ['stable', 'edge']
quiet: true

- name: "Test if netdata_agent_state is set correctly"
ansible.builtin.assert:
that:
- netdata_agent_state is defined
- netdata_agent_state is string
- netdata_agent_state in ['present', 'absent']
quiet: true

- name: "Test if netdata_agent_conf_template is set correctly"
Expand Down

0 comments on commit 6c41c29

Please sign in to comment.