diff --git a/modules/apps/headless/headless-delivery/headless-delivery-test/src/testFunctional/macros/HeadlessWebcontentFolderAPI.macro b/modules/apps/headless/headless-delivery/headless-delivery-test/src/testFunctional/macros/HeadlessWebcontentFolderAPI.macro index 3a6a4867f4db91..6b801cec64b336 100644 --- a/modules/apps/headless/headless-delivery/headless-delivery-test/src/testFunctional/macros/HeadlessWebcontentFolderAPI.macro +++ b/modules/apps/headless/headless-delivery/headless-delivery-test/src/testFunctional/macros/HeadlessWebcontentFolderAPI.macro @@ -46,10 +46,11 @@ definition { @summary = "Default summary" macro _subscribeStructuredContentFolder(structuredContentFolderId = null, userName = null) { var portalURL = JSONCompany.getPortalURL(); + var userPassword = PropsUtil.get("default.admin.password"); var curl = ''' ${portalURL}/o/headless-delivery/v1.0/structured-content-folders/${structuredContentFolderId}/subscribe \ - -u ${userName}@liferay.com:${PropsUtil.get("default.admin.password")} \ + -u ${userName}@liferay.com:${userPassword} \ -H accept: application/json \ ''';