Commit Graph

13155 Commits

Author SHA1 Message Date
ionutboangiu
fc0666d2ac Needed in order to make accounting through opensips possible.
Not the final version. Incomplete list, as I only added a bit
more than the bare minimum. Also should be reviewed regarding
the V,M,P bits.
2024-05-05 14:25:14 +02:00
ionutboangiu
40eaa8739c Add tut entry for opensips+diameter
INCOMPLETE
- shared cgrates configuration for three different scenarios
- every scenario has its own opensips configuration. For more info
check README or read comments inside the configuration
- added script for converting unix time to suitable Event-Timestamp
format
- added a dictionary.opensips entry for making Credit-Control diameter
requests possible
2024-05-05 14:25:14 +02:00
ionutboangiu
9af344aac7 Revise cgrates ansible role 2024-05-05 14:25:14 +02:00
ionutboangiu
16c61eeb9d Implement opensips ansible role 2024-05-05 14:25:14 +02:00
ionutboangiu
b690f11db7 Implement freediameter ansible role 2024-05-05 14:25:14 +02:00
ionutboangiu
fb19544718 Revise pjsua role
- changed default version to 2.14.1
- ensured that tutorial call scrips still use 2.9
- made role idempotent
- added pjsua_helper_scripts default var that if set to true will deploy
two scripts: pjsua_listen and pjsua_call (defaults to false)
- added option to decide whether we delete the pjsua repo post install
- made binary path configurable (will be used for both pjsua as well as
the helper scripts
- use copy instead of command when copying binary to its final path
- import roles directly instead of through tasks where applicable (call
roles)
2024-05-05 14:25:14 +02:00
ionutboangiu
6a8bf17917 Run go mod tidy 2024-05-05 14:25:14 +02:00
DanB
5cf5032fe0 CDRs rals_conns will rate by default 2024-05-03 18:14:58 +02:00
DanB
b9f527b599 Updating JanusGo library 2024-05-03 17:27:24 +02:00
DanB
6d9e151933 Updating janusgo, AAA basic implementation for janus_agent 2024-04-30 11:26:58 +02:00
DanB
bde44ccfd6 Refactoring JanusAgent to work with echotest plugin 2024-04-28 19:33:03 +02:00
gezimbll
82b0e02788 integration tests for janus agent 2024-04-26 17:02:18 +02:00
gezimbll
6ef3dc8599 increase margin for guardian unit test 2024-04-24 17:09:54 +02:00
gezimbll
77662e9f88 updated & added postman apis 2024-04-24 17:09:54 +02:00
gezimbll
5f941b1f9d changed conReqs to not populate buffer at start 2024-04-24 17:09:54 +02:00
ionutboangiu
afed0dd805 Run go mod tidy
To make build workflow action pass. Seems to just move the package
from the group of indirect dependencies to direct ones.
2024-04-24 16:18:14 +02:00
ionutboangiu
5e0b90ffa7 Revise docker ansible script
- use include/import_tasks instead of the deprecated include.

Used include_tasks for nginx tasks because they might cause problems
due to depending on the nginxConfig variable inside the conditional
statements.
Used import_tasks for docker tasks since they seem like they can be
safely pre-processed.

- remove task installing docker module for python
2024-04-21 17:56:31 +02:00
DanB
d8059908eb JanusAgent with janusgo dependency and start/shutdown methods 2024-04-20 21:12:51 +02:00
ionutboangiu
546ef39d54 Revise agents *uch unit test
- increase margin of error by 1ms
- in case of failure, retrieve the expiry time and log it along the
current time. Makes troubleshooting easier in the future.
2024-04-20 12:21:57 +02:00
ionutboangiu
4aff83b5b4 Wait for TPs to be loaded in rpsubj_set_it_test.go 2024-04-20 12:21:57 +02:00
ionutboangiu
5c1e65256c Don't trim single digit values when parsing cron
Fixes an issue where 0 values would become empty inside the cron
expressions.

Added unit tests for the edge cases and grouped them together with
the previous ones under the same table test.

When creating the StartTime field, assign time.Now() to a centralised
variable and reuse it instead of calling time.Now() repeatedly.
2024-04-20 12:21:57 +02:00
gezimbll
8b69a2a01e updated postman api collection 2024-04-16 21:10:37 +02:00
ionutboangiu
4964a462cf Add flaky constraint to random routes unit tests
Also increase margin of error for guardian tests 5ms->10ms.
2024-04-16 21:10:13 +02:00
ionutboangiu
73c54cdcf2 Add test & benchmarks for msgpack library update
Check test comment for complete steps.
2024-04-16 21:10:13 +02:00
ionutboangiu
5391a3f055 Retrieve os distribution from builtin facts in mongo role 2024-04-16 21:10:13 +02:00
ionutboangiu
1a1ba55b25 Switch to ugorji/go/codec
Should be equivalent to ugocodec if enabling TimeNotBuiltin.
2024-04-16 21:10:13 +02:00
gezimbll
920a5ab343 updated go.mod 2024-04-16 12:23:38 +02:00
gezimbll
cf720b0618 added postgres configuration option to choose the schema(#4318) 2024-04-16 12:23:38 +02:00
DanB
863f837bd2 Adding janusgo to list of dependencies 2024-04-16 11:59:17 +02:00
ionutboangiu
6c0ed14f4d Wait for TPs to be loaded inside it test 2024-04-15 10:39:33 +02:00
ionutboangiu
88b02a3249 Set kafka MaxAttempts to 1
This leaves it to the ExportWithAttempts function to handle the
connect attempts.
2024-04-15 10:39:33 +02:00
ionutboangiu
e025a0dc89 Revise tests
-ensure failure messages are useful
-optimize tests with needlessly large sleep times
-enforce a stricter margin for error
2024-04-12 13:13:17 +02:00
ionutboangiu
56360e481b Update ltcache dependency to latest version 2024-04-11 18:23:57 +02:00
ionutboangiu
e4dd349c26 Lower chances of scheduler it test failing
By using a referenceTime variable as close as possible to the
time of the request.
2024-04-11 18:23:57 +02:00
ionutboangiu
e488f7f13a Update bleve library to latest version 2024-04-11 18:23:57 +02:00
ionutboangiu
2c1a90c9c6 Optimize and fix unstable tests
Revise backup loop tests to not rely on time.Sleep anymore and remove
unused fields from them.

Removed 3ns TTL from tpreader test dataDB configuration that caused in-
consistent results.

Ensure connManager cache is reloaded in filter tests. Before they could
cause deadlocks.

Remove redundant inits, global vars and setup tests for debit and
accounts tests.

Optimize some analyzers tests.
2024-04-11 18:23:57 +02:00
ionutboangiu
04bff19ced Optimize AgentRequest test (2s->0.03s)
Lowering the cfg cache TTL to 5ms instead of 1s was enough to get
consistent results.
2024-04-11 18:23:57 +02:00
ionutboangiu
2d141c642a Lower the min size we expect from mem/cpuprof files 2024-04-10 12:56:36 +02:00
ionutboangiu
5807b4f4bb Bump actions versions in github workflows 2024-04-10 12:56:36 +02:00
ionutboangiu
5f32a59ac8 Wait for TPs to be loaded in *transfer_balance test 2024-04-10 12:56:36 +02:00
ionutboangiu
cf158a3b40 Revise client init in nats ers test
The usual newRPCClient is not reachable due to its file having
a different build constraint
2024-04-10 12:56:36 +02:00
ionutboangiu
be554bd4fe Revise integration script to return correct exit code
Before it was returning 1 always.
2024-04-10 12:56:36 +02:00
DanB
bddeaff5dd Implementation of janusHTTPjsonDP 2024-04-09 20:33:56 +02:00
ionutboangiu
d8946e73ee Make small revisions to a few integration tests
-update cached filter indexes count
-add the flaky constraint to a couple more tests
-fix unstable cores integration test
-fix unstable filterindexes integration test
2024-04-09 20:24:01 +02:00
gezimbll
a3e3cde958 added janusconn methods for loading from json 2024-04-09 20:22:31 +02:00
DanB
9b87b32abf Adding JanusConn to config 2024-04-09 14:59:00 +02:00
gezimbll
c5c8ca5991 added methods for janusagent configuration 2024-04-09 13:43:43 +02:00
gezimbll
883633732b updated postman api collection 2024-04-09 10:28:07 +02:00
DanB
8db91ca479 Basic service infrastructure for JanusAgent 2024-04-08 20:09:06 +02:00
ionutboangiu
8ba8bfcff4 Revise failing analyzers test
We were sniffing for the wrong method. Also reduced time.Sleep
needed to make sure query is registered from 10s to 10ms.
2024-04-08 17:34:13 +02:00