Skip to content

Commit

Permalink
Merge pull request #37509 from owncloud/groupExistsInCoredbTestingWit…
Browse files Browse the repository at this point in the history
…hLdap

[Tests-Only] check for the existence of group in core db when testing with ldap
  • Loading branch information
phil-davis authored Jun 10, 2020
2 parents e203b24 + 08ad5eb commit 890ef6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/acceptance/features/bootstrap/Provisioning.php
Original file line number Diff line number Diff line change
Expand Up @@ -3239,9 +3239,9 @@ public function userTriesToDeleteGroupUsingTheProvisioningApi($user, $group) {
* @throws Exception
*/
public function groupExists($group) {
$baseDN = $this->getLdapBaseDN();
$newDN = 'cn=' . $group . ',ou=' . $this->ou . ',' . $baseDN;
if ($this->isTestingWithLdap()) {
if ($this->isTestingWithLdap() && OcisHelper::isTestingOnOcis()) {
$baseDN = $this->getLdapBaseDN();
$newDN = 'cn=' . $group . ',ou=' . $this->ou . ',' . $baseDN;
if ($this->ldap->getEntry($newDN) !== null) {
return true;
}
Expand Down

0 comments on commit 890ef6e

Please sign in to comment.