110 Commits

Author SHA1 Message Date
Jannis Moßhammer
780ea68f2f Remove abandoned files from tests
The deleted files were incomplete tests for non-existing files,
so they don't affect the build process

refs #4310
2013-06-14 09:38:11 +02:00
Marius Hein
5e14f828ba Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Fix PSR compliance.

refs #4256
2013-06-13 11:59:48 +02:00
Marius Hein
56844306c3 Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Add test for Icinga_Web_Paginator_ScrollingStyle_SlidingWithBorder

refs #4256
2013-06-13 11:59:48 +02:00
Marius Hein
9657ba565e Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Add test for paginator/QueryAdapter

refs #4256
2013-06-13 11:59:48 +02:00
Marius Hein
f19934ef39 Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Drop cookie class because implemented in auth

refs #4256
2013-06-13 11:59:48 +02:00
Marius Hein
ee6d95b496 Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Drop class Cookie because no implementation is made

refs #4256
2013-06-13 11:59:48 +02:00
Marius Hein
c13208a0f8 Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Add AbstractWidgetTest

refs #4256
2013-06-13 11:59:47 +02:00
Marius Hein
c98be3ef73 Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Add test for Widget.

refs #4256
2013-06-13 11:59:47 +02:00
Marius Hein
ccd5564a37 Evaluate, Test and Move the items und library/Icinga/Web to the source tree
Modify test for hook, add test for notification

refs #4256
2013-06-13 11:59:47 +02:00
Eric Lippmann
09302f6fb9 Merge branch 'bugfix/unified-test-and-style-scripts-4244' 2013-06-11 18:27:03 +02:00
Marius Hein
45262d4e50 Unify test runners options, args and output
Test commit

refs #4244
2013-06-11 18:25:21 +02:00
Marius Hein
2909605f96 Unify test runners options, args and output
Fix runtests and checkswag

refs #4244
2013-06-11 18:25:21 +02:00
Johannes Meyer
5119e71d41 Add make call to ensure that bin/extcmd_test exists.
refs #4258
2013-06-11 18:25:21 +02:00
Johannes Meyer
7e14a2077d Add include and exclude handling to the js style-checker.
--include and --exclude now accept unix shell-style patterns.

refs #4244
2013-06-11 18:25:21 +02:00
Johannes Meyer
7c779bc525 Improve path handling of the js style-checker. 2013-06-11 18:25:21 +02:00
Johannes Meyer
5e70dfb87e Rewrite javascript style-checker.
--include and --exclude are not working yet.

refs #4244
2013-06-11 18:25:21 +02:00
Johannes Meyer
10c1b1a548 Rewrite javascript test-runner.
refs #4244
2013-06-11 18:25:21 +02:00
Johannes Meyer
81dee05887 Rewrite php style-checker.
When --include or --exclude is given one has to provide files/directories.

refs #4244
2013-06-11 18:25:21 +02:00
Johannes Meyer
72c1255dc6 Rewrite php test-runner.
--include and --exclude will affect group annotations.
(See: http://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.group)

refs #4244
2013-06-11 18:25:21 +02:00
Marius Hein
521baeba5e Add extcmd.c compilation to test/php/runtests.sh
Add binary to .gitignore and fix test path generation of cache
dir.

refs #4258
2013-06-11 18:05:17 +02:00
Jannis Moßhammer
a6100acaa8 Move ordering of make after cd in runtests.sh
Jenkins called make from a different folder and didn't find
the makefile. It's moved now after the cd directive

refs #4258
2013-06-11 18:04:29 +02:00
Jannis Moßhammer
03ad76b739 Add Makefile for generating extcmd_test when it doesn't exist
extcmd_test contains the external-command parser from icinga-core
and allows the commandpipe tests to check if the commands would
be accepted by the core

refs #4258
2013-06-11 18:04:29 +02:00
Marius Hein
590262ebb4 Merge branch 'feature/auth-refactor-4265'
fixes #4265
2013-06-11 13:54:32 +02:00
Marius Hein
ed53ab6c9d Refactor Authentication Code
Fix PSR, fix testing

refs #4265
2013-06-11 13:53:42 +02:00
Marius Hein
8797d3e095 Refactor Authentication Code
Drop empty files

refs #4256
2013-06-11 13:35:53 +02:00
Jannis Moßhammer
2fb6cd5b50 Moved refs to Authentication/Auth to Authentication/Manager
refs #4265
2013-06-11 13:33:16 +02:00
Jannis Moßhammer
3199f21f29 Added License header, removed deprecated or empty files
refs #4265
2013-06-11 13:33:16 +02:00
Jannis Moßhammer
da43813de9 Update Backendpath for Authentication
Backends are now located in the Icinga/Authentication/Backend folder

refs #4265
2013-06-11 13:33:16 +02:00
Jannis Moßhammer
e325ad3417 Add LdapUserBackend and (skipping) test
The test is skipped due to the tight coupling of the Ldap Protocol
Backend to the rest of the application, this has to be addressed
as soon as the Connection is cleaned up

refs #4265
refs #4250
2013-06-11 13:33:15 +02:00
Jannis Moßhammer
70e8562814 Add PhpSession with tests
PhpSession handles file based sessions as supported by PHP

refs #4265
refs #4250
2013-06-11 13:32:33 +02:00
Jannis Moßhammer
db61cfafe1 Update and test Auth/Manager implementation
- remove Storable inheritance from User and make it a plain DAO
- remove Authorization methods from User

refs #4265
refs #4250
2013-06-11 13:32:33 +02:00
Jannis Moßhammer
06b7b9ee2e Add Auth/Manager.php, currently without tests
The Auth Manager class incorporates the functionality of the
Backend.php and Auth.php class and handles authentication. The
authorization parts from the Auth.php (hasPermission(), etc.) have
been removed and will be added to the user class

refs #4265
2013-06-11 13:27:53 +02:00
Jannis Moßhammer
9206b30254 Add basic, untested skeleton for Session and PHPSession
As we decided to remove Zend_Session due to locking issues,
we have to implement our session handling here. This is
the basic, untested code which will be tested in the next step

refs #4265
2013-06-11 13:27:53 +02:00
Marius Hein
80b29600df Merge branch 'feature/authtest-4250'
fixes #4250
2013-06-11 13:25:49 +02:00
Jannis Moßhammer
d1f6668fe7 Add library from incubator and teststubs
This commit only contains the untested libaries from the incubator
and autogenerated teststubs and is the basis for writing the tests

refs #4250
2013-06-11 13:23:59 +02:00
Marius Hein
b8db744d42 Merge branch 'feature/Vagrant-Icinga2-4220'
fixes #4220
2013-06-11 13:02:12 +02:00
Eric Lippmann
43c1efb7f4 Vagrant: Add Icinga 2
refs #4220
2013-06-11 12:37:37 +02:00
Marius Hein
2c5f9e7c14 Merge branch 'feature/Vagrant-testing-software-4219' 2013-06-11 11:46:17 +02:00
Eric Lippmann
4c5c6f982c Vagrant: Add testing the code section to README 2013-06-11 11:45:01 +02:00
Eric Lippmann
e5df44dc6a Vagrant: Add mocha and jshint
refs #4219
2013-06-11 11:45:01 +02:00
Eric Lippmann
bf3c87ede4 Vagrant: Add nodejs and PHPUnit
refs #4219
2013-06-11 11:45:01 +02:00
Eric Lippmann
a4d5501de5 Vagrant: Add phpcs
refs #4219
2013-06-11 11:45:00 +02:00
Eric Lippmann
117c8430be Vagrant: Add phantomjs and casperjs
refs #4219
2013-06-11 11:45:00 +02:00
Jannis Moßhammer
ea2ad1f8c0 Merge branch 'master' of ssh://git.icinga.org/icinga2-web into bugfix/psr-compliance-4246 2013-06-10 16:46:18 +02:00
Jannis Moßhammer
f898e2e367 Fix broken files in Statusdat Expression handler
The function tokens in the Expression handler didn't
work after they were rewritten, as the rewrite was
missing in certain files. This is fixed now

refs #4246
2013-06-10 16:44:58 +02:00
Marius Hein
c7e682401d Merge branch 'feature/polish-library-4257'
fixes #4257
2013-06-07 16:21:12 +02:00
Eric Lippmann
0098053187 Remove empty files from the Icinga library
refs #4257
2013-06-07 15:46:33 +02:00
Jannis Moßhammer
54ccb9b12a Move libraries from incubator to working tree for evaluation
Add all untested files from incubator's library/Icinga to working
tree library/Icinga

refs #4257
2013-06-07 15:46:33 +02:00
Jannis Moßhammer
1b600a8dd3 Merge branch 'bugfix/psr-compliance-4246'
fixes #4246
2013-06-07 15:28:08 +02:00
Marius Hein
0a58ecb477 Merge branch 'feature/uitest-4213'
fixes #4213
2013-06-07 15:12:29 +02:00