Commit Graph

2682 Commits

Author SHA1 Message Date
gezimbll
a63b180f2a Integration tests fixes & deleting copr ansible scripts 2023-08-07 11:41:48 +02:00
ionutboangiu
ef4a59c31e Apply gofmt to make workflow pass 2023-07-21 09:00:46 +02:00
gezimbll
2c1f5012fc Updated sentrypeer filter value types 2023-07-14 17:24:03 +02:00
gezimbll
8ed7bdd060 Added it test_for sentrypeer filter 2023-07-14 17:24:03 +02:00
gezimbll
1b1dd13677 Separating opts for each eventexporter type and fixing tests 2023-06-22 10:36:46 +02:00
gezimbll
3fbb546c83 Fixes on integration tests 2023-06-07 10:32:32 +02:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
ionutboangiu
f2201f3e62 Revise err handling for CSV storage constructor
NewFileCSVStorage() now returns an error besides the storage struct itself, which is
logged and returned instead of calling log.Fatal() which was causing the engine to
crash.

Fixed compilation errors by creating the CSVStorage separately and passing it as an
argument to the TpReader constructor.
2023-05-23 03:41:07 -04:00
ionutboangiu
373df2329c Revise CDR rerating
If the reRate parameter is set to true, also set the refund to true.

The rerate parameter is now no longer hardcoded to true for the RateCDRs API.If
required, the "*rerate" flag must be provided by the caller.

In case CostDetails is not populated, retrieve it from StorDB if possible
and add it to the CGREvent before converting to CDRs.

Now that the refund happens before the debit, revise the expected values for
the testV1CDRsProcessEventWithRefund subtest within the
apier/v1/cdrs_it_test.go file.
2023-04-20 20:06:16 +02:00
ionutboangiu
d262aaac8b Revise CDR rerating
If the reRate parameter is set to true, also set the refund to true.

In case CostDetails is not populated, before attempting to refund try to
retrieve it from StorDB.

Now that the refund happens before the debit, revise the expected values for
the testV1CDRsProcessEventWithRefund subtest within the
apier/v1/cdrs_it_test.go file.
2023-04-19 16:09:41 +02:00
arberkatellari
311d01861d Add Integration test for ResourceSv1GetResourceWithConfig 2023-04-06 11:50:03 +02:00
gezimbll
b221a385e4 changed internal db type to *internal 2023-03-08 19:15:23 +01:00
gezimbll
5c4bf0e538 changing db type constants with leading * 2023-03-08 19:15:23 +01:00
gezimbll
f6ab8b599f IT test for setting balance uuid 2023-02-17 12:18:22 +01:00
ionutboangiu
b27ed9f53e Fix caps error typo 2023-02-16 11:28:36 +01:00
ionutboangiu
7c7c701b2c Revise caps integration tests (error handling) 2023-02-16 11:28:36 +01:00
ionutboangiu
3b0a397cd0 Make caps codec return error through API instead of directly 2023-02-16 11:28:36 +01:00
Eng Zer Jun
21bf25f038 Move from streadway/amqp to rabbitmq/amqp091-go
The `github.com/streadway/amqp` module is no longer actively maintained.
The new module is now maintained by the RabbitMQ core team under a
different package name.

Reference: https://github.com/rabbitmq/amqp091-go
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-02-02 08:34:14 +01:00
adi
4c9d737b1d it tests and driver comments deleted 2023-01-13 16:22:48 +01:00
adi
0ba12befd3 Verified overwriting filters and profiles for indexes 2023-01-07 17:49:41 +01:00
ionutboangiu
4305c505a8 Set contexts/subsystems to *any if empty + tests 2022-11-16 10:14:45 +01:00
ionutboangiu
7771de5e07 Apply go fmt project wide 2022-11-11 13:43:51 +01:00
adi
d7ee81c86e Changed cache verification replication/remote 2022-10-21 10:12:44 +02:00
adi
eb1000fcb9 New errors for dispatcher hosts/profile 2022-10-19 10:31:10 +02:00
ionutboangiu
c2e847018a Add EEs APIs to dispatchers + tests 2022-10-14 15:21:19 +02:00
adi
9c3da4aa21 Integrated CallCache opts for dispatcher 2022-10-10 18:22:03 +02:00
ionutboangiu
895c140209 Port dispatcher changes from 1.0 to v0.11 2022-09-25 12:17:37 +02:00
ionutboangiu
bdd0124e1d Repair failing tests caused by fibDuration update 2022-05-28 09:50:01 +02:00
porosnicuadrian
8941b1ef0d Added *ec field to ees as DataProvider 2022-02-22 17:37:36 +01:00
andronache98
97b5e72296 Finished api for panic in coresv1 2021-12-20 15:49:22 +01:00
andronache98
86374960de Further modified panic api 2021-12-20 15:49:22 +01:00
andronache98
767bcc9a96 Modified api for panic 2021-12-20 15:49:22 +01:00
andronache98
fa121eb28b Modified panic api in coresv1 2021-12-20 15:49:22 +01:00
andronache98
95633e7b85 Added panic api in coresv1 for testing 2021-12-20 15:49:22 +01:00
ionutboangiu
40eb832060 Fix all compilation errors related to ers after making ees opts of type struct 2021-11-29 20:57:39 +01:00
ionutboangiu
941531039e Fix integration tests 2021-11-24 10:10:53 +01:00
ionutboangiu
d4123e9df3 Fix the way context is passed between subsystems and fix some integration tests 2021-11-22 11:15:45 +01:00
ionutboangiu
53c5bca394 Fix integration tests 2021-11-15 20:37:38 +01:00
ionutboangiu
1901be0485 Add opts for the routes subsystem 2021-11-15 20:37:38 +01:00
ionutboangiu
007cc0e7c8 Replace ArgRSv1ResourceUsage struct with CGREvent and fix tests 2021-11-11 12:22:41 +02:00
ionutboangiu
89782f8bdb Add opts for resources and fix compilation errors 2021-11-11 12:22:41 +02:00
ionutboangiu
777580a06e Add opts field for thresholds cfg struct and use the CGREvent instead of the ArgsProcessEvent struct 2021-11-05 21:15:50 +02:00
ionutboangiu
5802e868c8 Remove StatsArgsProcessEvent and use CGREvent in its stead 2021-11-04 20:08:29 +02:00
ionutboangiu
2e241d9632 Remove AttrArgsProcessEvent type and use CGREvent in its stead 2021-11-03 21:03:33 +02:00
ionutboangiu
48feaf2bed Add opts field for attributes cfg struct and fix compilation errors 2021-11-03 21:03:33 +02:00
andronache
bcb564240e Corrected header in multiple files 2021-11-01 13:49:33 +02:00
andronache
94edb432e5 Cover test for new cache APIs 2021-10-27 19:47:15 +03:00
Trial97
910105182b Updated integration tests 2021-10-21 14:30:20 +03:00
Trial97
69a48c2572 Updated integration tests 2021-10-21 14:30:20 +03:00
Trial97
d97433909f Updated unit test 2021-10-21 14:30:20 +03:00