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
Unknown Object (File)
Fri, Nov 22, 12:53 PM
Unknown Object (File)
Fri, Nov 22, 12:53 PM
Unknown Object (File)
Fri, Nov 22, 12:53 PM
Unknown Object (File)
Fri, Nov 22, 12:52 PM
Unknown Object (File)
Wed, Nov 20, 10:05 AM
Unknown Object (File)
Sun, Nov 10, 3:37 AM
Unknown Object (File)
Sun, Nov 3, 1:30 PM
Unknown Object (File)
Sun, Nov 3, 1:30 PM

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).