9 Commits

Author SHA1 Message Date
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01:00
ionutboangiu
4ec26a4996 Move test cgr-engine helpers to engine package 2024-10-16 12:24:54 +02:00
ionutboangiu
1ab7f80d50 Improve engine setup helpers
- added hook support (executed after parsing config but before starting
  engine)
- made db resets configurable
- merged config parsing helper with the main Setup function
- renamed TestEnvironment.Setup -> TestEngine.Run as it represents the
  setup for a single cgr-engine instance
- removed engineDelay parameter. Added helper to wait up to 200ms for
  the APIerSv1 service to be up and running to prevent 'can't find
  service' errors.
- replaced t.Log with t.Error for engine process kill error
- improved option comments
2024-10-05 20:35:22 +02:00
arberkatellari
932e86aa53 Revise balance blockers 2024-09-09 18:36:31 +02:00
ionutboangiu
c4899cc01b Update blocker tests and add test for balance factor 2024-01-29 09:57:49 +01:00
DanB
e0d15f1a9e Prevent balance Blocker to partially debit 2024-01-19 16:28:09 +01:00
ionutboangiu
2fab0b92c5 Update balance blocker test (incomplete) 2024-01-19 10:35:18 +01:00
ionutboangiu
22d7ecf784 Add test for multiple groups pricing +testsuite update 2023-11-14 18:26:05 +01:00
ionutboangiu
d241f5deee Add test for balance blocker functionality
References issue #4163 and PR #4178.
2023-11-02 19:38:24 +01:00