10435 Commits

Author SHA1 Message Date
DanB
a2953d6ca7 Release v0.10.4 v0.10.4 2024-09-24 11:30:24 +02:00
ionutboangiu
6cda8498b6 Add draft changelog 2024-09-23 11:21:29 +02:00
ionutboangiu
3c4f8a6c03 Add test for combined destinations to flaky
fails randomly only for *internal db
2024-09-23 11:20:39 +02:00
ionutboangiu
f1cc2d5102 Remove redundant returns after log.Fatal 2024-09-23 11:20:39 +02:00
ionutboangiu
798fc33bfc cgr-engine: Revise flag parsing error handling
Use flag.ExitOnError for automatic error handling.
Remove manual error check in main().
Set proper exit codes: 0 for help, 2 for parsing errors.
Avoid misleading '<InitS> error' log on help requests.
2024-09-23 11:20:39 +02:00
arberkatellari
7add01320e Revise balance blockers 2024-09-09 16:43:27 +02:00
arberkatellari
88ff4d9c4f Add active time checker on DebitConnectionFee 2024-09-09 16:43:27 +02:00
ionutboangiu
df7b65833a remove deprecated math/rand.Seed calls
see https://pkg.go.dev/math/rand#Seed
2024-09-05 20:58:34 +02:00
ionutboangiu
0aa5cf38e8 apply partial debit before stopping due to blocker 2024-09-05 20:57:43 +02:00
ionutboangiu
668f421842 remove unused DryRun field from CallDescriptor
dryRun vars will also not be considered anymore in the balance
blocker condition.
2024-09-05 20:57:43 +02:00
ionutboangiu
d510b12d2a add balance blocker functionality test 2024-09-05 20:57:43 +02:00
ionutboangiu
b7b66804b1 add helpers for easier test setup 2024-09-05 20:57:43 +02:00
gezimblliku
94bde601b0 updated fsock library && fsagent 2024-08-21 21:08:24 +02:00
gezimblliku
a07a8dd952 updated dependencies with the last versions 2024-08-21 21:08:24 +02:00
ionutboangiu
778f5293cd update kafka version in role (3.7.0->3.8.0) 2024-08-19 12:11:51 +02:00
ionutboangiu
db5341c1c7 Return offline and dispatcher tests to main suite
they should be passing consistently now
2024-08-19 12:11:51 +02:00
ionutboangiu
331b50ae52 update rpcclient library 2024-08-19 12:09:44 +02:00
gezimblliku
6c8f53435b fixed go vet warnings 2024-08-16 12:34:25 +02:00
ionutboangiu
d507e29a8f update rpcclient lib (fixes #4413) 2024-08-14 14:05:01 +02:00
ionutboangiu
656911e4aa Exclude expired metrics before retrieval
Remove all StatQueue locking methods (unused).
2024-08-09 09:16:36 +02:00
armirveliaj
7cf8c69bc8 Add new unit tests 2024-08-02 09:36:19 +02:00
armirveliaj
968c9ebb31 Add new unit tests on migrator 2024-08-02 09:36:19 +02:00
armirveliaj
06ff5ef377 Add new unit tests on agents 2024-08-02 09:36:19 +02:00
armirveliaj
a263e25858 Add new unit tests on agents 2024-08-02 09:36:19 +02:00
armirveliaj
fd5be71657 Add new unit tests on loaders 2024-08-02 09:36:19 +02:00
armirveliaj
564bb136fe Add new unit tests on engine 2024-07-22 17:34:31 +02:00
armirveliaj
124ac6fbb6 Add new unit tests on engine 2024-07-21 19:05:17 +02:00
armirveliaj
54fb100268 Add new unit tests on migrator 2024-07-21 19:05:17 +02:00
armirveliaj
8ea764e602 Add new unit tests on agents 2024-07-21 19:05:17 +02:00
armirveliaj
5e5d615aad Add new unit tests on migrator 2024-07-21 19:05:17 +02:00
armirveliaj
99e278040e Add new unit tests on agents 2024-07-21 19:05:17 +02:00
armirveliaj
8edc239bd1 Add new unit tests 2024-07-21 19:05:17 +02:00
armirveliaj
f84e7c29a3 Add coverage tests on agents 2024-07-14 14:08:07 +02:00
armirveliaj
13f3f4dc11 Add new unit tests on config 2024-07-14 14:08:07 +02:00
armirveliaj
8b5e8e7820 Add new unit tests on agents 2024-07-14 14:08:07 +02:00
armirveliaj
ba6f2d9744 Add new unit tests on agents 2024-07-14 14:08:07 +02:00
armirveliaj
a5033b215a Add test for the mocked goRPC.Cancel API 2024-07-14 14:08:07 +02:00
ionutboangiu
4e6cbe26c5 Ensure refund flag is not ignored when rerate is true
By default setting rerate to true also sets refund to true, but
flags should take precedence over defaults.

If rerate is true and refund is false, remove any previous
CostDetails from event to force rerate.

Centralize the parsing of processing flags.
2024-07-14 13:29:23 +02:00
ionutboangiu
0860642d97 Add flaky build constraint to tutorial it tests
Randomly failing with -dbtype=*internal.
2024-07-08 12:11:11 +02:00
ionutboangiu
c0da66959b Mock GoRPC Cancel method to handle harmless RPC error
This 'can't find service' error is harmless and occurs due to a
mismatch between the standard net/rpc server and the cgrates/birpc
client. The standard server does not support context cancellation
requests sent by the client.

Fixes #4357
2024-07-08 12:11:11 +02:00
arberkatellari
8269e0b99c Update rpcclient revising error handling 2024-06-30 17:55:32 +02:00
ionutboangiu
7a7b928aa0 Don't trim single digit values when parsing cron
Fixes an issue where 0 values would become empty inside the cron
expressions.

Added unit tests for the edge cases and grouped them together with
the previous ones under the same table test.
2024-06-30 17:52:29 +02:00
gezimbll
cc7210bbee changing ownership of package directories not recursively 2024-06-10 18:55:20 +02:00
gezimbll
bf700c9d72 remove duplicate map of aliases on getExtraFields() 2024-06-07 17:14:17 +02:00
gezimbll
fccda430c9 added aliases for extra_fields 2024-06-07 17:14:17 +02:00
gezimbll
9dfd36e7f2 updated RemTpData to check args map in switch case 2024-06-07 16:41:29 +02:00
gezimbll
b9fcf8b24e adding time.Sleep in dispatcher tests 2024-06-06 14:33:25 +02:00
gezimbll
6b530e94b7 revising integration tests 2024-06-06 14:33:25 +02:00
ionutboangiu
c3f47d5119 Optimize removeFilterIndexesForFilter function + tests
Previously made two trips (get and set) for each group of items from
an index key being removed. Now, we fetch indexes once at the beginning
and store the updated indexes once at the end.

Related to #4357
2024-06-06 13:29:10 +02:00
ionutboangiu
e0d020b5d6 Add support for Git 2.45+ iso-strict date format
Git 2.45+ introduced a backward incompatible change in the iso-strict
date format, showing time in the Zulu timezone with "Z" suffix instead
of "+00:00". This commit adds parsing for the new date format before
falling back to the old format.

Revise GetCGRVersion error messages.
Revise GetCGRVersion unit test.
2024-06-06 11:13:32 +02:00