aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/server.php
Commit message (Collapse)AuthorAgeFilesLines
* Add public API to give developers the possibility to adjust the global CSP ↵Lukas Reschke2016-01-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | defaults Allows to inject something into the default content policy. This is for example useful when you're injecting Javascript code into a view belonging to another controller and cannot modify its Content-Security-Policy itself. Note that the adjustment is only applied to applications that use AppFramework controllers. To use this from your `app.php` use `\OC::$server->getContentSecurityPolicyManager()->addDefaultPolicy($policy)`, $policy has to be of type `\OCP\AppFramework\Http\ContentSecurityPolicy`. To test this add something like the following into an `app.php` of any enabled app: ``` $manager = \OC::$server->getContentSecurityPolicyManager(); $policy = new \OCP\AppFramework\Http\ContentSecurityPolicy(false); $policy->addAllowedFrameDomain('asdf'); $policy->addAllowedScriptDomain('yolo.com'); $policy->allowInlineScript(false); $manager->addDefaultPolicy($policy); $policy = new \OCP\AppFramework\Http\ContentSecurityPolicy(false); $policy->addAllowedFontDomain('yolo.com'); $manager->addDefaultPolicy($policy); $policy = new \OCP\AppFramework\Http\ContentSecurityPolicy(false); $policy->addAllowedFrameDomain('banana.com'); $manager->addDefaultPolicy($policy); ``` If you now open the files app the policy should be: ``` Content-Security-Policy:default-src 'none';script-src yolo.com 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src yolo.com 'self';connect-src 'self';media-src 'self';frame-src asdf banana.com 'self' ```
* [Share 2.0] Add getShareManager to OCP\IServerContainerRoeland Jago Douma2016-01-271-0/+2
|
* Move the notification API to public namespaceJoas Schilling2016-01-221-1/+1
|
* Allow custom implementation of system tag managersVincent Petry2016-01-201-0/+3
| | | | | | | Added config.php option to replace the default implementation of system tag manager and system tag object mapper. Also adjusted the comments manager factory to inject the server container
* Add 'OCP\Files\IMimeTypeDetector' to DI containerRoeland Jago Douma2016-01-071-0/+2
| | | | * Added test to server container as well
* Inject Config into SystemConfigRoeland Jago Douma2015-12-181-1/+2
|
* rework test about overwriting default comments managerArthur Schiwon2015-12-091-0/+12
|
* add icommentsmanger and icomment implementationArthur Schiwon2015-12-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | register CommentsManager service, allow override, document in config.sample.php don't insert autoincrement ids in tests, because of dislikes from oracle and pgsql specify timezone in null date only accepts strings for ID parameter that can be converted to int replace forgotten hardcoded IDs in tests react on deleted users react on file deletion Postgresql compatibility lastInsertId needs *PREFIX* with the table name do not listen for file deletion, because it is not reliable (trashbin, external storages) add runtime cache for comments
* Adding more DB groups to test suitsThomas Müller2015-11-301-0/+7
| | | | Adding more DB groups to test suits
* Move interfaces to private until they are no longer experimentalJoas Schilling2015-09-081-1/+1
|
* Add tests for the query()Joas Schilling2015-09-081-0/+2
|
* Add a test for the interfaceJoas Schilling2015-08-281-0/+1
|
* Add a session wrapper to encrypt the data before storing it on diskJoas Schilling2015-08-211-0/+1
|
* Use DIRoeland Jago Douma2015-08-101-1/+1
| | | | | | | | * Register OCP\Capability\IManager at DIContainer * Add register capabilities to appframework * Register capabilities in DI way * Make unit test pass again * Remove CapabiltiesManager from OCP
* Added Capabilities ManagerRoeland Jago Douma2015-08-101-0/+4
| | | | | | | * This should allow the capabilities to be intergrated into the appframework * Unit tests * Throw exception if closure does not return ICapability instance
* Fixing "ImportController::__construct() must implement interface ↵Thomas Müller2015-06-291-0/+1
| | | | OCP\\ICache, instance of OC\\Cache\\File given"
* Adjust NullCache testsLukas Reschke2015-06-151-3/+1
|
* Check the query() for all defined servicesJoas Schilling2015-06-111-1/+112
|
* Correctly import NullCache classJoas Schilling2015-06-111-0/+51