Commit Graph

10390 Commits

Author SHA1 Message Date
gezimbll
9dfd36e7f2 updated RemTpData to check args map in switch case 2024-06-07 16:41:29 +02:00
gezimbll
b9fcf8b24e adding time.Sleep in dispatcher tests 2024-06-06 14:33:25 +02:00
gezimbll
6b530e94b7 revising integration tests 2024-06-06 14:33:25 +02:00
ionutboangiu
c3f47d5119 Optimize removeFilterIndexesForFilter function + tests
Previously made two trips (get and set) for each group of items from
an index key being removed. Now, we fetch indexes once at the beginning
and store the updated indexes once at the end.

Related to #4357
2024-06-06 13:29:10 +02:00
ionutboangiu
e0d020b5d6 Add support for Git 2.45+ iso-strict date format
Git 2.45+ introduced a backward incompatible change in the iso-strict
date format, showing time in the Zulu timezone with "Z" suffix instead
of "+00:00". This commit adds parsing for the new date format before
falling back to the old format.

Revise GetCGRVersion error messages.
Revise GetCGRVersion unit test.
2024-06-06 11:13:32 +02:00
ionutboangiu
225b7d058d Run dispatcher tests separately in workflow until fixed
Removed dispatchers from testable integration packages inside
script. Add back once its unstable tests are fixed.
2024-06-06 11:13:32 +02:00
ionutboangiu
1150290640 Add workflow step to set up debug session (commented) 2024-06-06 11:13:32 +02:00
ionutboangiu
a765454180 Port relevant new/changed ansible roles from master 2024-06-06 11:13:32 +02:00
ionutboangiu
4daeb35609 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 11:13:32 +02:00
ionutboangiu
7e663e7b60 Bump workflow actions to latest versions 2024-06-06 11:13:32 +02:00
ionutboangiu
52e879b505 Bump go version 2024-06-06 11:13:32 +02:00
ionutboangiu
29c570b935 Run unstable offline tests separately in actions
Added condition to skip them during integration_test.sh. Has
    to be removed once the issue is fixed.
2024-06-06 11:13:32 +02:00
ionutboangiu
c0b665a015 Make go vet pass
The rpcclient constructor could not see the centralized
Encoding flag because it didn't have the necessary build
constraints. Added the constraints in lib_test.go files
where it wasn't alone. In all the other cases, it was
moved to the first file where it was needed.

Moved resources cache tests relying on DBType flag value
to a separate integration test file. Before it was getting
skipped for *internal anyway.
2024-06-06 11:13:32 +02:00
ionutboangiu
6d3d7b3b23 Run integration and flaky scripts separately in workflow
flaky_test.sh failure will be ignored
2024-06-06 11:13:32 +02:00
ionutboangiu
e531b6e66d Add script to specifically run flaky tests 2024-06-06 11:13:32 +02:00
ionutboangiu
6ac644e85c Revise integration script to return correct exit code
Before it was always returning 1
2024-06-06 11:13:32 +02:00
ionutboangiu
41c62c1291 Add flaky build constraint to unstable tests 2024-06-06 11:13:32 +02:00
ionutboangiu
454c0552f2 Centralize test flags in utils for shared use across tests 2024-06-06 11:13:32 +02:00
ionutboangiu
1c45173c8e Remove top-level changelog symlink for now 2024-05-16 14:45:21 +02:00
ionutboangiu
424416d8c9 Revert "Restore changelog and update symlink to it"
This reverts commit 48f4ef1f90.
2024-05-16 14:45:21 +02:00
gezimbll
27a9179ab8 revise threshold snooze time to update only after sleep interval 2024-05-07 13:39:32 +02:00
ionutboangiu
141c0efbd7 Bump kafka version inside ansible role 2024-04-11 13:23:23 +02:00
ionutboangiu
56f8549ea4 Ensure EC FieldAsInterface method works correctly
- trim fldPath Increments before retrieving the field
- Rating map can be accessed from Accounting
- ExtraCharges can be accessed from Accounting
- RatingUnit fields that did not represent the id of
another EC struct are now retrievable
- add unit tests
2024-04-11 13:23:23 +02:00
ionutboangiu
09f4ede812 Remove condition when moving package files to pkg host 2024-02-28 12:45:55 +01:00
ionutboangiu
0ee816a3f0 Update config sanity check for xmldp
Before it included paths starting with prefixes other than
~*req which is incorrect.
2024-02-28 12:45:55 +01:00
ionutboangiu
48f4ef1f90 Restore changelog and update symlink to it 2024-02-28 12:45:55 +01:00
ionutboangiu
4850a75499 Bump go version 2024-02-28 12:45:55 +01:00
Bas Couwenberg
f1c5aae7da Update deb_packages playbook to support multiple distributions. 2024-02-27 16:25:57 +01:00
Bas Couwenberg
d8c5a61253 Fix script-not-executable Lintian issue. 2024-02-27 16:25:57 +01:00
Bas Couwenberg
f9bfb8cba1 Fix executable-not-elf-or-script Lintian issues. 2024-02-27 16:25:57 +01:00
Bas Couwenberg
4a7fb0b2ae Fix systemd-service-file-missing-documentation-key Lintian issue. 2024-02-27 16:25:57 +01:00
Bas Couwenberg
ce88516024 Fix maintainer-script-lacks-home-in-adduser Lintian issue. 2024-02-27 16:25:57 +01:00
Bas Couwenberg
4846cbdd81 Modernize Debian packaging. 2024-02-27 16:25:57 +01:00
Bas Couwenberg
ef1696d5e1 Pass commit date and hash to -ldflags separately. 2024-02-27 16:25:57 +01:00
ionutboangiu
b2b82dd55b Update fsock library 2024-01-06 17:16:10 +01:00
ionutboangiu
7eb78cb40e Rename composeURI func to composeMongoURI
To reflect that it's used exclusively for MongoDB (for now at least).

Also added a descriptive comment to the function.
2023-12-07 16:57:43 +01:00
ionutboangiu
f23179899c Revise buildURL function
Renamed to composeURI.

Use simple string concatenation to build URI because there is
no need to keep the Parse call as a validation step. Any issue
would be caught when establishing a connection.
2023-12-07 16:57:43 +01:00
ionutboangiu
23d9211fe5 Update MongoDB driver 2023-12-07 16:57:43 +01:00
ionutboangiu
baea103b07 Revise integration_test.sh script 2023-10-27 18:51:42 +02:00
ionutboangiu
4eb2b9d5d4 Replace deprecated Publish method with PublishWithContext 2023-10-27 18:51:42 +02:00
ionutboangiu
6d20afc8c5 Bump mongodb version in ansible role 2023-10-26 16:26:52 +02:00
ionutboangiu
563666e61c Update README links to docs 2023-10-26 16:26:52 +02:00
ionutboangiu
43a71dd6d2 Update expected value in kafka it tests 2023-10-26 16:26:52 +02:00
ionutboangiu
4d05b1683b Delete coprgate ansible playbook 2023-10-19 17:20:25 +02:00
ionutboangiu
7dbef9443b Update kafka handler to run with sudo 2023-10-19 17:20:25 +02:00
ionutboangiu
ca52732430 Update kafka test to use the correct topic name 2023-10-17 17:41:19 +02:00
ionutboangiu
0651f3cb8f Update kafka ansible role
- use kraft instead of zookeeper
- add handlers in case of cfg changes
- create a separate user for the kafka service
- bump kafka version
- make the role more configurable
2023-10-17 17:41:19 +02:00
ionutboangiu
ccbaa70c00 Update libraries 2023-10-17 17:41:19 +02:00
ionutboangiu
0cb4055cd0 Update test for XmlProvider String() func 2023-10-17 17:41:19 +02:00
ionutboangiu
d861dfa80e Rename prefix to isAbsolute inside HP.AsString() 2023-10-17 17:41:19 +02:00