Thomas Gelf
c93b4b0a24
IcingaHostTest: missing lazy deps are Runtime ex.
2018-07-03 17:11:46 +02:00
Thomas Gelf
8c432285e7
Various: stick with default exceptions...
...
...IDE hints are annoying
2018-05-29 21:31:43 +02:00
Thomas Gelf
4b2546b14f
IcingaHostTest: fit new properties
...
refs #1359
2018-05-28 21:01:58 +02:00
Markus Frosch
4902f694c1
flapping: Migrate to Icinga 2.8.0 flapping properties
...
Existing property is dropped now, it never was used in director before.
refs #330
2018-01-15 10:10:33 +01:00
Thomas Gelf
19e51e15e4
IcingaObject: special treatment for groups
...
refs #1146
2017-08-31 22:42:25 +02:00
Thomas Gelf
ee247ab383
test/php: provide DB mostly everwhere...
...
...as template repository would otherwise complain. Also, fit new boolean
true rendering
2017-08-26 16:17:55 +02:00
Thomas Gelf
8e46c61d5d
IcingaHostTest: add check_timeout to enum
2017-07-14 13:21:42 +02:00
Thomas Gelf
b7a10d296c
phpcs: mostly new PSR-2 SpacingAfter/Before checks
2017-01-13 20:54:52 +01:00
Thomas Gelf
9e771f2d5a
Fix phpcs complaints
2017-01-13 19:47:54 +01:00
Thomas Gelf
fee8e7847d
IcingaHostTest: fix erroneous test
...
Code behaves correct now, the test wasn't up to date. However, it wasn't
failing as the object has been changed at runtime while the (at that time
already filled) internal lookup cache wasn't cleared. Woulnd't have had any
effect on real-world environments. However, it's fixed right now.
2016-11-14 13:39:20 +01:00
Thomas Gelf
a52e52b517
IcingaHostTest: temporarily skip broken test
2016-11-03 02:54:59 +01:00
Thomas Gelf
ad7c5bc997
IcingaHost: fix tests
2016-10-25 00:30:12 +00:00
Corentin Ardeois
e7bd4343b5
Add support for Apply for rules in services
...
Apply for rules are defined through `apply_for` property
Only Array custom variables will be eligible in apply_for dropdown.
API Example:
```bash
./director-curl POST director/service?name=my_service '{"apply_for": "for (checked_tcp_port in host.vars.checked_tcp_ports)" }'
```
Will render as:
```
apply Service "my_service" for (checked_tcp_port in host.vars.checked_tcp_ports) {
...
}
```
Feature: https://dev.icinga.org/issues/11976
Depends-On: https://github.com/Icinga/icingaweb2-module-director/pull/20
refs #11976
2016-10-22 06:00:54 +00:00
Thomas Gelf
89f86abdda
IcingaHostTest: remove obsolete workaround
2016-10-09 13:15:51 +00:00
Thomas Gelf
439757d464
IcingaHost: introduce API keys
2016-07-26 09:52:55 +02:00
Thomas Gelf
15acbb5290
IcingaObject::replaceWith: implement preserve...
...
...and add related tests, as this is a tricky one
2016-07-14 17:06:48 +02:00
Thomas Gelf
123b4c7549
tests: be resiliant to adjusted master zone
2016-05-26 01:33:55 +02:00
Thomas Gelf
1158409eeb
IcingaObject: fix rendering target and tests
2016-05-02 10:23:32 +02:00
Thomas Gelf
df8926a420
test/php: add new host/service render target checks
2016-04-20 10:20:13 +02:00
Thomas Gelf
41b909e64e
IcingaHostTest: fix delete order for failing test
2016-03-15 20:44:36 +01:00
Thomas Gelf
bbd96fd375
IcingaHostTest: more tests
2016-03-08 21:24:42 +01:00
Thomas Gelf
8cb84c7735
IcingaHostTest: skip db-related test with no db
2016-03-08 09:25:43 +01:00
Thomas Gelf
407a47a6ec
IcingaHostTest: add a couple of tests...
...
...related to recently added lazy-loading capabilities
2016-03-08 09:20:27 +01:00
Thomas Gelf
f2a1ec91f7
test/php: allow to skip tests with db-dependency
2016-02-26 12:01:00 +01:00
Thomas Gelf
9bed3b7f8a
IcingaHostTest: ship rendered objects, compare
2016-02-25 21:46:51 +01:00
Thomas Gelf
75e2511f53
IcingaHostTest: add various persistance tests...
...
...for custom vars
2016-02-25 20:27:59 +01:00
Thomas Gelf
682c2619d4
IcingaHostTest: add Icinga Host object tests
2016-02-25 19:21:10 +01:00