Commit Graph

601 Commits

Author SHA1 Message Date
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
Michael Friedrich b0eb02743f Remove legacy test samples 2018-03-21 19:47:58 +01: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
Noah Hilverling bd6e65374d Add test for method transformEmptyValuesToNull
refs #2751
2017-11-09 11:57:59 +01:00
Markus Frosch cf4c83011f travis: Update phpcs to 3.0.2
And install phpcbf
2017-11-08 09:59:33 +01:00
Alexander A. Klimov 2cced5fe13 Implement local file storage 2017-11-06 10:33:54 +01:00
Markus Frosch 2e94bec22c travis: Enable ldap PHP module for PHP 5.3 2017-10-23 10:35:29 +02:00
Markus Frosch 28b1a00d4a LdapUtils: Add isDN function 2017-10-20 15:17:11 +02:00
Eric Lippmann 010db92c88 Add # to the filter test
refs #2936
2017-09-20 15:16:41 +02:00
Markus Frosch 593fd485f6 Add travis testing 2017-06-13 11:07:16 +02:00
Eric Lippmann 50971ea8e2 Merge pull request #2725 from Icinga/bugfix/browser-timezone-detection-2716
TimezoneDetect: support also negative timezone offsets
2017-06-02 09:32:59 +02:00
Eric Lippmann 302e559aab Merge pull request #2750 from Icinga/bugfix/click-on-host-in-service-grid-invalid-filter-2523
Servicegrid: assemble filters with the Filter class
2017-03-28 10:22:11 +02:00
Johannes Meyer 73e24302c0 Make running unittests with the icingacli work in package installations
fixes #2787
2017-03-09 11:36:35 +01:00
Alexander A. Klimov 24c8a924e6 Add FilterTest::testSpecialCharacterEscaping()
refs #2523
2017-02-13 13:09:12 +01:00
Alexander A. Klimov 1e58e15ac7 Test TimezoneDetect
refs #2716
2017-02-10 15:42:02 +01:00
Johannes Meyer 181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Johannes Meyer 59cadde485 UrlTest: Fix skipped test 2017-01-23 14:59:58 +01:00
Eric Lippmann 07e9338830 Fix filter test matching old icinga.org URLS
refs #2687
2017-01-18 13:25:09 +01:00
Michael Friedrich 08a82daea3 Update to icinga.com
refs #2687
2017-01-18 12:04:43 +01:00
Thomas Gelf 9c7fb06904 DbStoreTest: pass an exception message 2017-01-04 18:12:56 +01:00
Thomas Gelf 8f25dc3539 Bug11831Test: fix PHP 5.3 compatibility 2017-01-04 18:07:57 +01:00
Noah Hilverling e4324605bc Merge branch 'bugfix/username-and-password-not-being-passed-in-navigation-item-urls-12133'
fixes #12133
2016-10-20 09:30:54 +02:00
Noah Hilverling a84e0c4d84 UrlTest: Add additional test cases
refs #12133
2016-10-19 13:12:55 +02:00
Noah Hilverling 011bce0909 UrlTest: Use getBasePath instead of getBaseUrl
refs #12133
2016-10-18 14:12:38 +02:00
Jennifer Mourek 7df6e6cb63 UrlTest: Fix method name and PSR issue
refs #12133
2016-10-17 14:57:30 +02:00
Jennifer Mourek d0b93b064c UrlTest: Test whether getAbsoluteUrl returns the given username and password
refs #12133
2016-10-17 14:46:58 +02:00
Alexander A. Klimov 99866bfdbe IniWriterTest: make recently added tests more expressive
refs #11743
2016-10-17 13:51:58 +02:00
Alexander A. Klimov 58b2e6c00f Add unit tests for the fixed IniWriter implementation
refs #11743
2016-10-12 13:41:42 +02:00
Eric Lippmann 529ba8ed8a Use the query's iterator instead fetchAll() on CSV export
fixes #12723
2016-10-11 09:53:21 +02:00
Thomas Gelf 2b50f6ff10 FilterExpression: render boolean true as such
fixes #12299
2016-08-03 13:03:08 +00:00
Eric Lippmann 54b43efb33 Fix exception if module.info contains newlines that are not part of the module's description
fixes #11831
2016-06-06 16:21:10 +02:00
Alexander A. Klimov 589da9bcd1 monitoring: Apply custom variable restrictions
refs #10965
2016-04-13 15:43:42 +02:00
Alexander A. Klimov 474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann 7fd575080e PHP7: Rename String to StringHelper
refs #10251
2016-01-27 16:46:55 +01:00
Eric Lippmann f876ed00f0 Revert "Fix test Icinga/File/CsvTest.php because the method being tested has been changed"
This reverts commit 23baa0dc83.
2016-01-27 15:45:37 +01:00
Eric Lippmann 2e3082a75a Skip Hook tests 2015-11-16 13:18:03 +01:00
Eric Lippmann 8f8d251fd7 Use old class loader for tests (WIP)
:D
2015-11-13 17:33:23 +01:00
Johannes Meyer 85e7e7920a Url: Fix detection of the current base url when stripping it from a given path 2015-10-01 10:42:28 +02:00
Johannes Meyer 7321d67b4f Url: Consider urls with a leading slash as absolute..
..and make it possible to have a url without a base.

refs #5600
2015-09-22 14:14:41 +02:00
Johannes Meyer d1fa5e8fce DashboardTest: Drop test testLoadPaneItemsProvidedByEnabledModules
refs #5600
2015-09-16 14:44:31 +02:00
Eric Lippmann bb80347a36 Fix failing form test
Form::isSubmitted() now also checks the request method.
2015-09-07 13:56:03 +02:00
Eric Lippmann 234dc951d2 Remove the is_dir check from the ClassLoader
refs #5786
2015-08-18 09:32:00 +02:00
Eric Lippmann 5ecde41ba3 Rename LoaderTest to ClassLoaderTest
refs #5786
2015-08-18 09:31:26 +02:00
Eric Lippmann 13fc7e16f2 Rename Loader to ClassLoader
refs #5786
2015-08-18 09:06:58 +02:00
Eric Lippmann 7563a7a0ba Rename Loader::unRegister() to Loader::register() 2015-08-17 14:34:39 +02:00
Matthias Jentsch fe805c82ca Support multi line values in INI files 2015-08-10 15:15:40 +02:00
Matthias Jentsch aa3cc9847d Fix issue that bricked the dashboard when quotes in dashlets
Escape more special chars in IniWriter, support reading escaped readers in IniParser and add tests for all important escape cases.
2015-08-07 12:55:19 +02:00
Matthias Jentsch f8e2dc850c Drop IniEditor and clean up IniWriter
Replace the ini editor code with a new parser implementation that manipulates a DOM. Do not support capabillities that are no longer needed, like nested configurations, section inheritance, section-less properties.
2015-08-05 18:10:17 +02:00
Matthias Jentsch bc14e227ec Remove unused unit tests for extending sections 2015-08-04 15:17:21 +02:00
Matthias Jentsch d88c628b6b Escape section names before applying regex
refs #9530
2015-08-04 13:14:46 +02:00
Eric Lippmann 7cfc78558d Merge branch 'master' into feature/secure-modules-9644
Conflicts:
	library/Icinga/Exception/IcingaException.php
2015-07-28 13:42:02 +02:00
Johannes Meyer 2c4b6eb915 ResourceConfigForm: Replace isValid- with inspectResource()
refs #7588
2015-07-24 14:24:11 +02:00
Johannes Meyer 75a48a3b35 Drop LdapBackendFormTest
It's redundant now, we should test the inspection code directly instead.
2015-07-24 10:51:46 +02:00
Johannes Meyer f8f8a4c848 Drop DbBackendFormTest
It's redundant now, we should test the inspection code directly instead.
2015-07-24 10:51:33 +02:00
Eric Lippmann 75147d6c62 Provide a test user in the SearchDashboardTest
refs #9644
2015-07-23 13:01:05 +02:00
Eric Lippmann b38b3b35b7 Provide a test user in the DashboardTest
refs #9644
2015-07-23 13:00:23 +02:00
Eric Lippmann 910dee199f Fix form test 2015-07-22 14:21:53 +02:00
Johannes Meyer cecd94be50 Merge branch 'master' into feature/support-for-file-uploads-8758 2015-07-22 08:47:24 +02:00
Johannes Meyer b4214dcf32 FormTest: getRedirectUrl now returns an instance of Icinga\Web\Url 2015-07-21 16:49:59 +02:00
Matthias Jentsch 9ba4189617 fix coding guideline violations 2015-07-16 16:27:28 +02:00
Matthias Jentsch 6d209ee203 Fix unit DB Form unit tests broken by inspection
refs #9641
2015-07-16 16:22:13 +02:00
Matthias Jentsch 31618ce2cf Fix unit DB Form unit tests broken by inspection
refs #9641
2015-07-16 16:15:27 +02:00
Matthias Jentsch da5ceb0e73 Fix broken unit tests
Fix unit tests that were broken by API changes to the resource form classes and contemplate life choices.

refs #9630
2015-07-16 12:54:37 +02:00
Johannes Meyer a8ac420897 LdapConnection: Establish a connection lazily 2015-07-10 09:51:39 +02:00
Johannes Meyer c3ad7b211a Ldap\Connection: Rename to LdapConnection
refs #8954
2015-06-24 09:05:29 +02:00
Johannes Meyer 77148b6892 IniWriterTest: Remove forgotten var_dump()
...
2015-06-23 16:59:55 +02:00
Johannes Meyer 6ef0af8927 Fix LdapResourceFormTest 2015-06-23 16:56:34 +02:00
Matthias Jentsch 3600e1088c Fix key and value sanitazion in ini writer 2015-06-08 13:11:40 +02:00
Johannes Meyer e66f8731af UserBackendConfigForm: Allow to configure user backends of type msldap
fixes #9355
2015-06-05 17:20:31 +02:00
Johannes Meyer 267e71f38b User: Consider the required permission more important if it has a wildcard
refs #9202
2015-06-02 12:01:02 +02:00
Johannes Meyer cd0c418854 Merge branch 'master' into feature/user-and-group-management-8826 2015-06-02 10:44:13 +02:00
Johannes Meyer 2490d0ae67 ConfigController: We're configuring user backends from now on
refs #8826
2015-06-02 09:58:57 +02:00
Matthias Jentsch 4c6a2b4f06 Fix ini writer unit tests
refs #8706
2015-06-01 16:46:52 +02:00
Johannes Meyer ec556edc65 Merge branch 'master' into feature/user-and-group-management-8826 2015-05-26 09:28:35 +02:00
Eric Lippmann 54577d04bd Merge branch 'master' into bugfix/time-formatting-6778
Conflicts:
	modules/monitoring/application/views/scripts/list/comments.phtml
	modules/monitoring/application/views/scripts/list/hostgroups.phtml
	modules/monitoring/application/views/scripts/process/info.phtml
	modules/monitoring/application/views/scripts/show/components/downtime.phtml
	modules/monitoring/application/views/scripts/show/components/notifications.phtml
	modules/monitoring/public/css/module.less
2015-05-21 14:57:01 +02:00
Johannes Meyer fb07f0b94c Merge branch 'master' into feature/user-and-group-management-8826
Conflicts:
	library/Icinga/Authentication/Backend/LdapUserBackend.php
	library/Icinga/Protocol/Ldap/Query.php
2015-05-19 14:14:03 +02:00
Eric Lippmann 5b3957baca Drop the DateTimeRendererTest
refs #6778
2015-05-19 12:46:33 +02:00
Eric Lippmann 15b2e873b2 Drop the DateTimeFactoryTest
refs #6778
2015-05-19 11:27:56 +02:00
Eric Lippmann 82ee1d6e60 Merge branch 'master' into bugfix/significant-whitespaces-8777
Conflicts:
	library/Icinga/Web/Widget/FilterEditor.php
2015-05-18 13:35:28 +02:00
Johannes Meyer c91d3e52ac Merge branch 'master' into feature/user-and-group-management-8826 2015-05-12 15:39:02 +02:00
Alexander Fuhr 891ce0fe57 UserTest: Fix wrong assert condition for wildcard 2015-05-07 17:19:00 +02:00
Johannes Meyer e228404bf4 Adjust ConfigObjectTest as ConfigObjects are not countable anymore
They are of course still indirectly countable, by using Config::count() or
ConfigObject::select()::count().
2015-05-05 15:36:15 +02:00
Alexander Fuhr 612fefba9c Fix the permission wildcards assertion
fixes #9202
2015-05-05 12:36:26 +02:00
Johannes Meyer 9163fb0f0f Drop Icinga\Protocol\Ldap\ConnectionTest
...located at *test*/php/library/Icinga/Protocol/Ldap/.
2015-05-04 13:40:54 +02:00
Johannes Meyer 100d475b58 Fix ldap ConnectionTest
If I ever have to look at this test again, I'll drop it.

refs #8826
2015-05-04 13:25:07 +02:00
Johannes Meyer c441117324 LdapUserBackend: Extend Repository and implement UserBackendInterface
refs #8826
2015-05-04 12:18:25 +02:00
Johannes Meyer 99ac0b78ea DbUserBackend: Extend DbRepository and implement UserBackendInterface
refs #8826
2015-05-04 12:15:05 +02:00
Johannes Meyer 5baa0590b1 Ldap\Query: Extend SimpleQuery and add missing documentation
refs #8826
refs #8955
2015-05-04 11:26:27 +02:00
Johannes Meyer d09ea2845d Merge branch 'master' into feature/user-and-group-management-8826 2015-04-30 15:20:40 +02:00
Johannes Meyer 034421d0cb Fix form tests utilizing Mockery's partial mock functionality
Since an update of Mockery, partial mocks do not call the constructor
of their mocked classes anymore without explicitly passing a non empty
array. This is a regression of the following bug:
https://github.com/padraic/mockery/issues/144
2015-04-30 15:20:19 +02:00
Johannes Meyer adae7b34c1 Fix DbBackendFormTest and LdapBackendFormTest
refs #8826
2015-04-22 10:36:37 +02:00
Eric Lippmann 09acddb3b7 Fix filter tests not taking whitespaces into account
refs #8777
2015-04-08 10:18:42 +02:00