Skip to content

Commit 4fbb5d4

Browse files
committed
fix: disable guest id hashing in setup
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent 3c19fdb commit 4fbb5d4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/NextcloudApiContext.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ public function assureUserExists(string $user): void {
9696

9797
#[Given('guest :guest exists')]
9898
public function assureGuestExists(string $guest): void {
99+
// Recent guests versions hash user IDs by default, but downstream tests
100+
// still authenticate using the guest identifier passed in the scenario.
101+
self::runCommand('config:app:set guests hash_user_ids --value false --type boolean');
99102
$response = $this->userExists($guest);
100103
if ($response->getStatusCode() !== 200) {
101104
static::createAnEnvironmentWithValueToBeUsedByOccCommand('OC_PASS', '123456');

0 commit comments

Comments
 (0)