Commit Graph

10070 Commits

Author SHA1 Message Date
gezimbll
65b07db6da Improving and adding unit tests 2023-03-28 17:59:51 +02:00
gezimbll
454c611b51 Improving unit tests 2023-03-28 17:59:51 +02:00
gezimbll
9e48ba08f9 Improving unit tests at engine 2023-03-28 17:59:51 +02:00
gezimbll
abc1285262 Adding test for ratingprofiles 2023-03-28 17:59:51 +02:00
gezimbll
2b52938bfb Adding and improving unit tests at engine 2023-03-28 17:59:51 +02:00
ionutboangiu
15b404e8cf Revise randomly failing tests 2023-03-28 17:59:32 +02:00
ionutboangiu
3fac828218 Remove responder from the list of services managed by the ServiceManager
Since Responder can be started/reloaded/shut down through RALs, there is no need for ServiceManager to also be responsible for it. It also solves an issue where the RALs service would not be properly started because the manager had already started Responder before, and when RALs would try to do it as well, it returned with a 'service already running' error.
2023-03-28 17:59:32 +02:00
ionutboangiu
0473e66555 Revise config reload tests in services
A time.Sleep() of 10 milliseconds has been added after starting the services in order to wait for the goroutine that handles reloads to get instantiated. This solves the occasional deadlock that happens when a reload signal is sent to a subsystem that requires storDB before sending it to storDB itself. One consequence of waiting is that where we previously expected the DataDB service to not be running yet, now it has enough time.
2023-03-28 17:59:32 +02:00
gezimbll
8a18eb87ec Changed path for git repo 2023-03-21 16:22:50 +01:00
gezimbll
3b64bb4fef Updated paths for copr ansible scripts 2023-03-21 16:22:50 +01:00
gezimbll
9adc103dff Improving & Adding unit tests at engine 2023-03-20 17:52:04 +01:00
gezimbll
39393aecb7 Improving coverage for unit tests 2023-03-19 20:48:14 +01:00
gezimbll
35091a5538 Adding unit tests at engine 2023-03-19 20:48:14 +01:00
ionutboangiu
5bf525d4c0 Revise failing integration tests from general_tests
The time it takes to register RPC methods is quite long and sometimes it is causing errors when methods that are not yet registered are being called. Therefore, the 'waitRater' default value has been increased from 100ms to 500ms.

For 'cdrs_onlexp_it_test.go':
- 2 functions have been added that create and delete the kafka topic relevant to the test. This ensures that the topic exists before export and also that it is deleted to avoid the data from within to influence subsequent tests;
- the maximum duration that we are waiting for the amqp messages to be consumed has been increased. Since it usually takes anywhere between 300ms and 1.9s to read a message, it has been increased to 2 seconds;
- amqp queues are now deleted once we are done verifying the exports.

For 'cdrs_post_failover_it_test.go', we now make sure that the failed posts directories exist and are empty before starting the engine.

For 'cdrs_processevent_it_test.go':
- some of the stat queue items were expiring too quickly, causing the test for fail sometimes. In order to solve the issue, I had to modify increase the TTL, but since the 'testit' tariff plan is also used by other tests, I decided to create the .csv files within the test, taking from 'testit' only the relevant information;
- same issue as in the previous test was occuring here. Was fixed in the same way;
- removed some useless calls.
2023-03-19 19:32:25 +01:00
ionutboangiu
ee7a0d131a Revise kafka poster integration test
When verifying whether the export was successful, read message by message instead of reading in batches.
2023-03-19 19:32:25 +01:00
gezimbll
e822a5ae63 Improving coverage test at engine 2023-03-15 17:44:46 +01:00
gezimbll
c5abf600cf Improving coverage tests at engine 2023-03-15 11:43:43 +01:00
gezimbll
51af0635b0 Improving coverage test at engine 2023-03-15 11:43:43 +01:00
gezimbll
67d9c634f6 Improving coverage tests engine 2023-03-10 14:14:16 +01:00
ionutboangiu
01556a299f Revise it tests 2023-03-10 14:07:59 +01:00
ionutboangiu
24d5a654e5 Get rid of logs from kafka cdre test 2023-03-10 14:07:59 +01:00
ionutboangiu
d264dd1c5a Move Unguard one level up to avoid deadlock on the continue case 2023-03-10 14:07:59 +01:00
gezimbll
0f6ef42c2d improving coverage test at engine 2023-03-08 19:14:24 +01:00
gezimbll
8d2450ecea improving coverage tests at engine 2023-03-08 19:14:24 +01:00
gezimbll
64c6d3358f adding meta storage types for migrator 2023-03-08 19:14:24 +01:00
gezimbll
df09129ad5 adding the db path from the stordb type 2023-03-08 19:14:24 +01:00
gezimbll
7dcbd09a1f replacing non-meta constants for storage types 2023-03-08 19:14:24 +01:00
gezimbll
c5acb15d4a improving coverage tests at engine 2023-03-01 17:09:47 +01:00
gezimbll
951595d55d improving coverage tests at engine 2023-03-01 17:09:47 +01:00
gezimbll
bc486a0373 updated folder name for copr ansible script 2023-03-01 17:09:47 +01:00
gezimbll
877f726a35 ansible scripts for copr server 2023-03-01 17:09:47 +01:00
gezimbll
2a4801b9c1 spec and macros file for copr build 2023-03-01 17:09:47 +01:00
ionutboangiu
db8f2e4826 Compare GetStorageType() output to the correct constant 2023-03-01 16:06:36 +01:00
ionutboangiu
50a2bdc505 Add test to compare costs between *prepaid and *postpaid calls 2023-03-01 16:06:36 +01:00
ionutboangiu
b52d049219 Revise freeswitch ansible script 2023-02-27 09:10:31 +01:00
ionutboangiu
dbd497c4d4 Update to latest amqp 1.0 package version and fix compilation errors 2023-02-22 18:19:47 +01:00
ionutboangiu
5a0e973c5e Bump go version 2023-02-22 18:19:47 +01:00
arberkatellari
8bef5ca2e4 Improved testing 2023-02-21 18:28:13 +01:00
ionutboangiu
edcb7d6e6b Update amqpv1 library and fix compilation errors 2023-02-21 18:26:01 +01:00
ionutboangiu
6a7fde0c99 Add integration tests for amqpv1 exporter 2023-02-20 19:45:08 +01:00
ionutboangiu
c9ec5e53c8 Leave exportPath unprocessed for kafka + tests 2023-02-20 19:45:08 +01:00
ionutboangiu
39d50fd211 Revise kafka writer definition 2023-02-20 19:45:08 +01:00
ionutboangiu
40943dda09 Add test for *amqp_json_cdr exporter 2023-02-20 19:45:08 +01:00
ionutboangiu
6f91f027c8 Leave exportPath unprocessed for s3&sqs + tests 2023-02-17 12:19:22 +01:00
gezimbll
5557cde746 IT test for setting balance uuid 2023-02-17 11:30:30 +01:00
ionutboangiu
c2a824a94b Leave export_path as is when exporting (AMQP) + tests 2023-02-16 11:25:20 +01:00
gezimbll
682904ad9d replacing streadway/amqp with rabbitmq/amqp091-go 2023-02-02 17:49:05 +01:00
gezimbll
795706b73c improving coverage at engine 2023-02-02 17:49:05 +01:00
gezimbll
46c4a22825 improving coverage at engine 2023-02-02 09:39:36 +01:00
gezimbll
2a1b696bf3 improving coverage at engine 2023-01-30 08:12:30 +01:00