nextcloud/tests/lib
Lukas Reschke b20174bdad Allow AppFramework applications to specify a custom CSP header
This change allows AppFramework applications to specify a custom CSP header for example when the default policy is too strict. Furthermore this allows us to partially migrate away from CSS and allowed eval() in our JavaScript components.

Legacy ownCloud components will still use the previous policy. Application developers can use this as following in their controllers:
```php
$response = new TemplateResponse('activity', 'list', []);
$cspHelper = new ContentSecurityPolicyHelper();
$cspHelper->addAllowedScriptDomain('www.owncloud.org');
$response->addHeader('Content-Security-Policy', $cspHelper->getPolicy());
return $response;
```

Fixes https://github.com/owncloud/core/issues/11857 which is a pre-requisite for https://github.com/owncloud/core/issues/13458 and https://github.com/owncloud/core/issues/11925
2015-02-16 11:00:41 +01:00
..
app Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
appframework Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
archive Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
backgroundjob Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
cache Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
connector/sabre Fix webdav put for single file webdav shares 2015-01-29 12:47:12 +01:00
contacts Make class compatible 2014-12-09 12:25:22 +01:00
db Merge pull request #12995 from owncloud/tbelau666-master 2015-01-09 14:17:14 +01:00
files Normalize before processing 2015-02-06 15:03:29 +01:00
group add isAdmin and isInGroup methods for the group manager 2014-12-17 17:41:57 +01:00
hooks Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
memcache Add a test case for memcaches to store an array 2015-01-20 10:51:04 +01:00
ocs Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
public Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
repair Updated the media type of some font types 2015-01-24 01:49:13 +01:00
security certificate manager should always use a \OC\Files\View otherwise we will get problems for different primary storages 2015-01-26 16:58:52 +01:00
session Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
share Add a test for the post_shared hook shareType 2015-02-09 13:12:34 +01:00
template Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
user introduce names for user backends - IUserBackend 2014-12-19 10:17:17 +01:00
activitymanager.php Add test for getSpecialParameterList() 2014-12-11 15:01:45 +01:00
allconfig.php Workaround to fix the too early init dilemma 2014-12-08 22:33:36 +01:00
api.php Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
app.php Merge pull request #13319 from owncloud/replace-line-breaks-in-app-description 2015-01-17 01:03:41 +01:00
appconfig.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
archive.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
autoloader.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
avatar.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
cache.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
config.php Add a method to set/unset multiple config values in one call 2015-01-23 11:00:53 +01:00
contactsmanager.php Mock interface 2014-12-08 13:18:00 +01:00
datetimeformatter.php Use a fixed timestamp so we dont switch days/years with the getTimestampAgo 2014-12-11 13:22:05 +01:00
db.php Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
dbschema.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
errorHandler.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
geo.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
group.php Do not use uniqid in Group and User tests as it is not unique on windows 2014-11-06 17:36:35 +01:00
helper.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
helperstorage.php reduce OC_Preferences, OC_Config and \OCP\Config usage 2014-12-08 22:42:37 +01:00
httphelper.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
image.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
installer.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
l10n.php Correctly fallback to english, if the plural case is not translated 2014-12-11 12:42:21 +01:00
largefilehelper.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
largefilehelpergetfilesize.php Check if open_basedir is set 2014-12-11 00:09:55 +01:00
logger.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
mail.php Fix undefined offset 1 for wrong user mail address 2015-01-22 16:23:50 +01:00
naturalsort.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
preview.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
repair.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
request.php Add unit test 2015-01-21 17:18:47 +01:00
setup.php Add version to .htaccess 2015-01-08 12:49:02 +01:00
streamwrappers.php HHVM Workaround: Do not use Exception from Stream. 2015-01-09 17:01:17 +01:00
tags.php Fix chunked query for tags + unit test 2015-01-19 17:05:44 +01:00
template.php Deprecate Util::formatDate() 2014-12-10 11:58:56 +01:00
templatelayout.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
tempmanager.php fix failing unit test for the temp manager - concurrently executed unit tests influence each other 2014-11-25 22:16:48 +01:00
testcase.php Add login/logout to TestCase base class 2014-12-10 16:11:27 +01:00
updater.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
urlgenerator.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
user.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
util.php Move timezone logic out of server.php 2014-12-16 16:16:22 +01:00
utilcheckserver.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
vobject.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00