Commit Graph

13464 Commits

Author SHA1 Message Date
DanB
14292a77ea RankingSummary structure, LastUpdate timestamp inside Ranking struct, Ranking documentation 2024-10-18 18:53:58 +02:00
gezimbll
2e192dde78 added trend dynamicDP in filters and GetTrendSummary API 2024-10-18 16:24:02 +02:00
DanB
dd59fcb553 computeRanking and V1GetRanking functions 2024-10-17 17:36:35 +02:00
DanB
8c68763020 Adding comments to trends and rankings defaults 2024-10-17 16:50:30 +02:00
DanB
e3f5b2f264 Protect Trend.asTrendSummary method 2024-10-17 16:15:39 +02:00
DanB
bb42cbac42 TrendSummary implementation 2024-10-17 16:12:42 +02:00
gezimbll
88805ac074 added get/set methods for ranking in datamanager 2024-10-17 15:54:53 +02:00
DanB
c1b0efd455 Adding reversed logic for sortingParams in RankingS 2024-10-17 14:37:54 +02:00
DanB
27ea475984 Adding RankingS Ascendent Sorter 2024-10-17 13:46:23 +02:00
DanB
ec23771789 Enhanced TestRankingDescSorterSortStatIDs 2024-10-17 13:20:26 +02:00
DanB
8b0279d341 Completing rankingDescSorter 2024-10-17 13:07:01 +02:00
gezimbll
1765be1247 modified ranking csv and model 2024-10-17 12:17:21 +02:00
DanB
ed8ac2a317 Adding rankingSorter interface 2024-10-16 20:09:24 +02:00
DanB
4d7cb6c88a Basic RankingS implementation 2024-10-16 18:44:57 +02:00
arberkatellari
762896c3d7 Revize authorization denial handling for sample FS dialplans 2024-10-16 18:44:36 +02:00
armirveliaj
a6d2a03dfd Adding rankings to config_defaults 2024-10-16 18:44:11 +02: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
dd95a2837a Revise registrarc integration test 2024-10-16 18:43:34 +02:00
ionutboangiu
531affc8ae Update test helpers
- added support for dynamic configuration for dbs
- ConfigJSON field can now be used to partially overwrite an existing
configuration
- extra cgr-engine flags can now be passed to the Run method
- added default db configs for mongo/internal
- implemented helper to load using cgr-loader
2024-10-16 18:43:34 +02:00
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