Closed
Description
Preconditions
- Magento 2.2.2
- Manually install MFTF into dev folder (using magento2 2.2-develop latest)
Steps to reproduce
- Setup Magento store(s) without having one with a store code "default"
- Run tests as follows
$ vendor/bin/robo example -v
Expected result
- POST request issued to /rest/V1/integration/admin/token
Actual result
- POST request issued to
/rest/default/V1/integration/admin/token
, causes 404 error
172.18.0.6 - - [31/Jan/2018:05:55:37 +0000] "POST /rest/default/V1/integration/admin/token HTTP/1.1" 404 1883 "-" "Symfony BrowserKit"
Would be good to either define a different store code to use for the REST API requests, or just to omit it and let the Magento WebAPI's request processor handle the logic (it chooses the default store's code when omitted).