HomePhabricator
Diffusion Comm 1fb489207de6

[native-rust-library] Backup service config

Description

[native-rust-library] Backup service config

Summary:
ENG-5346

This diff introduces the config for backup URL and refactors the existing identity service config code so that it can be reused between identity and backup.

Test Plan:
Added assert_eq!(BACKUP_SOCKET_ADDR, ""); in the test to get the current value of BACKUP_SOCKET_ADDR in the panic message. Then I've run these command and checked the value of BACKUP_SOCKET_ADDR:

  • cargo test --release, no file -> backup.commtechnologies.org
  • cargo test --release, file -> value in the file
  • cargo test, file -> value in the file
  • cargo test, no file -> backup.staging.commtechnologies.org

Reviewers: varun, bartek, kamil

Reviewed By: varun, bartek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10261

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Dec 8 2023, 6:14 AM
Reviewer
varun
Differential Revision
D10261: [native-rust-library] Backup service config
Parents
rCOMM30677f8b76ea: [backup-client] Fix lockfile
Branches
Unknown
Tags
Unknown

Event Timeline