Commit Graph

13445 Commits

Author SHA1 Message Date
ionutboangiu
ab02a8a8dd Bump go version (1.22.5 -> 1.23.2)
needed for io.CopyFS function
2024-10-16 18:43:34 +02:00
ionutboangiu
b05ed15f25 Fix vet check errors and conflicts 2024-10-16 12:24:54 +02:00
ionutboangiu
429388367a Add relevant build constraints to engine/libtest.go
To skip this when compiling cgr-engine.
2024-10-16 12:24:54 +02:00
ionutboangiu
d4e4facc6b Revise NewRPCClient helper function 2024-10-16 12:24:54 +02:00
ionutboangiu
89dfc3e3d0 Centralize test RPC client constructor
For now, done only for general_tests
2024-10-16 12:24:54 +02:00
ionutboangiu
b7561497c7 Remove global err variable (general_tests)
Prevents compilation errors from tests moved to
flaky that use it.
2024-10-16 12:24:54 +02:00
ionutboangiu
4ec26a4996 Move test cgr-engine helpers to engine package 2024-10-16 12:24:54 +02:00
gezimbll
d50114fcbc moved trend compressing in datamanager 2024-10-14 17:10:16 +02:00
armirveliaj
51e376d59b Add new unit tests on engine && config 2024-10-14 17:06:29 +02:00
arberkatellari
2f05395ec1 Add cgr_max_usage variable to fsagent 2024-10-14 17:05:46 +02:00
armirveliaj
2137e141f6 Add coverage tests on engine 2024-10-14 16:04:06 +02:00
armirveliaj
4bf49be2be Add new unit tests on TrendS 2024-10-14 16:04:06 +02:00
ionutboangiu
2b8a8676b6 Update CI workflow names 2024-10-14 16:03:21 +02:00
ionutboangiu
9aad1582f5 Update CI badges and add integration tests badge 2024-10-14 16:03:21 +02:00
ionutboangiu
c11b38ace0 Add paths-ignore to skip CI for docs and README changes 2024-10-14 16:03:21 +02:00
ionutboangiu
520dca3204 Add tests for load balancing to multiple workers 2024-10-14 16:02:41 +02:00
gezimbll
3dccb44511 added compressing for metrics on trends 2024-10-14 16:01:32 +02:00
gezimbll
69f4f08770 added integration tests for trend event to thresholds,EEs && fixes 2024-10-14 16:01:32 +02:00
ionutboangiu
0a89b131be Add service toggle integration test 2024-10-08 20:53:36 +02:00
ionutboangiu
14e602452c Update rcvr name for TestEngine.Run method 2024-10-08 20:53:36 +02:00
ionutboangiu
6bc162cbc1 Register Ping method for ERs 2024-10-08 20:53:36 +02:00
ionutboangiu
18a11ceef3 Trigger workflows on push events 2024-10-08 20:49:35 +02:00
ionutboangiu
bfd83b51f5 Add possibility to manually trigger workflows
and bump workflow go version
2024-10-08 20:49:35 +02:00
gezimbll
e518e7b913 Integration test for scheduleAutomaticQueries && api for scheduled trends 2024-10-08 20:49:13 +02:00
DanB
9c05a5817e Updating TrendS with proper StoreInterval and EEsConns from configuration 2024-10-07 20:45:32 +02:00
armirveliaj
fbdc789f5c Add new options to trends configuration
- store_interval
- ees_conns
- ees_exporter_ids
2024-10-07 20:03:38 +02:00
DanB
dfc1ed0f0b Completing TrendS documentation for readthedocs 2024-10-06 17:59:25 +02:00
ionutboangiu
796b508353 Improve dispatcher tests (incomplete) 2024-10-05 20:35:45 +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
armirveliaj
8733082fbc Add new unit tests on libtrends 2024-10-05 20:34:43 +02:00
DanB
86ed9e932b Alpha code for TrendS 2024-10-05 20:30:22 +02:00
DanB
bb6f9ca5ae TrendS scheduleAutomaticQueries function 2024-10-03 18:41:11 +02:00
gezimbll
06a9e1b661 changed DataManager.GetTrendProfiles to GetTrendProfileIDs with new signature 2024-10-03 17:43:26 +02:00
DanB
28eb68241c Small trend customisations 2024-10-02 21:28:59 +02:00
DanB
149ccc3eac Trend.tMux as struct instead of pointer 2024-10-02 19:04:09 +02:00
gezimbll
f0598b050b added unit test for Trend.cleanup && updated TestTrendSchedule 2024-10-02 16:15:27 +02:00
gezimbll
b134df83b7 added it tests and new APIs for TrendS 2024-10-01 20:05:29 +02:00
armirveliaj
d9a5458a43 Add new trends config option: scheduled_ids 2024-10-01 20:04:22 +02:00
ionutboangiu
769293d4db XML rdr: use rowNr instead of reqVars for line nr 2024-09-26 17:33:16 +02:00
ionutboangiu
2e97cedc0c Add test for ERs *fileLineNumber *vars field 2024-09-26 17:33:16 +02:00
DanB
a30286667a Renaming V1ScheduleTrendQueries to V1ScheduleQueries to avoid repetition in API name 2024-09-24 20:26:57 +02:00
DanB
68a5a76b93 Adding TrendS.V1ScheduleTrendQueries API 2024-09-24 20:17:11 +02:00
DanB
52523d0a73 TrendS - cleanup method 2024-09-24 16:32:50 +02:00
arberkatellari
3df926c642 Improve V1ReprocessCDRs flags handling 2024-09-24 12:29:41 +02:00
armirveliaj
085365e35d Revise redundant error handling in StatQueue rem methods 2024-09-24 09:24:35 +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
arberkatellari
bd6f5c661d Add *eventTimestamp for EES 2024-09-23 11:52:31 +02:00
arberkatellari
c7e7634189 Add CDRsV1.ReprocessCDRs 2024-09-23 11:52:31 +02:00
armirveliaj
407f5fa062 Add new unit tests on apier/v1 2024-09-23 11:51:47 +02:00
armirveliaj
4b35d74a29 Add new unit tests on engine and config 2024-09-23 11:51:47 +02:00