diff --git a/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php b/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php index 9e7136a80..08f856526 100644 --- a/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php +++ b/tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php @@ -115,13 +115,14 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided() */ public function testUserIsNotThrottledIfNoPublicKeyMatches() { + // levemente modifificado + $publicKey = PrivateKey::c('Ed25519')->getPublicKey()->toString('OpenSSH'); for ($i = 0; $i <= 10; ++$i) { $this->postJson('/api/remote/sftp/auth', [ 'type' => 'public_key', 'username' => $this->getUsername(), - 'password' => PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'), - ]) - ->assertForbidden(); + 'password' => $publicKey, + ])->assertForbidden(); } }