ionutboangiu
897d6f0da1
integrate IPs with SessionS
2025-12-16 13:23:17 +01:00
ionutboangiu
8443af3a89
Relicense from GPLv3 to AGPLv3
2025-10-29 19:42:40 +01:00
ionutboangiu
8ce296cdaf
Rename event type ProcessTime to EventPerformanceReport
2025-10-13 09:56:31 +02:00
ionutboangiu
9ef9684a3d
agents: add processor/reader id to stats/th events
2025-08-18 10:09:51 +02:00
ionutboangiu
9833152e38
agents: create dedicated events for stats processing
2025-08-04 17:56:08 +03:00
ionutboangiu
3077544d62
Add ReplyState field to track successful/failed requests
2025-08-04 17:56:08 +03:00
arberkatellari
73667f343f
Improve filters validation
2025-07-02 21:46:45 +02:00
ionutboangiu
7e1b4a5024
send ERs ProcessTime events to stats/thresholds
2025-06-24 18:16:09 +02:00
ionutboangiu
676900b4c3
update DB casing for InitDB helpers
2025-05-29 15:41:53 +02:00
arberkatellari
5463eb61c6
Adjust tests to InternalDB constructor
2025-04-11 13:09:50 +02:00
arberkatellari
ed584364d1
Add tests for internal DB dump and restore
2025-04-06 12:08:40 +02:00
arberkatellari
a168f262e2
Add dump and restore functionality for internal DBs
2025-04-06 12:08:40 +02:00
gezimbll
18644c7f0b
added option to compress CostDetails before stored in db
2025-03-20 19:37:43 +01:00
gezimbll
260b32323d
added option to pass UpdateSession event through stats or thresholds
2025-03-18 20:08:05 +01:00
ionutboangiu
96c2a3acee
Prevent deadlocks in file reader unit tests
2025-01-22 17:37:17 +01:00
ionutboangiu
c171937c3d
Add WaitGroup to ensure safe file processing in ERs
...
For cases when run_delay > 0.
2025-01-21 19:30:33 +01:00
arberkatellari
b8cc20bb7c
Add sqlBatchSize to ERS SQL OPTS and adjust delete functionality
2025-01-14 17:04:18 +01:00
arberkatellari
2252765e93
Add 'ees_ids' field to ERs readers config
2024-12-20 17:33:45 +01:00
arberkatellari
d35b14b6b9
Add ability to ERS to update or move ERS SQL events to a new table & add *export flag for ERS readers
2024-12-20 13:26:06 +01:00
gezimbll
cf44898b98
revise tests for trends storeinterval && file readers
2024-12-07 20:59:04 +01:00
arberkatellari
6c752ac10f
Improvements to ERS SQL filters
2024-12-03 18:36:22 +01:00
arberkatellari
041b14fa03
Improvements to ERS SQL filters
2024-12-03 18:36:22 +01:00
arberkatellari
321910d181
Add WHERE statement availability and non-delete option to ERS SQL reader
2024-12-03 18:36:22 +01:00
gezimbll
3974192787
added asynchronus startdelay for file readers and nats
2024-11-26 11:20:40 +01:00
gezimbll
e48eb5df13
added StartDelay for ers processing
2024-11-15 20:58:10 +01:00
ionutboangiu
aad5c4a66f
Add benchmark for diameter+caps
2024-10-29 18:53:22 +01:00
ionutboangiu
ec301b1c9d
Improve nats integration test
...
- made use of the test setup helpers.
- used t.Cleanup instead of defer.
- instead of waiting 50ms for the nats-server to start, used a helper
hook to attempt connections in fibonacci intervals. On success it
keeps a reference to the connection for later usage.
- handle error for stream delete function executed during cleanup.
- shorten time.Sleep durations when waiting for exports to finish.
- extract the cache itemID checking logic into a separate func
- retry failed requests in fibonacci intervals for up to 500ms
2024-10-16 18:43:34 +02:00
ionutboangiu
769293d4db
XML rdr: use rowNr instead of reqVars for line nr
2024-09-26 17:33:16 +02:00
ionutboangiu
01dd4696cf
Fix flaky nats integration test
...
Was failing on the Jetstream JWTAuth case with error:
nats: API error: code=500 err_code=10047 description=insufficient
storage resources available
The issue was with the previously generated credentials. Generated
them again and added the program used as a comment at the end of
the file for future reference"
2024-09-23 11:54:13 +02:00
armirveliaj
7560328388
Add coverage tests on ers and config
2024-09-10 13:20:39 +02:00
gezimblliku
ccc999642d
added *fileLineNumber variable
2024-08-22 20:40:46 +02:00
armirveliaj
2f9f07a976
Add new unit tests on ees and ers
2024-08-09 09:18:46 +02:00
arberkatellari
0bab7d5557
Add reader id within the *vars in ERs
2024-08-09 09:14:24 +02:00
gezimbll
5f941b1f9d
changed conReqs to not populate buffer at start
2024-04-24 17:09:54 +02:00
ionutboangiu
cf158a3b40
Revise client init in nats ers test
...
The usual newRPCClient is not reachable due to its file having
a different build constraint
2024-04-10 12:56:36 +02:00
ionutboangiu
d8946e73ee
Make small revisions to a few integration tests
...
-update cached filter indexes count
-add the flaky constraint to a couple more tests
-fix unstable cores integration test
-fix unstable filterindexes integration test
2024-04-09 20:24:01 +02:00
ionutboangiu
3062113a61
Make go vet pass
...
The rpcclient constructor could not see the centralized
Encoding flag because it didn't have the necessary build
constraints. Added the constraints in lib_test.go files
where it wasn't alone. In all the other cases, it was
moved to the first file where it was needed.
2024-04-08 13:14:02 +02:00
ionutboangiu
16eb745f00
Centralize test flags in utils for shared use across tests
2024-04-08 13:14:02 +02:00
ionutboangiu
5c1e128f4f
Update behaviour of file readers using inotify
...
Ensure that files already existing in the source path are processed
before the reader starts listening for filesystem change events.
2024-04-04 12:31:18 +03:00
ionutboangiu
a362511d7a
Define param struct for ErSv1.RunReader API + refactoring
...
Rename dir field to sourceDir in file event readers for clarity.
2024-04-04 12:31:18 +03:00
ionutboangiu
5116a23f5b
Set ChargerProfile through TPs instead of API in tests
...
Only for agents/ers tests. Done to prevent cyclic imports when
adding ers APIs to apier package.
In case of v2.AttrSetAccount, use a literal struct instead.
2024-04-04 12:31:18 +03:00
ionutboangiu
b9a39e233f
Implement ErSv1.ProcessDir api
...
cores.Server, analyzer object and internal conn channel specific to ERs
are now part of the ERService struct and are passed to its constructor.
2024-04-04 12:31:18 +03:00
ionutboangiu
b9b07dc561
Remove redundant dir parameter from processFile methods
...
Applies to both file readers and loader (for loader, the blank statement
was used anyway).
It's redundant because for file readers, the rdr.dir value was always
passed as the parameter when it was already part of the method's object.
Parameter had to also be removed from the WatchDir function and the
functions it depends on.
2024-04-04 12:31:18 +03:00
ionutboangiu
85864ccaa3
Extract common dir processing logic to a func
...
It will be reused for all file readers.
Rename rdrDir field to dir (redundant prefix).
2024-04-04 12:31:18 +03:00
ionutboangiu
619a1efa50
Revise ers integration tests
...
They also do not depend on nats server dependency anymore.
2024-03-22 15:12:04 +01:00
gezimbll
66940db0b0
changed concurrentEvents naming in ers
2024-03-13 18:26:01 +01:00
gezimbll
21d65b3810
added concurrent event processing for ers
2024-03-13 18:26:01 +01:00
ionutboangiu
0aea8ac641
Revert "Move CGREvent from utils to engine"
...
This reverts commit 02195c47ed .
2024-03-04 09:49:15 +01:00
ionutboangiu
02195c47ed
Move CGREvent from utils to engine
2024-02-27 17:16:57 +01:00
ionutboangiu
36bdc41e97
Add support for kafka ssl encryption
...
For both poster and reader.
Added integration test.
2024-01-23 14:12:33 +01:00