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
F2193552: D4129.id13203.diff
Thu, Jul 4, 10:28 PM
F2193539: D4129.id13135.diff
Thu, Jul 4, 10:26 PM
F2186467: D4129.id13130.diff
Thu, Jul 4, 3:17 AM
Unknown Object (File)
Wed, Jul 3, 1:58 PM
Unknown Object (File)
Tue, Jul 2, 5:57 PM
Unknown Object (File)
Tue, Jul 2, 4:55 AM
Unknown Object (File)
Tue, Jul 2, 2:36 AM
Unknown Object (File)
Sun, Jun 30, 8:23 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #13135)

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 ↗(On Diff #13135)

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