Skip to content

Commit

Permalink
Adding a test that checks that collectd memory limit set to 512Mb
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 19, 2025
1 parent 0452c14 commit 718f34a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/test_collectd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@
register: stat
changed_when: false
failed_when: stat.stdout_lines|length == 0

- name: TEST Check the collectd memory limit is set to 512Mb
ansible.builtin.shell: |
{{ container_bin }} inspect {{ collectd_container_name }} | grep 512 -c
register: memory
changed_when: false
failed_when: memory.stdout_lines|length == 0

0 comments on commit 718f34a

Please sign in to comment.