Changing the ConfigManager.load() function to include the sandbox config condition to avoid duplications and fix some of the tests.
Details
Run build with tests: yarn run-tunnelbroker-service-in-sandbox or build inside the Docker container with the export COMM_TEST_SERVICES=1 command before the cmake command.
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
What do you think about introducing this change in load method of config manager? (to avoid the duplication)
The main changes are already done (landed) in D4129. It's a follow-up fix! I've missed this and some of the tests failed. This diff is a fix.
Ok, got it. After seeing this code I think it would be better to remove the parameter from load method and move the if there. Current solution requires adding this logic to every test case - this isn't maintainable. If the change from this diff was included in D4129 I would suggest the same. Can we do this?
Changing the ConfigManager.load() function to include the sandbox config condition to avoid duplications and fix some of the tests.
I've checked the function usage and yes we can do this instead. Good catch, thanks! The load() function was changed and the old function moved to the private space and renamed to loadConfigFile().
services/tunnelbroker/src/server.cpp | ||
---|---|---|
43 ↗ | (On Diff #15003) | We should keep tunnelbroker because argv[0] can contain a lot of noise, e.g. path. |