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)
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
Unknown Object (File)
Tue, Jun 18, 11:04 AM
Unknown Object (File)
Sun, Jun 16, 8:14 PM
Unknown Object (File)
Sun, Jun 16, 8:14 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).