Jannis Moßhammer
4ed11dba4c
Add 'public' symlink creation to runtests
...
Runtest now creates a symlink to the public folder when it doesn't
exist, allowing the built-in server to access the js files
without too much hassle
refs #4303
refs #4315
2013-06-25 11:18:26 +02:00
Jannis Moßhammer
e075db3800
Add temporary http server for casperjs tests
...
Added a static folder and spawn a small HTTP server on runtests.
This is not really the best solution, as it uses pythons
simpleHTTPServer, but it works for now
refs #4315
2013-06-25 10:22:52 +02:00
Marius Hein
8d1038e622
Refactor and test \Icinga\Web\Form
...
Fix inspection issues, added some other code for testing to
have more coverage, fix test for QLink view helper.
refs #4302
refs #4341
2013-06-25 09:43:55 +02:00
Jannis Moßhammer
5cddbd1162
Add Form\Builder
...
The builder class allows to create forms and bind them to
models. The tests are currently failing because of the zend
pluginloader, this must be evaluated
refs #4302
2013-06-24 18:48:32 +02:00
Jannis Moßhammer
fa5c499733
Allow container-based url in history api
...
When a url is now loaded for an non-main container, the url for the
container is appended to the GET part of the URL
refs #4303
2013-06-19 13:22:02 +02:00
Jannis Moßhammer
e8d7971531
Add History Api test
...
Add CasperJS Tests for History API (~80%). Also provides a few
resources like the generic.html site that can be used for more
setups
refs #4303
refs #4315
2013-06-19 13:22:02 +02:00
Jannis Moßhammer
c126374807
Add 'public' symlink creation to runtests
...
Runtest now creates a symlink to the public folder when it doesn't
exist, allowing the built-in server to access the js files
without too much hassle
refs #4303
refs #4315
2013-06-19 13:22:02 +02:00
Jannis Moßhammer
990bc77d81
Add temporary http server for casperjs tests
...
Added a static folder and spawn a small HTTP server on runtests.
This is not really the best solution, as it uses pythons
simpleHTTPServer, but it works for now
refs #4315
2013-06-19 13:22:01 +02:00
Jannis Moßhammer
0d0db281f7
Test and icinga.js module setup procedure
...
Behaviours are now modules and icinga.js automatically
requests module/list (which should be served by the application
and is non static) and retrieves a list of modules to request and
enable.
refs #3753
2013-06-17 11:22:53 +02:00
Jannis Moßhammer
63f7b8016e
Add tests for javascript module implementation
...
This commit adds tests for the module loader and registry of
icinga2-web. It mainly registers event handlers and calls
custom enable/disable functions
refs #3753
2013-06-17 11:22:53 +02:00
Marius Hein
1f0e07cb36
Test and move bootstrapping/web code to source tree
...
Add simple test to use zend controller test.
refs #4249
2013-06-17 08:49:27 +02:00
Johannes Meyer
60836aace3
Merge branch 'bugfix/require-mock-4308
...
fixes #4308
2013-06-14 10:26:42 +02:00
Jannis Moßhammer
21e4ec1727
Fix wrong variable name in requiremock's getDefine
...
The getDefine method check's for existence of the 'arg' variable,
which was renamed to 'name', causing the typeof arg === "undefined"
to always return true
refs #4308
2013-06-14 09:50:06 +02:00
Jannis Moßhammer
9563541814
Fix ManagerTest's invaldi @expectedException annotation
...
The annotation catched the generic \Exception, which PHPunit
forbids. Now the tests directly catches and asserts this
exception
refs #4310
2013-06-14 09:39:34 +02:00
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
Jannis Moßhammer
d2cd52218a
Add mockup for requirejs
...
Tests can now call require('requiremock') to bootstrap an alternative
requirejs implementation and use the resulting object for defining
dependencies and mocks
refs #4308
2013-06-13 17:29:38 +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
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
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
ed53ab6c9d
Refactor Authentication Code
...
Fix PSR, fix testing
refs #4265
2013-06-11 13:53:42 +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
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
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
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
Jannis Moßhammer
1b600a8dd3
Merge branch 'bugfix/psr-compliance-4246'
...
fixes #4246
2013-06-07 15:28:08 +02:00
Marius Hein
6f80d410b8
Integrate javascript frontend/component tests
...
Fix output and make smaller
refs 4213
2013-06-07 15:09:31 +02:00
Marius Hein
e05ca449ae
Fix PSR compliance
...
Alter files to follow PSR standards.
refs #4246
2013-06-07 13:29:11 +02:00
Jannis Moßhammer
3e4ae41e8a
Rename runtests.sh to runtest
...
As we have different executables for executing the runtests scripts,
runtests.sh is now renamed to runtests in order to stay consistent
over all testrunners
refs #4213
refs #4244
2013-06-07 10:34:39 +02:00
Jannis Moßhammer
b253c4c069
Renamed runtest to runtests.sh
...
refs #4213
2013-06-06 16:13:32 +02:00
Jannis Moßhammer
359b51be43
Add testrunner for frontend tests
...
This runner should conform to our runner specification
refs #4213
refs #4244
2013-06-06 16:07:32 +02:00
Jannis Moßhammer
a1298e6edd
Add dummy test case for casperjs
...
The dummy test only checks whether our build server has the correct
title when called. Also the i2w-config.js toolkit is provided
to help testing correct paths
refs #4213
2013-06-06 16:05:55 +02:00
Marius Hein
29f032502c
Integrate regression tests
...
Add js regression structure and configured mocha
2013-06-04 17:20:18 +02:00
Marius Hein
8d08167d11
Integrate regression tests
...
Removed javascript directory, because we use js for that.
refs #4102
2013-06-04 16:00:35 +02:00
Marius Hein
a221568a84
Integrate regression tests
...
Add regression testing for php: structure and bogus test.
refs #4102
2013-06-04 15:55:44 +02:00
Marius Hein
5df14b41e1
Merge branch 'feature/build-server-integration-4067'
...
Conflicts:
.gitignore
2013-06-04 11:40:20 +02:00
Marius Hein
321aa9b4e3
Integrate PHPCS
...
Include only own code, test for binary
refs #4070
2013-06-04 11:26:12 +02:00
Marius Hein
ed24a90c1a
Integrate PHPUNIT
...
Modify tester, chdir to tests directory and test binary
refs #4068
2013-06-04 11:20:22 +02:00
Marius Hein
9b907e3cd3
Move tested existing resources to new productive repository
...
Rename docs, tests and test/ui to doc, test and test/frontend to
suite skeleton definition.
refs #4212
2013-06-04 10:20:51 +02:00
Johannes Meyer
4b225eccee
Fix: Style-checkers report their output to wrong location
2013-06-03 16:07:52 +02:00
Marius Hein
71f2c408df
Integrate PHPCS
...
Fix absolute directory issue.
refs #4070
refs #4098
refs #4099
2013-06-03 15:29:54 +02:00
Marius Hein
0592bff4ef
Build server
...
Add absolute directory for helper scripts
refs #4067
refs #4213
refs #4099
refs #4098
refs #4214
2013-06-03 15:13:42 +02:00
Johannes Meyer
ee63f3fbd8
Make Git ignore build/* and create it as needed.
...
refs #4068
refs #4070
refs #4098
refs #4099
2013-06-03 10:36:27 +02:00
Johannes Meyer
5118432b82
Add support for jshint reports.
...
Integrated style-checker for javascript source code.
refs #4098
2013-05-31 13:52:12 +02:00
Johannes Meyer
3544af245f
Add support for javascript unittests.
...
Integrated test-runner for Mocha which covers
test-execution and code-coverage measurement.
refs #4099 , refs #4087
2013-05-31 13:51:07 +02:00
Johannes Meyer
7ac78fe29d
Add support for phpcs reports.
...
Integrated style-checker for php source code.
refs #4070
2013-05-31 13:48:14 +02:00
Johannes Meyer
4a92879a5a
Add support for phpunit tests.
...
Integrated test-runner for phpunit which covers
test-execution and code-coverage measurement.
refs #4068 , refs #4087
2013-05-31 13:47:15 +02:00