Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-873

Generalize config usage in code

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Complete
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      • For now config parameters such as base dir, data dir, log dir, etc. are defined differently in different classes: some of them are passed via constructor parameters, some are taken directly from config, some are calculated. As a result it is hard to reconfigure such parameters.

      We need to remove direct config usage from the code. All the needed parameters should be read once from config and passed via constructors.

       

      • Tests do not use config. Testing environment is configured via temporary directories which are passed as a parameters. As a result it is hard to add additional configuration parameter and modify existing ones.

      We need to create special test config for the test environment.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dsurnin Dmitry Surnin
              Reporter:
              dsurnin Dmitry Surnin
              Watchers:
              Dmitry Surnin, Kelly Wilson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: