Skip to content

Commit

Permalink
Merge pull request #610 from Checkmk/fix/module_rule_integration_tests
Browse files Browse the repository at this point in the history
Fix rule module integration tests.
  • Loading branch information
robin-checkmk committed Jun 3, 2024
2 parents eea4d50 + 82322f1 commit 81ff91f
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions tests/integration/targets/rule/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,25 @@ checkmk_var_rules:
}
value_raw: "{'magic': 0.8}"

- name: "CPU - Load."
ruleset: "checkgroup_parameters:cpu_load"
rule:
location:
folder: "/"
position: "bottom"
conditions: {
"host_labels": [],
"host_tags": [],
"service_labels": []
}
properties: {
"comment": "{{ ansible_date_time.iso8601 }} - Ansible managed",
"description": "",
"disabled": false
}
value_raw: "{'levels': (1.0, 2.0)}"
## With 2.3.0, the value_raw should contain "levels15", but with previous versions, it's
## only "levels". Let's reactivate this, once 2.2.0 is out of support.
# - name: "CPU - Load."
# ruleset: "checkgroup_parameters:cpu_load"
# rule:
# location:
# folder: "/"
# position: "bottom"
# conditions: {
# "host_labels": [],
# "host_tags": [],
# "service_labels": []
# }
# properties: {
# "comment": "{{ ansible_date_time.iso8601 }} - Ansible managed",
# "description": "",
# "disabled": false
# }
# value_raw: "{'levels15': (1.0, 2.0)}"

- name: "CPU - Utilization."
ruleset: "checkgroup_parameters:cpu_iowait"
Expand Down

0 comments on commit 81ff91f

Please sign in to comment.