on ‎2019 Mar 07 12:51 PM
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?
Request clarification before answering.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.