Markus Frosch
50521bdecb
ImportSourceRestApi: Add header and deeper extract_property
...
Allows a user to add additional headers, e.g. by setting a specific `Accept` or any authentication header.
Also `extract_property` now has a logic for deeper keys like "result.objects", "key.deeper_key.very_deep"
2020-06-06 19:17:02 +02:00
Thomas Gelf
95d68aefeb
IcingaService: enforce zone for apply rules
...
fixes #1621
fixes #1634
2019-09-25 14:36:45 +02:00
Markus Frosch
4b03821caf
BaseTestCase: Let db be accessed statically
...
E.g. from setUp and tearDown for class
2018-09-18 09:51:33 +02:00
Markus Frosch
0d00d5d97b
Add SyncTest abstract TestCase
...
So we have a common class to test various syncs
2017-08-30 16:40:12 +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
51e8af2266
BaseTestCase: be precise on type hint
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
8cc99f76d0
tests: simplify bootstrap, enforce PSR-2
2017-01-13 20:10:35 +01:00
Thomas Gelf
2ce84baa70
BaseTestCases: make 'em abstract to not be empty
2016-11-30 09:23:36 +01:00
Markus Frosch
d7ddb3e63c
Add IcingaObjectTestCase for testing IcingaObjects
2016-11-28 15:32:41 +01:00
Markus Frosch
9305f55e92
BaseTestCase: Support more resource settings via ENV
2016-11-03 10:19:44 +01:00
Markus Frosch
10ee7901c8
Add composer support for testing
2016-11-03 10:19:25 +01:00
Thomas Gelf
b996a684be
tests: refactor bootstrapping, initial Gitlab-CI..
...
...support. Currently expects three test-runners offering Debian Jessie,
Ubuntu 16.04 LTS (Xenial) and CentOS 7. Removed all dependencies on the
Icinga Web 2 test module, installing phpunit should suffice to run tests
in a normal environment.
This is a first attempt to make things easier, more to come.
2016-11-03 02:50:39 +01:00
Thomas Gelf
6c23a02252
Test: add test suite prototype and command
...
refs #12905
2016-11-02 19:30:11 +01:00
Thomas Gelf
bab23c8f9b
Form: split constructor to make tests easier
2016-10-27 16:31:04 +00:00
Thomas Gelf
2afacf3431
BaseTestCase: newObject helper method added
2016-03-08 21:25:27 +01:00
Thomas Gelf
f2233aeaff
BaseTestCase: apply migrations to test db
2016-02-29 17:34:48 +01:00
Thomas Gelf
55dd6e5a5a
BaseTestCase: improve db handling
2016-02-27 02:03:24 +01:00
Thomas Gelf
77804d2b37
BaseTestCase: provide db for our tests
2016-02-25 19:01:48 +01:00
Thomas Gelf
e9152f2f3d
BaseTestCase: bootstrap only once
2016-02-25 18:31:00 +01:00
Thomas Gelf
9cd5f46a68
BaseTestCase: add simple test bootstrapping
2016-02-25 18:23:05 +01:00