-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/enhance icingadb retention config (#253)
* added retention config variables * added local tests, added testinfra test for configs * added test for default build * added documentation for the variables * added changelog fragment
- Loading branch information
1 parent
ae4e337
commit 00d0608
Showing
8 changed files
with
94 additions
and
15 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelogs/fragments/feature_enhance_icingadb_retention_configs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
minor_changes: | ||
- "Enhance IcingaDB retention configs #200" | ||
- "Added tests for retention configs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
molecule/default/tests/integration/test_icingadb_retentions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Vars in host_vars | ||
|
||
def test_icingadb_config(host): | ||
i2_file = host.file("/etc/icingadb/config.yml") | ||
assert i2_file.is_file | ||
assert i2_file.contains(' history-days: 10') | ||
assert i2_file.contains(' sla-days: 11') | ||
assert i2_file.contains(' acknowledgement: 20') | ||
assert i2_file.contains(' comment: 30') | ||
assert i2_file.contains(' state: 60') | ||
assert i2_file.contains(' downtime: 10') | ||
assert i2_file.contains(' notification: 4') | ||
assert i2_file.contains(' flapping: 2') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
molecule/local-default/tests/integration/test_icingadb_retentions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def test_icingadb_config(host): | ||
i2_file = host.file("/etc/icingadb/config.yml") | ||
assert i2_file.is_file | ||
assert i2_file.contains(' history-days: 10') | ||
assert i2_file.contains(' sla-days: 11') | ||
assert i2_file.contains(' acknowledgement: 20') | ||
assert i2_file.contains(' comment: 30') | ||
assert i2_file.contains(' state: 60') | ||
assert i2_file.contains(' downtime: 10') | ||
assert i2_file.contains(' notification: 4') | ||
assert i2_file.contains(' flapping: 2') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters