aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-26 15:15:56 +0200
committerGitHub <noreply@github.com>2019-07-26 15:15:56 +0200
commit2e803dc3d37f8f5eebe3d262bd6cc25fe97e73cd (patch)
tree95b57bfac9c85289f87d71fff1c3f003c7a99b74 /tests
parent71e5300f84576bd95bdad5262318c0e0affc0ade (diff)
parent78201bcb729567915b772d0259d992adb2be1991 (diff)
downloadnextcloud-server-2e803dc3d37f8f5eebe3d262bd6cc25fe97e73cd.tar.gz
nextcloud-server-2e803dc3d37f8f5eebe3d262bd6cc25fe97e73cd.zip
Merge pull request #16555 from nextcloud/fix/16529/mask-keys
use a pattern to identify sensitive config keys
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppConfigTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/AppConfigTest.php b/tests/lib/AppConfigTest.php
index fed929352d3..9456fe4c232 100644
--- a/tests/lib/AppConfigTest.php
+++ b/tests/lib/AppConfigTest.php
@@ -318,12 +318,14 @@ class AppConfigTest extends TestCase {
->with('user_ldap', false)
->willReturn([
'ldap_agent_password' => 'secret',
+ 's42ldap_agent_password' => 'secret',
'ldap_dn' => 'dn',
]);
$values = $config->getFilteredValues('user_ldap');
$this->assertEquals([
'ldap_agent_password' => IConfig::SENSITIVE_VALUE,
+ 's42ldap_agent_password' => IConfig::SENSITIVE_VALUE,
'ldap_dn' => 'dn',
], $values);
}