-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added ability to load spending plans from environment variable. (…
…#3153) * feat: Added ability to load spening plans from environment variable. Signed-off-by: ebadiere <[email protected]> * feat: Now uses one property for either spending plan file or JSON content. Signed-off-by: ebadiere <[email protected]> fix: removed .only Signed-off-by: ebadiere <[email protected]> fix: Cleaned up file and env var evaluation. Signed-off-by: ebadiere <[email protected]> fix: Flaky unit test fix. Signed-off-by: ebadiere <[email protected]> feat: Refactored implementation and updated tests. Signed-off-by: ebadiere <[email protected]> * fix: Adding updated package-lock.json Signed-off-by: ebadiere <[email protected]> * fix: Updated global variable reference to the new HBAR_SPENDING_PLANS_CONFIG Signed-off-by: ebadiere <[email protected]> fix: Test fix. Signed-off-by: ebadiere <[email protected]> fix: Removed irrelevant test since we now use either env var or file for spending plan. Signed-off-by: ebadiere <[email protected]> fix: Updated HBAR_SPENDING_PLANS_CONFIG from HBAR_SPENDING_PLANS_CONFIG_FILE Signed-off-by: ebadiere <[email protected]> * fix: Clean up. Updated logging and appropriate tests. Signed-off-by: ebadiere <[email protected]> * fix: Replaced the useInMemoryRedisServer with the start and stop redis in the before and after mocha functions. Signed-off-by: ebadiere <[email protected]> * fix: Test fix. Added the envName back to the loggerService test. Signed-off-by: ebadiere <[email protected]> * Update docs/configuration.md Co-authored-by: Victor Yanev <[email protected]> Signed-off-by: Eric Badiere <[email protected]> * fix: Added back file not found tests. Signed-off-by: ebadiere <[email protected]> * fix: Updated file name in `withOverriddenEnvsInMochaTest` with existing file. Signed-off-by: ebadiere <[email protected]> * fix: Clear the spending plan repository in a test as in CI it seems to already be populated. Signed-off-by: ebadiere <[email protected]> fix: Cleanup. Signed-off-by: ebadiere <[email protected]> * fix: Added more time for the HBar Rate Limiter to update expenses in the background. Signed-off-by: ebadiere <[email protected]> * chore: divided hbar limtier tests into different batches Signed-off-by: Logan Nguyen <[email protected]> * fix: Removed the clearing of the spending plans. Signed-off-by: ebadiere <[email protected]> * chore: divided hbar limtier tests into different batches (#3181) * chore: divided hbar limtier tests into different batches Signed-off-by: Logan Nguyen <[email protected]> * fix: fixed acceptance.yml Signed-off-by: Logan Nguyen <[email protected]> --------- Signed-off-by: Logan Nguyen <[email protected]> * Update packages/relay/src/lib/config/hbarSpendingPlanConfigService.ts Co-authored-by: Nana Essilfie-Conduah <[email protected]> Signed-off-by: Eric Badiere <[email protected]> * fix: Restored class comments and corrected HBAR_SPENDING_PLAN_CONFIG. Signed-off-by: ebadiere <[email protected]> * test: fix hbarSpendingPlanConfigService.spec.ts Signed-off-by: Victor Yanev <[email protected]> * test: remove `.only` from `describe` Signed-off-by: Victor Yanev <[email protected]> * test: disconnect redis client after tests with shared cache Signed-off-by: Victor Yanev <[email protected]> --------- Signed-off-by: ebadiere <[email protected]> Signed-off-by: Eric Badiere <[email protected]> Signed-off-by: Logan Nguyen <[email protected]> Signed-off-by: Victor Yanev <[email protected]> Co-authored-by: Victor Yanev <[email protected]> Co-authored-by: Logan Nguyen <[email protected]> Co-authored-by: Nana Essilfie-Conduah <[email protected]> Co-authored-by: Victor Yanev <[email protected]>
- Loading branch information
1 parent
1af16a2
commit d110979
Showing
10 changed files
with
117 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.