Unit Test doesn't worked in Externalized Configuration
Description
No response
Steps to Reproduce
I use config variable as below. It works fine in usual. It occurs error during unit test as below:
command for running unit test server
\wso2mi-4.4.0\bin\micro-integrator.bat -DsynapseTest --env-file="\wso2mi-4.4.0\conf\file.properties"
{MI_HOME}\conf\file.properties
endpoint_pi_basicAuth=Basic d3NvMjp3c28y
{MI_PROJECT}\src\main\wso2mi\resources\conf\config.properties
endpoint_pi_basicAuth:string
Sequence:
<sequence name="PIHeaderSequence" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
<header name="Authorization" action="set" scope="transport"
expression="${configs.endpoint_pi_basicAuth}" />
</sequence>
error message
[2025-03-14 17:01:40,596] WARN {SynapseExpression} - Error evaluating expression: configs.endpoint_pi_basicAuth cause : Could not fetch the value of the key: endpoint_pi_basicAuth
Version
4.4.0
Environment Details (with versions)
No response
Hi There... I'm interested in to solve this issue. can you please assign to me
Hi Can I take this up? Thanks!
Hi I'm ojith, can I work on this issue?
Hi @a0529gox , This issue is interesting to resolve. Kindly assign it to me.
I'd be happy to have a look
Hi @a0529gox š,
Iām interested in working on this issue for Hacktoberfest.
I can help troubleshoot why unit tests fail with externalized configuration and provide a fix to ensure the configuration variables are correctly loaded during tests.
Could you kindly assign this issue to me? š