Commit graph

13 commits

Author SHA1 Message Date
Yonas Habteab
7497d4c317 tests: retry deferred test assertion in t.Cleanup
Just like all other test assertions, this one should also be retried
until it succeeds or times out. It seems this wasn't a problem before,
but with the upcoming changes to Icinga 2.16, this assertion will fail
occasionally since the queries are now sent with a bit of delay. By
retrying the assertion, we can ensure that it will eventually succeed
once the queries are processed or time out after a reasonable period.
2026-03-16 10:05:41 +01:00
Yonas Habteab
6954dc4e6e tests: fix SQL syntax error with postgres adapter 2025-06-10 14:16:14 +02:00
Yonas Habteab
b32379a1be Make is_acknowledged a boolenum & add is_sticky_acknowledgement 2025-06-05 14:23:23 +02:00
Yonas Habteab
2356ffbed3 Add integration tests for dependency syncs 2025-04-04 12:16:14 +02:00
Eric Lippmann
e31b101f4f Upgrade go-redis to v9
Co-Authored-By: Alvar Penning <alvar.penning@icinga.com>
2024-03-22 15:32:15 +01:00
Yonas Habteab
23ac5914aa Add empty custom vars test cases 2023-06-29 13:43:33 +02:00
Julian Brost
5cbaac5cbc Fix tests for new icinga2 master
A recent change in icinga2 [1] prevents modifying some object attributes via
the API, most notably those that influence the name of the object. Previously,
the tests would also include these attributes in the POST requests that modify
the objects (but with the same value as before), something that is now
rejected.  Therefore, this commits allows to label attributes as "nomodify" so
that they won't be sent in this case.

[1]: https://github.com/Icinga/icinga2/pull/9407
2022-10-12 15:37:54 +02:00
Yonas Habteab
a89e82b794 Fix integration tests 2022-05-31 17:05:51 +02:00
Julian Brost
02fd728579 Port integration tests to PostgreSQL 2022-03-15 15:17:19 +01:00
Noah Hilverling
40c3c29af2 Integration tests: Add notifications and improve user runtime updates 2021-11-12 18:49:43 +01:00
Eric Lippmann
87832d43bd Enable tests for custom var flat runtime sync 2021-10-26 09:31:41 +02:00
Julian Brost
47bc17f7d8
Update icinga-testing and use new features (#362)
The new version deploys its own ApiUser so there is no more need to do this
here and also waits for reloads to finish, so no more need for some sleeps.
2021-09-09 13:52:45 +02:00
Julian Brost
2f3e4ae93b Start adding integration tests 2021-09-02 10:15:21 +02:00