From ecd62d1ccaa512f1ccac14a1827d3a1ee51a255c Mon Sep 17 00:00:00 2001 From: Drylian <109999325+drylian@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:48:43 -0300 Subject: [PATCH] test --- .../Api/Remote/SftpAuthenticationControllerTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); } }