Skip to content
Snippets Groups Projects
Commit 5370bba0 authored by Joas Schilling's avatar Joas Schilling
Browse files

Split the system from the app config

parent 16907f91
Branches
No related tags found
No related merge requests found
......@@ -93,11 +93,13 @@ class ListConfigs extends Base {
case 'all':
$apps = $this->appConfig->getApps();
$configs = [];
$configs = [
'system' => $this->getSystemConfigs($noSensitiveValues),
'apps' => [],
];
foreach ($apps as $appName) {
$configs[$appName] = $this->appConfig->getValues($appName, false);
$configs['apps'][$appName] = $this->appConfig->getValues($appName, false);
}
$configs['system'] = $this->getSystemConfigs($noSensitiveValues);
break;
default:
......
......@@ -23,7 +23,6 @@ namespace Tests\Core\Command\Config;
use OC\Core\Command\Config\ListConfigs;
use OC\Core\Command\Config\NoValue;
use Test\TestCase;
class ListConfigsTest extends TestCase {
......@@ -58,7 +57,7 @@ class ListConfigsTest extends TestCase {
}
public function dataDisable() {
public function listData() {
return [
[
'all',
......@@ -82,14 +81,16 @@ class ListConfigsTest extends TestCase {
],
true,
json_encode([
'system' => [
'overwrite.cli.url' => 'http://localhost',
],
'apps' => [
'core' => [
'global_cache_gc_lastrun' => '1430388388',
],
'files' => [
'enabled' => 'yes',
],
'system' => [
'overwrite.cli.url' => 'http://localhost',
],
]),
],
......@@ -115,15 +116,17 @@ class ListConfigsTest extends TestCase {
],
false,
json_encode([
'system' => [
'secret' => 'my secret',
'overwrite.cli.url' => 'http://localhost',
],
'apps' => [
'core' => [
'global_cache_gc_lastrun' => '1430388388',
],
'files' => [
'enabled' => 'yes',
],
'system' => [
'secret' => 'my secret',
'overwrite.cli.url' => 'http://localhost',
],
]),
],
......@@ -232,7 +235,7 @@ class ListConfigsTest extends TestCase {
}
/**
* @dataProvider dataDisable
* @dataProvider listData
*
* @param string $app
* @param array $systemConfigs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment