Commit Graph

105 Commits

Author SHA1 Message Date
Trial97
b4768ce99a Added ConfigSv1 and RateSv1 APIs back 2021-04-16 17:53:36 +02:00
Trial97
c04c0a5adb Added ConfigDB and option to read config from DB 2021-04-16 17:53:36 +02:00
Trial97
2da495af19 Starting adding back AttributesSv1 APIs 2021-04-13 13:35:03 +02:00
Trial97
3406d3c7c9 Updated based on new rpc library 2021-04-13 13:35:03 +02:00
andronache
32c234a6c7 In CGREvent changed Opts in APIOpts 2021-03-23 14:35:11 +01:00
porosnicuadrian
8b9508c5a2 Fixed tests by adding default usage + covered accounts 2021-03-19 18:50:52 +01:00
porosnicuadrian
93df974ba7 Fixed unit tests for rateProfile package and fields 2021-03-18 18:12:47 +01:00
porosnicuadrian
5d323f4671 Removed RateProfile from engine package to utils 2021-03-18 18:12:47 +01:00
andronache
3d08f30656 Fixed cover test 2021-02-25 18:14:21 +01:00
andronache
2edfd207d2 Refactoring and tests in services 2021-02-25 18:14:21 +01:00
porosnicuadrian
332b174915 Repaired tests in librates 2021-02-19 19:15:47 +01:00
TeoV
f6b6243961 Update RateS to seach for Usage in event in case is not found in Opts 2021-02-17 11:23:59 +01:00
DanB
5166bfe86f Adding DynamicWeight support to RateS 2021-02-16 18:03:00 +01:00
porosnicuadrian
2ab7db86da changed weight/rateWeight into dynamicWeight + tests 2021-02-15 20:28:00 +01:00
porosnicuadrian
ceb28a11b5 Commented part for a succesfully building 2021-02-15 20:28:00 +01:00
Trial97
6d9585b1ff Added integration tests for sessions routes max cost 2021-02-09 15:16:20 +01:00
TeoV
328d6d1fcb Beautify the code 2021-02-09 13:36:28 +01:00
TeoV
9090af6270 Fix unit tests after last commit 2021-02-09 13:36:28 +01:00
DanB
7465f25ba0 RateS - return ErrNotFound in case of no profile matched, AccountS - testAccountSv1MaxUsage 2021-02-08 17:10:46 +01:00
Trial97
5a25443e17 Updated the syntax for inline filters and attributes values 2021-02-05 17:41:56 +01:00
andronache
fcbd0f19fe Refactored tests in engine 2021-01-20 17:37:34 +01:00
TeoV
2700d58c0f Add comments where errors are not handled explicity 2021-01-19 13:12:52 +01:00
TeoV
ae146640f4 Start merging CGREventWithOpts with CGREvent 2021-01-14 10:30:35 +01:00
TeoV
66e2b4cd01 Remove RoundingMethod and RoundingDecimals from RateProfile 2021-01-12 20:02:01 +01:00
TeoV
d3adaf16a3 Update integration test 2021-01-12 12:48:43 +01:00
TeoV
0125824c9c Update integration test 2021-01-11 12:44:28 +01:00
TeoV
cb854d758f Update unit tests after RateS update 2021-01-11 12:44:28 +01:00
TeoV
5775d09c7b Add infrastructure for AccountS in DataManager 2020-12-21 10:19:59 +01:00
porosnicuadrian
457e638015 Updated a test in rates_test.go 2020-12-14 16:57:48 +01:00
porosnicuadrian
1221e72598 Covered rates to 100% 2020-12-14 16:57:48 +01:00
porosnicuadrian
5e3e53e3ed Cover tests for rates.go 2020-12-11 17:46:49 +01:00
TeoV
4b4aacc3b1 Add comments on benchmark tests 2020-12-10 17:58:08 +01:00
TeoV
b49f895cc2 Add benchmark in rates folder for V1CostForEvent function 2020-12-09 16:59:19 +01:00
DanB
53f8b34f01 ActionS - ActionProfile initial definition 2020-12-02 14:00:51 +01:00
porosnicuadrian
711d7d5a1a Removed error from NewDefaultCGRConfig signature's function 2020-12-02 14:00:35 +01:00
porosnicuadrian
4b4cb5d3d0 More tests for computeRateSIntervals 2020-12-02 14:00:35 +01:00
Trial97
9de6a2d172 Updated shutdown channel handling 2020-11-29 20:06:30 +01:00
porosnicuadrian
2ced7dbc26 More tests for computeRatesIntervals function + removed compressedEquals from the computeRateIntervals 2020-11-27 08:43:03 +01:00
porosnicuadrian
99e7623f51 Tests in rates directory + updated computeRateSIntervals function 2020-11-27 08:43:03 +01:00
porosnicuadrian
8ac450a396 Tests for librates.go 2020-11-27 08:43:03 +01:00
TeoV
318145d7c5 Populate other fields for RateCost and add an example of test for CorrectCost 2020-11-26 12:24:17 +01:00
porosnicuadrian
def6b2091e Removed full variable from compressEquals siganture's function 2020-11-25 14:22:55 +01:00
porosnicuadrian
08a8fedd5f More tests for computeRateSIntervals in rates directory 2020-11-25 14:22:55 +01:00
porosnicuadrian
9e83b9448e Moved connectFee upper in incremets intervals 2020-11-25 10:38:11 +01:00
porosnicuadrian
6a72adf9fa Added more tests for computeRatesIntervals function in rates directory 2020-11-25 10:38:11 +01:00
TeoV
380d6ae29b Add example test for cost with both FixedFee and RecurrentFee 2020-11-25 10:37:17 +01:00
DanB
0bbcdfa250 RateS - Apply FixedFee also for the second increment in Rate 2020-11-24 13:58:50 +01:00
DanB
4fcc3245af RateS - processing FixedFee in increments 2020-11-24 12:33:24 +01:00
TeoV
4c2b38f4a4 Move ConnectFee from RateProfile to IntervalRate from Rates 2020-11-24 11:11:16 +01:00
porosnicuadrian
7ec99afae9 Covered config by adding integration tests + removed error from singature's functions in config 2020-11-24 10:50:22 +01:00