Skip to content

Commit

Permalink
MAGETWO-50608: [Github][Security] Able to brute force API token access
Browse files Browse the repository at this point in the history
- fixed rest tests
  • Loading branch information
Oleksii Korshenko committed Mar 23, 2016
1 parent 6ef6a39 commit 231b34b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function setUp()
*/
public function testCreateAdminAccessToken()
{
$adminUserNameFromFixture = 'adminUser';
$adminUserNameFromFixture = 'webapi_user';

$serviceInfo = [
'rest' => [
Expand Down Expand Up @@ -143,7 +143,7 @@ public function validationDataProvider()
*/
public function testThrottlingMaxAttempts()
{
$adminUserNameFromFixture = 'adminUser';
$adminUserNameFromFixture = 'webapi_user';

$serviceInfo = [
'rest' => [
Expand Down Expand Up @@ -181,11 +181,11 @@ public function testThrottlingMaxAttempts()
}

/**
* @magentoApiDataFixture Magento/User/_files/user_with_role.php
* @magentoApiDataFixture Magento/Webapi/_files/webapi_user.php
*/
public function testThrottlingAccountLockout()
{
$adminUserNameFromFixture = 'adminUser';
$adminUserNameFromFixture = 'webapi_user';

$serviceInfo = [
'rest' => [
Expand Down

0 comments on commit 231b34b

Please sign in to comment.