Commit Graph

18 Commits

Author SHA1 Message Date
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