Commit Graph

13208 Commits

Author SHA1 Message Date
ionutboangiu
b7dacfe8a6 Revise APIerSv1.ReplayFailedPosts API + tests
- renamed parameter type: ArgsReplyFailedPosts -> ReplayFailedPostsParams
- renamed param fields:
  - FailedRequestsInDir -> SourcePath
  - FailedRequestsOutDir -> FailedPath
- changed param fields types from *string to string
- used the SourcePath and FailedPath params directly instead of creating separate variables
- used filepath.WalkDir instead of reading the directory and looping over the entries
- used slices.ContainsFunc to check if the file belongs to any module (if 1+ is specified)
- used filepath.Join instead of path.Join
- used the path provided by WalkFunc instead of building the file paths ourselves
- made error returns more descriptive
- added logs for directories/files that are skipped
- paths that cannot be accessed are skipped after logging the error
2024-06-06 13:30:14 +02:00
ionutboangiu
89f97d45e1 Bump version in nats ansible role + formatting 2024-06-06 13:30:14 +02:00
ionutboangiu
5ca6898cb4 Update integration test setup helpers
- Pass the testing.T variable to all the helpers.
- Fail directly using t.Fatal instead of returning errors and
  checking them in the parent function.
- Use t.Cleanup to ensure engine is closed after the test instead
  of returning a shutdown function and using it with defer.
- Use t.TempDir to create temporary directories for configuration
  and tariffplans
- Add t.Helper() method call to all helper functions.
2024-06-06 13:30:14 +02:00
ionutboangiu
1485e77d55 Add workflow step to set up debug session (commented) 2024-06-06 13:30:14 +02:00
ionutboangiu
448eea3918 Format some ansible roles 2024-06-06 13:30:14 +02:00
ionutboangiu
c32de12cee Reduce client connection attempts to test engine status (tests)
200 -> 16

Previously, considering the fibonacci back off strategy, if engine failed to
start it would have tried to attempt connections for 2.862799e+33 years.

Now, the amount of attempts is 16, equivalent to around 2 and a half seconds.
Should be more than enough, considering that usually 6-7 attempts are enough.
2024-06-06 13:30:14 +02:00
armirveliaj
f1d0be170d Revise and Add new unit tests on engine 2024-06-06 13:17:59 +02:00
armirveliaj
e20200c30a Revise and Add new unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
36c623599e Add new unit tests on engine 2024-06-06 13:17:59 +02:00
armirveliaj
eba876eec8 Add new unit test on agents 2024-06-06 13:17:59 +02:00
armirveliaj
b4f889247f Add unit tests on utils 2024-06-06 13:17:59 +02:00
armirveliaj
044e56a6a4 Add unit tests on engine 2024-06-06 13:17:59 +02:00
armirveliaj
ae7c27da0a Add unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
23d6820253 Add unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
8992da64b4 Revise unit test on ees 2024-06-06 13:17:59 +02:00
armirveliaj
09e9939482 Add unit tests on ees 2024-06-06 13:17:59 +02:00
armirveliaj
3863a37ecb Add unit tests on dispatchers 2024-06-06 13:17:59 +02:00
armirveliaj
0a5645bd28 Add unit tests on agents 2024-06-06 13:17:59 +02:00
armirveliaj
0e82785173 Add unit tests on engine 2024-06-06 13:17:59 +02:00
armirveliaj
39e3d04fe5 Add new unit tests in engine 2024-06-06 13:17:59 +02:00
armirveliaj
68f1663688 Add new unit tests in migrator 2024-06-06 13:17:59 +02:00
armirveliaj
58dc0f0ae2 Revise unit tests in engine 2024-06-06 13:17:59 +02:00
armirveliaj
70f4f44421 Add Unit Tests for Engine 2024-06-06 13:17:59 +02:00
armirveliaj
cc98314426 Add unit tests for Dispatcher,Engine,Agents 2024-06-06 13:17:59 +02:00
armirveliaj
12b2e659b9 Add unit tests 2024-06-06 13:17:59 +02:00
ionutboangiu
0c87b48c5b Update fsock library version 2024-05-23 10:20:04 +02:00
gezimbll
c41bbcf119 revised janusagent and thresholds it test 2024-05-23 00:15:50 +02:00
armirveliaj
db0e663560 Coverage test for config 2024-05-23 00:13:59 +02:00
gezimbll
01e0b50d3a revise tests for disabling rals on cdrs.processevent 2024-05-18 16:57:45 +02:00
armirveliaj
f2cb8bc07c Add coverage unit test for config pkg 2024-05-18 16:56:47 +02:00
gezimbll
a8b8c84dda updated check on cost details
changed the check of cdr usage to  be less or equal with usage in event cost
2024-05-16 17:40:10 +02:00
armirveliaj
1ef9ea768e Add unit test for orderedmap 2024-05-16 16:28:21 +02:00
armirveliaj
8e23794576 Revise unit tests
prevent panic for xmldp unit test
sort slice before comparing in radiuscfg unit test
2024-05-16 16:28:21 +02:00
armirveliaj
0e4ab4f322 Added Unit Tests in config 2024-05-16 16:28:21 +02:00
gezimbll
64692891bb added V1GetActiveSessionIDs method for JanusAgent && revised tests 2024-05-16 16:24:50 +02:00
ionutboangiu
af3c2b88c7 Remove top-level changelog symlink for now 2024-05-16 14:46:30 +02:00
ionutboangiu
c4f498d41b Revert "Restore changelog and update symlink to it"
This reverts commit 158dce7323.
2024-05-16 14:46:30 +02:00
ionutboangiu
89670cb586 Increase margin of error for loader unit test 2024-05-16 14:46:30 +02:00
ionutboangiu
8be19292aa Implement sipp ansible role 2024-05-16 14:46:30 +02:00
ionutboangiu
75694bd75d Bump go version to 1.22.3 2024-05-16 14:46:30 +02:00
ionutboangiu
37b0a154a4 Update opensips tutorial configurations
For both tutorials and tutorial_tests
2024-05-16 10:29:05 +02:00
ionutboangiu
8bf2ae0d38 Implement ansible opensips playbook for call tests 2024-05-16 10:29:05 +02:00
ionutboangiu
f87e52cf63 Update ansible calls playbooks
Fixes issue where cgrates role would attempt to run setup
scripts for postgres, when postgres is not installed.
2024-05-16 10:29:05 +02:00
ionutboangiu
c91fbafe36 Restore compatibility with OpenSIPS
For OpenSIPS 3.x, set "client_protocol" to 1.0 in the json configuration
under the "sessions" section. The current default protocol version is 2.0.

Addresses #4339
2024-05-16 10:29:05 +02:00
Dan Christian Bogos
b11d16a2b3 Update README.md
Remove references towards IRC since outdated.
2024-05-13 13:14:37 +02:00
armirveliaj
ff0bca41f3 Add coverage test 2024-05-12 13:11:02 +02:00
gezimbll
624aa2b3f2 update threshold to set snooze time after actions 2024-05-09 12:34:42 +02:00
armirveliaj
d2b4a9ba81 Adding Contributor 2024-05-09 12:07:53 +02:00
DanB
bc3b665187 Updating go toolchain to 1.22.3 inside ansible role 2024-05-08 11:32:28 +02:00
DanB
31935cc995 Updating go checksum in ansible script 2024-05-08 11:15:13 +02:00