Commit Graph

13958 Commits

Author SHA1 Message Date
ionutboangiu
c49e67b2ed Handle SERVICE_UP/DOWN states on ServManager layer 2025-01-14 19:00:37 +01:00
ionutboangiu
dab152f976 Integrate StateServiceDOWN + registry related refactor
Removed redundant IsRunning service method
Removed registry from constructors
Pass registry to Start/Reload/Shutdown service methods
2025-01-14 19:00:37 +01:00
armirveliaj
9728908c56 Revise tests for sessions 2025-01-13 17:51:43 +01:00
armirveliaj
aea5fb0f18 Fix compilation errors 2025-01-13 13:39:50 +01:00
ionutboangiu
396227d639 Refactor ServiceIndexer implementation
Renamed to ServiceRegistry
Improved comments
2025-01-10 20:18:08 +01:00
ionutboangiu
20ee079e12 Use the waitForServicesToReachState helper 2025-01-10 20:18:08 +01:00
ionutboangiu
b68a804967 Implement helper methods for waiting on service states 2025-01-10 20:18:08 +01:00
ionutboangiu
09b75a1045 Let ServManager manage all services except itself 2025-01-10 20:18:08 +01:00
ionutboangiu
dcb38c78bf Implement function to check for service state 2025-01-10 20:18:08 +01:00
ionutboangiu
17405af987 Revise service manager logs
Logging is now done as ServiceManager level. Removed any other logs.
2025-01-10 20:18:08 +01:00
ionutboangiu
c8a3ebe5e8 Use channel instead of context to handle shutdown 2025-01-10 20:18:08 +01:00
ionutboangiu
d9359a4005 Implement GuardianService and ConfigService
And use ServiceIndexer to sync with them
2025-01-10 20:18:08 +01:00
DanB
dd299361e6 Rebase fixtures 2025-01-10 20:16:27 +01:00
DanB
4025e5a34b Sessions struct changes 2025-01-10 20:14:45 +01:00
gezimbll
2b04066504 added parsing the event for *usage opts in accounts 2025-01-10 12:31:44 +01:00
ionutboangiu
ff929c9f2a Revise and document rpc exporter it test 2025-01-08 20:32:55 +01:00
ionutboangiu
70f230788b Make test client constructor error clearer 2025-01-08 20:32:55 +01:00
ionutboangiu
4d9c0cb077 Bump mongo ansible role default version 2025-01-08 20:32:55 +01:00
ionutboangiu
26910c5c01 Change build tag for basics_it_test.go (temp)
currently depends on local cfg files
2025-01-08 20:32:55 +01:00
ionutboangiu
2339bff30d Fix compilation errors in unit tests
due to DynamicStringSliceOpt.Value being renamed to Values
2025-01-08 20:32:55 +01:00
ionutboangiu
96c957ba1c Format sessions/basics-it-test.go file 2025-01-08 20:32:55 +01:00
DanB
39952a3388 SessionS Authorize and ProcessCDR methods tested 2024-12-30 19:55:42 +01:00
DanB
c034868c43 debit and newBalanceOperators only works with abstract and concrete balances, ignore the rest 2024-12-23 17:47:26 +01:00
armirveliaj
8921bf8b99 Revise && add new unit tests 2024-12-20 18:01:15 +01:00
DanB
3c57a8ddca Properly name Values instead of Value within DynamicStringSliceOpt 2024-12-19 16:01:31 +01:00
DanB
6a087122de <RateS> RatingProfile fallback functionality 2024-12-17 20:45:45 +01:00
gezimbll
f30c8681b1 added unit tests in engine 2024-12-17 18:20:29 +01:00
gezimbll
36420e2b84 revised sortingStatIDs method for each rankingSorter 2024-12-16 20:36:25 +01:00
gezimbll
cd3159d8ea revised trend compress method and added store_interval tests for trends&rankings 2024-12-13 15:31:43 +01:00
ionutboangiu
da2052e7b3 Implement FilterService
And use ServiceIndexer to sync with it
2024-12-12 11:55:14 +01:00
ionutboangiu
db301f7901 Remove StorDB service param from service constructors
Use ServiceIndexer instead.
Remove CDRs ListenAndServe method.
Pass the storDB connection directly to constructors instead of the
channel.
2024-12-12 11:55:14 +01:00
ionutboangiu
10dfcc5e48 Remove dmS parameter from service constructors
Use ServiceIndexer instead
2024-12-12 11:55:14 +01:00
ionutboangiu
55ecdf45e4 Remove clsChan in favor of using the service indexer 2024-12-12 11:55:14 +01:00
ionutboangiu
98b5b74b23 Remove cacheS parameter from service constructors
ServiceIndexer will be used instead
2024-12-12 11:55:14 +01:00
ionutboangiu
77af4f95b3 Remove anzCh in favor of using the service indexer 2024-12-10 18:53:13 +01:00
ionutboangiu
0783984bfe Remove srvDep from services that don't use it 2024-12-05 20:12:08 +01:00
ionutboangiu
e51eed46e7 Revise analyzers integration test 2024-12-05 20:12:08 +01:00
ionutboangiu
34de7e2c4e Remove unused dependency waitgroups
to declutter cgr-engine.go a bit. Entire map will be removed in the future
2024-12-04 19:28:50 +01:00
ionutboangiu
79e461e7c5 Remove redundant internal channels
only from services that have dedicated files
2024-12-04 19:28:50 +01:00
ionutboangiu
fbc9afc784 Simplify indexer.AddService implementation 2024-12-04 19:28:50 +01:00
ionutboangiu
82c985cdbe servmanager: remove redundant subsystems map
ServiceIndexer can handle its usecases instead
2024-12-04 19:28:50 +01:00
ionutboangiu
cfdb3e80ca Integrate state deps across services for SERVICE_UP 2024-12-04 19:28:50 +01:00
ionutboangiu
c29f1fdd35 Remove services/cgr-engine.go
Trying to move services init before CGREngine constructor makes it pointless,
as it's only used as a dependency storage for services init.
2024-12-04 09:06:59 +01:00
DanB
2dfa1e7035 Adding initial stopChan to the engine 2024-12-01 20:22:47 +01:00
DanB
476f5ba877 Services with IntRPCConn method 2024-11-30 19:13:19 +01:00
DanB
6b241ee35b Adding serviceIndexer and StateDependencies 2024-11-28 14:56:03 +01:00
DanB
23e5f0e387 Add generic way to insert services inside services/CGREngine 2024-11-26 14:03:57 +01:00
DanB
76398441da Simplify running of the engine via only one Run command 2024-11-26 12:50:08 +01:00
DanB
3b195dcf1d Adding StateIndexer, ServiceIndexer, StateDeps 2024-11-23 20:14:07 +01:00
gezimbll
1c6c733a3f added dispatcher methods for rankings and trends 2024-11-22 20:29:27 +01:00