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

Fix web api base url usage #894

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

use Magento\FunctionalTestingFramework\Config\MftfApplicationConfig;
use Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException;
use Magento\FunctionalTestingFramework\Util\MftfGlobals;
use Magento\FunctionalTestingFramework\Util\ModuleResolver\ModuleResolverService;
use Magento\FunctionalTestingFramework\Util\Logger\LoggingUtil;
use Magento\FunctionalTestingFramework\Util\Path\FilePathFormatter;
Expand Down Expand Up @@ -97,7 +98,7 @@ class ModuleResolver
*
* @var string
*/
protected $moduleUrl = "rest/V1/modules";
protected $moduleUrl = "V1/modules";

/**
* Url for magento version information.
Expand Down Expand Up @@ -181,7 +182,7 @@ public function getEnabledModules()

$token = ModuleResolverService::getInstance()->getAdminToken();

$url = UrlFormatter::format(getenv('MAGENTO_BASE_URL')) . $this->moduleUrl;
$url = MftfGlobals::getWebApiBaseUrl() . $this->moduleUrl;

$headers = [
'Authorization: Bearer ' . $token,
Expand Down