Commit Graph

65 Commits

Author SHA1 Message Date
ionutboangiu
4c8cf69f70 Auto-configure loader in test suite if needed 2024-11-07 15:38:37 +01:00
ionutboangiu
099f6023ee Improve engine setup helpers
- added hook support (executed after parsing config but before starting
  engine)
- renamed TestEnvironment.Setup -> TestEngine.Run as it represents the
  setup for a single cgr-engine instance
- replaced t.Log with t.Error for engine process kill error
- improved option comments

- 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-23 21:11:25 +02:00
ionutboangiu
3e98e37db3 Revise NewRPCClient helper function 2024-10-23 21:11:25 +02:00
ionutboangiu
e228dda013 Improve test 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
- removed engineDelay parameter
- replaced t.Log with t.Error for engine process kill error
- improved option comments
2024-09-23 20:28:26 +02:00
ionutboangiu
bc89fe320e add tests for arith operations (AttributeS) 2024-09-05 20:46:40 +02:00
ionutboangiu
0f70af84e9 centralize test flags for shared use across tests 2024-08-15 18:17:33 +02:00
ionutboangiu
0dfb3b860d Centralize RPCClient constructor 2024-08-15 18:17:33 +02:00
gezimbll
32ed816de7 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package functions 2023-11-01 21:38:27 +01:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
ionutboangiu
3e22cef9cb Revise integration tests after StorDB addition 2023-05-03 10:05:28 +02:00
adi
734776b113 Unified consts of opts 2022-10-03 18:29:24 +03:00
ionutboangiu
0653e9b5d7 Apply go fmt 2022-08-24 09:32:23 +03:00
ionutboangiu
e98f230f04 Change type name from Blockers to DynamicBlockers 2022-05-10 17:05:31 +02:00
ionutboangiu
fed1597aa3 Revise api tests 2022-05-06 20:49:11 +02:00
porosnicuadrian
5537e8993d Improved stats + tests 2022-05-06 17:00:30 +02:00
ionutboangiu
887b6db5b8 Add blockers field to chargers + tests 2022-04-29 20:33:51 +02:00
porosnicuadrian
fead904f9b Tested stats metrics blockers functionality 2022-04-29 14:43:18 +02:00
porosnicuadrian
7b1d8fc958 Tested attribute blocker functionality 2022-04-29 14:43:18 +02:00
porosnicuadrian
b16b44732e Modified blocker into Blockers for attributes 2022-04-21 15:27:27 +02:00
ionutboangiu
24834ba933 Add additional tests for indexes 2022-03-26 09:13:26 +01:00
porosnicuadrian
1e202feb5b TPExporter 2022-03-11 11:21:56 +01:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
andronache98
e2901630c9 Removed json files using stordb 2022-03-09 14:14:30 +01:00
porosnicuadrian
c7092cc0df Renamed AteredFields + updated uniqueALteredFields method 2022-03-01 15:51:07 +02:00
porosnicuadrian
75fc37db2c renamed into Filters + uniqueAlteredFields 2022-02-25 14:38:26 +01:00
porosnicuadrian
bf5c694ecd Combined matchedProfile and alteredField for attributes 2022-02-24 17:28:38 +01:00
ionutboangiu
52a1902c65 Make APIAttributeProfile Weights field of type DynamicWeights 2022-02-20 10:37:19 +01:00
ionutboangiu
c6ca3573ae Add APIAttributeProfile and structs related to it 2022-02-17 21:14:48 +02:00
andronache98
6cddc10b00 Renaming count APIs 2022-02-13 15:09:53 +02:00
ionutboangiu
4839c8451a Repair failing tests after APIAttributeProfile struct removal 2022-02-08 17:21:39 +01:00
ionutboangiu
d1716ec7dc Remove APIAccount and all structs related to it 2022-02-08 12:30:20 +01:00
ionutboangiu
6612b461c4 Remove APIAttributeProfile and all structs related to it 2022-02-07 20:05:36 +01:00
andronache98
aaada9da07 Fixed tests 2022-02-06 09:52:26 +01:00
andronache98
ff9257fd64 Repaired most tests 2022-02-06 09:52:26 +01:00
andronache98
3ed0e7eaa2 Changed Weight to Weights of type DynamicWeights in AttributeProfile 2022-02-06 09:52:26 +01:00
porosnicuadrian
5fb7878879 Added cfg for notexists_indexed_fields 2022-01-20 21:03:47 +01:00
porosnicuadrian
3ebb6936c5 Improved indexes for exists + tests 2022-01-20 21:03:47 +01:00
andronache98
21cab1a2f0 Tests for GetAttributes and refactored function to use APIAttributeProfile 2022-01-13 17:39:50 +01:00
ionutboangiu
74a43f2524 Fix api tests for Get*IDs functions 2022-01-10 19:59:10 +01:00
Trial97
b9a97ba9d2 Updated disptacher tests 2021-12-22 17:48:42 +01:00
porosnicuadrian
362dd780df Fixed attributes integration tests by adding processRuns in opts 2021-09-23 18:35:25 +02:00
Trial97
6a3f8ddc57 Updated config 2021-09-20 10:45:14 +02:00
ionutboangiu
4c71c77cdb Remove unneeded verification and refactor test 2021-09-12 13:23:08 +02:00
ionutboangiu
6062cdda21 Fix failing tests 2021-09-12 13:23:08 +02:00
ionutboangiu
a2829a3f1a Add AttributeIDs to opts struct 2021-09-12 13:23:08 +02:00
ionutboangiu
6d091ea30e Add default_opts for attributes 2021-08-26 18:09:25 +02:00
porosnicuadrian
c178c25a4d Fixed indetation 2021-08-24 20:19:53 +02:00
Trial97
fbdac6f42c Added tenant to the MatchedProfiles reply in attributes 2021-07-09 16:32:49 +02:00
ionutboangiu
bfa3fb7a4c Fix integration tests in apis after changing GetAttrForEvent reply type 2021-06-08 11:54:23 +02:00