Open
Description
Preconditions and environment
- Magento 2.4.5
- PHP 8.1
- Mysql 8.0
Steps to reproduce
- Install magento live site into database
magento_db
- Create separate database
magento_functional_tests
- In folder
dev/tests/api-functional/config
, copyinstall-config-mysql.php.dist
toinstall-config-mysql.php
,post-install-setup-command-config.php.dist
topost-install-setup-command-config.php
- Write down db name
(magento_functional_tests)
, user, password,... intodev/tests/api-functional/config/install-config-mysql.php
- In
dev/tests/api-functional/phpunit_graphql.xml.dist
add new testsuite base on my module
<testsuite name="MYVENDOR_FUNCTIONAL_TESTS_APP_CODE">
<directory>../../../app/code/MyVendor/*/Test/Functional</directory>
</testsuite>
- In
dev/tests/api-functional/phpunit_graphql.xml.dist
setTESTS_BASE_URL
to local domain,TESTS_MAGENTO_INSTALLATION
to enabled cd dev/tests/api-functional
../../../vendor/bin/phpunit --configuration ../../../dev/tests/api-functional/phpunit_graphql.xml.dist --testsuite "MYVENDOR_FUNCTIONAL_TESTS_APP_CODE"
Expected result
Web Api tests should run on test database as configured in step 4 (magento_functional_tests)
Main database is intact.
Actual result
Test database is intact.
All tables are deleted from main database (magento_db)
Additional information
I don't know why it affects the main database, but in the scope of testing, don't touch the main data.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Use with concrete module component label E.g. "Component: Webapi" + "Catalog"Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchIssue related to Developer Experience and needs help with Triage to Confirm or Reject it