Skip to content

Commit

Permalink
Troubleshooting Selenium/Apache
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour committed Jan 11, 2023
1 parent df8f211 commit 59d6343
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/mtf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
--health-timeout=5s
--health-retries=3
selenium:
image: selenium/standalone-chrome
image: selenium/standalone-firefox
# options: --health-cmd "curl http://selenium:4444" --health-interval=5s
ports:
- 4444:4444
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Substitute vars for web server
uses: dominicwatson/github-action-envsubst@v1
with:
files: .github/mtf/apache_virtual_host .github/mtf/www.conf
files: .github/mtf/apache_virtual_host .github/mtf/www.conf dev/tests/functional/etc/config.xml
patterns: $GITHUB_WORKSPACE $MAGENTO_HOST_NAME $PHP_VERSION

- name: Start PHP-FPM
Expand Down Expand Up @@ -127,10 +127,14 @@ jobs:
#php -f mtf troubleshooting:check-all
- name: Check Selenium server
env:
SELENIUM_PORT: ${{ job.services.selenium.ports[4444] }}
run: |
curl --no-progress-meter http://selenium:4444/wd/hub
curl --no-progress-meter http://localhost:4444/wd/hub
curl --no-progress-meter http://localhost:$SELENIUM_PORT/wd/hub
curl --no-progress-meter http://selenium:$SELENIUM_PORT/wd/hub
curl --no-progress-meter http://127.0.0.1:4444/wd/hub
curl --no-progress-meter http://localhost:4444/wd/hub
curl --no-progress-meter http://selenium:4444/wd/hub
- name: Run Magento Test Framework test suite
uses: GabrielBB/xvfb-action@v1
Expand Down
8 changes: 4 additions & 4 deletions dev/tests/functional/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
</application>
<install>
<host>127.0.0.1</host>
<user>root</user>
<password>123123q</password>
<dbName>default</dbName>
<baseUrl>http://127.0.0.1/magento1/</baseUrl>
<user>openmage</user>
<password>openmage</password>
<dbName>openmage</dbName>
<baseUrl>http://localhost/</baseUrl>
<backendName>admin</backendName>
</install>
<isolation>
Expand Down

0 comments on commit 59d6343

Please sign in to comment.