diff --git a/core-customize/hybris/bin/custom/datahubtestsetup/resources/impex/essentialdata-datahubtestsetup.impex b/core-customize/hybris/bin/custom/datahubtestsetup/resources/impex/essentialdata-datahubtestsetup.impex index 9684bcc2c..8ab955945 100644 --- a/core-customize/hybris/bin/custom/datahubtestsetup/resources/impex/essentialdata-datahubtestsetup.impex +++ b/core-customize/hybris/bin/custom/datahubtestsetup/resources/impex/essentialdata-datahubtestsetup.impex @@ -1,10 +1,17 @@ #% impex.setLocale( Locale.ENGLISH ) # DataHub configurations +INSERT_UPDATE BasicCredential ;id[unique = true] ; userName ; password +"#% beforeEach: +import de.hybris.platform.util.Config; +line.put(2, Config.getString(line.get(2), ""admin"")); +line.put(3, Config.getString(line.get(3), ""nimda"")); +" + ;admin ; datahub.backoffice.rest.client.username.admin ; datahub.backoffice.rest.client.password.admin + ;developer ; datahub.backoffice.rest.client.username.developer ; datahub.backoffice.rest.client.password.developer -INSERT_UPDATE DataHubInstanceModel;instanceName[unique = true];instanceLocation - ;localhost;http://localhost:8080/datahub-webapp/v1; - ;datahub;http://datahub:8080/datahub-webapp/v1; +INSERT_UPDATE DataHubInstanceModel;instanceName[unique = true] ; instanceLocation ; admin(id) ; developer(id) + ;datahub ; http://datahub:8080/datahub-webapp/v1 ; admin ; developer INSERT_UPDATE OAuthClientDetails;clientId[unique=true]; resourceIds; scope; authorizedGrantTypes ; authorities; clientSecret; registeredRedirectUri