cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

backoffice for junit tenant

0 Likes
1,030

How to access junit tenant data in Hybris 6.7?

In the previous hybris versions it was possible to see integration tests data in hmc_junit.

What is the replacement for this in version 6.7?

View Entire Topic

For Hybris 6.7, to me the following steps were sufficient:

  • in config/local_tenant_junit.properties , add

       backoffice.webroot=/backoffice_junit
    
    
  • ant server

    this puts the endpoint into ${tomcat.webapps} in server.xml template resulting in:

       <Context path="/backoffice_junit"...
     
    
    

    being added to your bin/platform/tomcat/conf/server.xml

Then when you open https://localhost:9002/backoffice_junit , the DataSourceSwitchingFilter gets current tenant from a ThreadLocal and activates its dataSource.

(c) https://stackoverflow.com/a/55169129/8400585

With a lot of backoffice modules included, backoffice_junit context startup failed until I set

 backoffice.load.modules.context.at.startup=false

(added it to local.properties template for local dev env)