Page MenuHomePhabricator

[services] Tunnelbroker - Change `ConfigManager.load()` to use config file path as a parameter
ClosedPublic

Authored by max on May 25 2022, 1:11 PM.
Tags
None
Referenced Files
F2166690: D4129.id.diff
Tue, Jul 2, 4:55 AM
F2165681: D4129.id13135.diff
Tue, Jul 2, 2:36 AM
Unknown Object (File)
Sun, Jun 30, 8:23 PM
Unknown Object (File)
Wed, Jun 26, 11:31 AM
Unknown Object (File)
Wed, Jun 26, 11:31 AM
Unknown Object (File)
Wed, Jun 26, 11:31 AM
Unknown Object (File)
Wed, Jun 26, 11:28 AM
Unknown Object (File)
Wed, Jun 26, 11:00 AM

Details

Summary

To change the config file path for dev-mode introducing changes to the ConfigManager.load() method to use config file path as a parameter instead of the config file path inside the method itself.

Linear task: ENG-1101

Test Plan

Run yarn run-tunnelbroker-service service successfuly built and load the default config file.

Diff Detail

Repository
rCOMM Comm
Branch
config-load-change
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
tomek added 1 blocking reviewer(s): karol.
karol added inline comments.
services/tunnelbroker/src/Tools/ConfigManager.cpp
2

is this still needed?

This revision is now accepted and ready to land.May 26 2022, 5:58 AM
max added inline comments.
services/tunnelbroker/src/Tools/ConfigManager.cpp
2

is this still needed?

Yes, we are heavily using the default values from Constants.h as a default value if no value in the config file was provided.
For example, we are using the value from the constant at line 56 (AMQP_FANOUT_EXCHANGE_NAME).