Bug #51381

Functional test Bootstrap outputs missleading message if DB creditinals are wrong

Added by Sascha Egerer over 6 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2013-08-27
Due date:
% Done:

100%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you call the functional tests and your db creditinals are wrong you get a misleading error message that your user has no access to create tables.

1) TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandlerTest::canCreateTtContent
TYPO3\CMS\Core\Tests\Exception: Unable to create database with name typo3-core-dev_test_5b92679. This is probably a permission problem. For this instance this could be fixed executing "GRANT ALL ON `typo3-core-dev_test_%`.* TO `wronguser`@`127.0.0.1`;" 

/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php:285
/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php:73
/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/FunctionalTestCase.php:120
/PATH/TO/FOO/TYPO3.CMS/typo3/sysext/core/Tests/Functional/DataHandling/DataHandlerTest.php:37

There should be a check if the user is allowed to login first.


Related issues

Related to TYPO3 Core - Feature #51166: Functional tests Closed 2012-11-01

Associated revisions

Revision 50701a03 (diff)
Added by Sascha Egerer over 6 years ago

[TASK] Functional tests: error if DB permissions are missing

The functional test framework needs create and drop
table database permissions.

Added a check that outputs an error message if the DB user
is not able to connect to the database or if the user
has not the required permissions to create a database.

Resolves: #51381
Releases: 6.2
Change-Id: I94c4eeb4356fdba06026ec727283807112c53926
Reviewed-on: https://review.typo3.org/23388
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

History

#1 Updated by Gerrit Code Review over 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23388

#2 Updated by Gerrit Code Review over 6 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23388

#3 Updated by Anonymous over 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#4 Updated by Gerrit Code Review over 6 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master_new has been pushed to the review server.
It is available at https://review.typo3.org/23418

#5 Updated by Wouter Wolters over 6 years ago

  • Status changed from Under Review to Resolved

#6 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF