Skip to content

Commit ae1c138

Browse files
Oleksii KorshenkoSergey Nosov
authored andcommitted
MAGETWO-50608: [Github][Security] Able to brute force API token access
- fixed rest tests
1 parent b71014c commit ae1c138

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/Integration/Model/AdminTokenServiceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function setUp()
6262
*/
6363
public function testCreateAdminAccessToken()
6464
{
65-
$adminUserNameFromFixture = 'adminUser';
65+
$adminUserNameFromFixture = 'webapi_user';
6666

6767
$serviceInfo = [
6868
'rest' => [
@@ -143,7 +143,7 @@ public function validationDataProvider()
143143
*/
144144
public function testThrottlingMaxAttempts()
145145
{
146-
$adminUserNameFromFixture = 'adminUser';
146+
$adminUserNameFromFixture = 'webapi_user';
147147

148148
$serviceInfo = [
149149
'rest' => [
@@ -181,11 +181,11 @@ public function testThrottlingMaxAttempts()
181181
}
182182

183183
/**
184-
* @magentoApiDataFixture Magento/User/_files/user_with_role.php
184+
* @magentoApiDataFixture Magento/Webapi/_files/webapi_user.php
185185
*/
186186
public function testThrottlingAccountLockout()
187187
{
188-
$adminUserNameFromFixture = 'adminUser';
188+
$adminUserNameFromFixture = 'webapi_user';
189189

190190
$serviceInfo = [
191191
'rest' => [

0 commit comments

Comments
 (0)