Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run integration tests #649

Closed
MagePsycho opened this issue Apr 30, 2023 · 3 comments
Closed

Unable to run integration tests #649

MagePsycho opened this issue Apr 30, 2023 · 3 comments
Assignees
Labels
bug Something isn't working env-magento2
Milestone

Comments

@MagePsycho
Copy link

Version of Warden

0.12.0

Operating System and Installation Method

Mac OS Big Sur via Brew

Describe the Bug

I tried to run the integration test in warden but getting the following error:

vendor/bin/phpunit -c $(pwd)/dev/tests/integration/phpunit.xml ./app/code/MagePsycho/SeoSuite/Test/Integration

Exception: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for tmp-mysql failed: Name or service not known

I already I configured the .env as

#WARDEN_DB=1
WARDEN_TEST_DB=1

And dev/tests/integration/etc/install-config-mysql.php as

return [
    'db-host' => 'tmp-mysql',
    'db-user' => 'root',
    'db-password' => 'magento',
    'db-name' => 'magento_integration_tests',
    'db-prefix' => '',

I then run

warden env stop
warden env start
warden env up -d

After the command ran successfully, I saw this message:

 ⠿ Container mage246-elasticsearch-1     Running                                                                                                                                                                                      
 ⠿ Container mage246-redis-1             Running                                                                                                                                                                                       
 ⠿ Container mage246-db-1                Running                                                                                                                                                                                       
 ⠿ Container mage246-elasticsearch-hq-1  Running                                                                                                                                                                                       
 ⠿ Container mage246-php-fpm-1           Running                                                                                                                                                                                       
 ⠿ Container mage246-php-debug-1         Running                                                                                                                                                                                       
 ⠿ Container mage246-nginx-1             Running

Where is tmp-mysql ? And WTH is elasticsearch-hq ?

Have anyone successfully run integration tests on warden?

To Reproduce

Run the command:

vendor/bin/phpunit -c $(pwd)/dev/tests/integration/phpunit.xml ./app/code/MagePsycho/SeoSuite/Test/Integration

Exception: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for tmp-mysql failed: Name or service not known

Expected Behavior

It should run the Integration test under MagePsycho_SeoSuite module.

Additional context

No response

@MagePsycho MagePsycho added the bug Something isn't working label Apr 30, 2023
@bap14
Copy link
Contributor

bap14 commented May 1, 2023

@MagePsycho elasticsearch-hq is a frontend for ElasticSearch to view details about the ES server. You can disable this by adding WARDEN_ELASTICHQ=0 to your .env file.

I haven't tried integration tests yet, so not sure why the mage246-tmp-mysql-1 container isn't starting

@navarr navarr self-assigned this May 1, 2023
@navarr navarr added this to the Warden 0.13.2 milestone May 1, 2023
@navarr
Copy link
Member

navarr commented Jun 19, 2023

Could you verify this issue continues to exist?

@navarr
Copy link
Member

navarr commented Jun 19, 2023

I'm not experiencing this issue in Warden 0.14.0 / beta. I'm going to go ahead and close this. If it continues to be an issue, please open a thread in Help & Support as it may be environmental.

@navarr navarr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working env-magento2
Projects
Archived in project
Development

No branches or pull requests

3 participants