408 Commits

Author SHA1 Message Date
Yonas Habteab
b619dd2186 Add activateEntry() & getActiveEntry() interface methods 2023-07-14 20:05:35 +02:00
Yonas Habteab
ee829fd4dc Unify error messages & add some class docblocks 2023-07-14 20:05:35 +02:00
Yonas Habteab
c147341648 Fix dashlet unit tests 2023-07-14 20:05:35 +02:00
Yonas Habteab
cc5e08da7d DashletTest: Add test for creating dashlets from multiple modules 2023-07-14 20:05:34 +02:00
Yonas Habteab
89b95d74bf Replace usage of LogicException with AlreadyExistsException where applicable 2023-07-14 20:05:34 +02:00
Yonas Habteab
395ae80186 Tests: Add remove Pane/Dashlet test cases 2023-07-14 20:05:34 +02:00
Yonas Habteab
0da632444c DashletTest: Remove unnecessary Dashboard::load() call 2023-07-14 20:05:34 +02:00
Yonas Habteab
8ef46f3789 HomeTest: Fix logic failure when asserting removed homes 2023-07-14 20:05:34 +02:00
Yonas Habteab
05fec9de89 Tests: Add more Dashlets/Pane use cases 2023-07-14 20:05:34 +02:00
Yonas Habteab
a81dfe1704 Tests: Avoid mocking ipl\Web\Url & add some additional dashboard tests 2023-07-14 20:04:31 +02:00
Yonas Habteab
8560b2ec3f Test: Introduce basic dashboard test cases 2023-07-14 20:04:31 +02:00
Yonas Habteab
c773ad3ac7 SearchDashboardTest: Adjust unit tests according to the new dashboards 2023-07-14 20:04:28 +02:00
Yonas Habteab
a78c221bfd Tests: Remove legacy DashboardTest class 2023-07-14 19:51:08 +02:00
Johannes Meyer
776e0803fa tests: The app is soon not mocked anymore, so don't use it as such 2023-07-04 16:26:36 +02:00
Johannes Meyer
e572652f4c ConfigTest: Always load test config from disk 2023-07-04 16:25:11 +02:00
Johannes Meyer
c9f3f0444d tests: Require view helpers at runtime 2023-07-04 16:24:19 +02:00
Johannes Meyer
b89da2f865 Visitor: Force light mode when printing pages 2022-12-07 11:57:48 +01:00
Eric Lippmann
e45c53ac3c Test nested LESS variables in minin calls 2022-06-30 12:15:01 +02:00
Yonas Habteab
1ec6913a04 Tests: Add less parser nested variables test cases 2022-06-30 12:15:01 +02:00
Sukhwinder Dhillon
8f0ac0492d Replace deprecated method DbConnection::getConnection() with DbConnection::getDbAdapter() 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon
d8895669b3 Remove class IniStoreTest 2022-05-27 13:55:48 +02:00
Sukhwinder Dhillon
213c60334a Rename class DbStoreTest to PreferencesStoreTest 2022-05-27 13:55:48 +02:00
Johannes Meyer
42815f02e6 Drop class Icinga\File\Storage\LocalFileStorageIterator 2022-03-24 12:27:20 +01:00
Eric Lippmann
0ce968bfda Deny light-mode definitions in selectors 2022-02-09 21:35:12 +01:00
Johannes Meyer
91c0ff9d05 LessParserTest: Test light mode collection 2022-02-09 21:35:12 +01:00
Johannes Meyer
38cc26eca5 tests: Introduce LessParserTest 2022-02-09 21:20:33 +01:00
Johannes Meyer
509d642982 tests: Introduce TemporaryLocalFileStorageTest
refs #4630
2022-01-11 12:48:34 +01:00
Johannes Meyer
0cbae3195e test: Remove testcase TranslatorTest 2021-05-28 14:03:36 +02:00
Johannes Meyer
384d9535a9 ArrayDatasource: Sort result first and then apply limit+offset 2021-04-12 15:42:20 +02:00
Johannes Meyer
e671324ddb tests: Don't use deprecated assertion assertRegExp() 2021-04-09 12:38:43 +02:00
Johannes Meyer
f27e872d90 tests: Don't make use of deprecated phpunit features 2021-04-09 12:38:43 +02:00
Johannes Meyer
cb87190138 tests: Add :void return type declarations 2021-04-09 12:38:43 +02:00
Johannes Meyer
87d741265e Auth: Add support for denied permissions 2021-02-18 11:11:39 +01:00
Johannes Meyer
b2f7c3788d test: Roles have permissions, not users 2021-02-18 11:11:39 +01:00
Johannes Meyer
766d73cb3f IniParserTest: Add case for php bug 76965
refs #3733
2019-04-17 09:59:54 +02:00
Johannes Meyer
f6f106faf2 tests: Update ini tests 2019-03-04 12:16:55 +01:00
Johannes Meyer
ed7ecb32a5 IniParser: Properly unescape special characters in section names and option values
refs #3648

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2019-02-05 11:30:55 +01:00
Markus Frosch
4081a85d90 Introduce Icinga\Util\Environment to manage limits
And replace the code in Icinga\File\Pdf with the new helper.
2018-12-05 15:42:48 +01:00
Johannes Meyer
f28f7150fc AuditHook: Enforce a named identity and allow to pass a explicit time 2018-07-18 14:45:00 +02:00
Eric Lippmann
faaff42096 Revert "Introduce PasswordHelper for safer passwords"
This reverts commit f57277aa96ce91a0e6761b04937447b9a2a9a679.

Since we're dropping PHP support for versions lower than 5.6 this class is no longer necessary.
2018-07-03 13:08:06 +02:00
Eric Lippmann
1a841170ff
Merge pull request #3419 from Icinga/feature/audit-module-2584
Feature/audit module 2584
2018-06-19 05:13:42 -04:00
Eric Lippmann
f905a978d8
Merge pull request #3309 from Icinga/bugfix/localfilestoragetest-error-handler
LocalFileStorageTest: restore error_reporting() level and error handler
2018-06-08 09:03:31 -04:00
Johannes Meyer
1f7d9def73 Introduce test AuditHookTest
refs #2584
2018-06-08 14:21:15 +02:00
Eric Lippmann
4bea67e756
Merge pull request #3315 from Icinga/bugfix/php-7-2-support-3185
Don't call session_start() after ini_set()
2018-05-07 05:44:52 -04:00
Johannes Meyer
1b15048636 Drop obsolete Icinga\Web\Menu classes
refs #2338
2018-04-27 14:28:20 +02:00
Alexander A. Klimov
dadd2c80f6 Don't call session_start() after ini_set()
refs #3185
2018-01-24 17:38:20 +01:00
Alexander A. Klimov
a504281248 LocalFileStorageTest: restore error_reporting() level and error handler
... not to cause side effects in other tests
2018-01-24 10:54:49 +01:00
Alexander A. Klimov
1b2f3cf280 Test ASN1
refs #2816
2018-01-18 15:25:34 +01:00
Markus Frosch
f57277aa96 Introduce PasswordHelper for safer passwords
refs #2954
2017-11-21 08:26:24 +01:00
Eric Lippmann
f0ad3d5188 Add more test cases to the transformEmptyValuesToNull() test
refs #2751
2017-11-09 12:06:15 +01:00