Skip to content

Commit 53b7789

Browse files
Adding a test that checks that collectd memory limit set to 512Mb (infrawatch#227)
* Adding a test that checks that collectd memory limit set to 512Mb Co-authored-by: Emma Foley <[email protected]>
1 parent df471b4 commit 53b7789

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

roles/test_collectd/tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@
2828
register: stat
2929
changed_when: false
3030
failed_when: stat.stdout_lines|length == 0
31+
32+
- name: TEST Check collectd memory limit
33+
ansible.builtin.shell: |
34+
{{ container_bin }} inspect {{ collectd_container_name }} | grep -i \"Memory\"
35+
register: memory
36+
changed_when: false
37+
failed_when: not "536870912" in memory.stdout
38+

0 commit comments

Comments
 (0)