magento / magento/magento2-functional-testing-framework
Cannot retrieve API token with credentials.
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 154
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Description
### Preconditions
1. PHP 7.4.10
2. Magento CE 2.4.1
3. Magento Functional Testing Framework CLI 3.2.1
### Steps to reproduce
1. Build MFTF: `vendor/bin/mftf build:project`.
2. Set up dev/tests/acceptance/.env file.
3. Copy dev/tests/acceptance/.htaccess.sample to dev/tests/acceptance/.htaccess.
4. Generate & run tests: vendor/bin/mftf generate:tests (or vendor/bin/mftf doctor).
### Expected result
1. Tests run correctly.
### Actual result
1. Invalid credentials + /rest/V1/integration/admin/token not found on server = 404 status code.


**Via postman I can retrieve admin token.**
Sources:
https://devdocs.magento.com/mftf/docs/guides/cicd.html#generate-tests
https://devdocs.magento.com/mftf/docs/getting-started.html#run-tests
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with vendor/bin/mftf build:project, the dev/tests/acceptance/.env setup, and vendor/bin/mftf generate:tests or doctor. Check the configured endpoint and credentials against the reported /rest/V1/integration/admin/token 404, then verify that the generated tests run successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100