ionutboangiu
dd82bb3c4b
Add sanity check to prevent xml reader panic
...
HierarchyPath parser now returns nil when
the path is empty (instead of a string slice with one
EmptyString element).
If the prefix is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. This avoids a nil expr error coming from
the xmlquery library.
Use the Query and QueryAll functions from the xmlquery
package to be able to handle the errors ourselves and
avoid panics.
Added an integration tes for the special case where the
xml_root_path field is left empty. Before the change it
used to trim the root element from the path slice when
attempting to retrieve a the relative path slice.
2023-10-16 13:31:14 +03:00
ionutboangiu
f36ea1676f
Bump go version and update checksum
2023-10-12 13:57:47 +02:00
arberkatellari
e59b340e51
Add test for radius with vendor
2023-10-09 21:07:20 +02:00
ionutboangiu
689a78f09c
Update deb_packages ansible
...
Adjusted rng-tools binary path.
Removed redundant distribution, since we can just use the branch
directly.
Removed checks related to the master branch.
2023-10-09 20:53:46 +02:00
ionutboangiu
ffcc0045c4
Update cgrates version where necessary
2023-10-09 20:53:46 +02:00
ionutboangiu
b0d8cd3856
Bump go version
2023-10-09 20:53:46 +02:00
arberkatellari
39df92c1b3
Add proper condition for *radReplyCode, and tmp it test
2023-10-04 20:57:39 +02:00
arberkatellari
e957ae00f4
Improve functionality for Drone CI
2023-09-26 21:33:07 +02:00
NikolasPetriti
49f0fa439c
Add coverage tests for engine
2023-09-15 13:52:49 +02:00
NikolasPetriti
d68a0d7e64
Add coverage tests for utils and config
2023-09-06 19:12:15 +03:00
NikolasPetriti
7f9139a544
Add coverage tests for utils and config
2023-09-06 19:12:15 +03:00
NikolasPetriti
23494cd156
Add coverage tests for config
2023-09-05 18:25:22 +03:00
arberkatellari
05ede32f0f
Add Drone CI
2023-09-01 18:01:21 +02:00
NikolasPetriti
870b6e87ae
Add gofmt
2023-09-01 17:28:31 +02:00
NikolasPetriti
fe2f034a7a
Add coverage tests for config and engine
2023-09-01 17:28:31 +02:00
NikolasPetriti
4d246d7697
Add coverage tests for config
2023-08-31 18:25:15 +02:00
NikolasPetriti
85dce9123d
Add gofmt to last commit
2023-08-31 18:25:15 +02:00
NikolasPetriti
d613ab926f
Add coverage tests for config
2023-08-31 18:25:15 +02:00
ionutboangiu
51021f3cb2
Activate privilege escalation for removing go installation
...
To remove files from /usr/local/go, root privileges are required.
2023-08-29 17:10:30 +02:00
NikolasPetriti
239aaa0a7f
Add coverage tests for config
2023-08-29 17:09:48 +02:00
arberkatellari
c03b2ae656
Add fatal logs on engine
2023-08-29 16:54:20 +02:00
ionutboangiu
84caf3f0b4
Update github workflows
...
In the integration_tests one, go is now installed using actions, therefore
the ansible go installation will be skipped.
2023-08-28 12:24:59 +02:00
ionutboangiu
47198a994b
Make sure kafka topic exists during test
...
Also made sure it is deleted at the end.
2023-08-28 12:24:59 +02:00
ionutboangiu
f3fc6d050f
Revise kafka ers test
...
The Serve call was moved before the export attempt.
Revised deprecated kafka writer creation and made sure to handle errors.
2023-08-28 12:24:59 +02:00
ionutboangiu
60929112fa
Make sure reply is sorted before comparison for cdre tests
2023-08-28 12:24:59 +02:00
ionutboangiu
a285a3d497
Rename ansible roles to be consistent
2023-08-28 12:24:59 +02:00
ionutboangiu
620476f6c4
Reference the right cgrates role in ansible playbooks
2023-08-28 12:24:59 +02:00
ionutboangiu
9e0a5c0a7c
Reference the right go role in ansible playbooks
2023-08-28 12:24:59 +02:00
ionutboangiu
44963afab4
Revise integration_tests playbook
...
Instead of using tasks to include the roles, use them directly.
The go role executes by default, unless the install_go variable
is set to false.
2023-08-28 12:24:59 +02:00
ionutboangiu
2e6fbf9434
Revise cgrates ansible role
...
Removed clone_repository variable from defaults. Now if it's not found
we will assume it's true.
In the cgrates building task we are not forcibly sourcing the /etc/profile
script anymore since it's redundant (we are using bash -lc to execute the
script, where -l will do that automatically).
Make sure we create symbolic links for all binaries we build (not just cgr-engine).
This meant the migrator task environment field could be removed as well.
2023-08-28 12:24:59 +02:00
ionutboangiu
b97a669fd0
Revise go ansible role
2023-08-28 12:24:59 +02:00
NikolasPetriti
8399e5c5c9
Add coverage tests for config
2023-08-28 12:18:54 +02:00
NikolasPetriti
16c0360ff4
Add coverage tests for utils
2023-08-28 12:18:54 +02:00
NikolasPetriti
7050622bc3
Add coverage tests for utils
2023-08-28 12:18:54 +02:00
NikolasPetriti
f7807d26af
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
3e7394de75
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
bcf26daf5a
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
b590767fc2
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
97b65f9718
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
b2ce0ce167
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
5ef01e6f0b
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
af3d585d72
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
81b774f1d5
Revise invalid struct tags for tp models
2023-08-28 12:18:54 +02:00
DanB
528f36d048
Starting 0.10.4~dev
2023-08-10 10:08:31 +02:00
DanB
2797288111
Release v0.10.3
v0.10.3
2023-08-09 17:38:10 +02:00
ionutboangiu
06aee1d8c7
Update changelog
2023-08-09 17:30:32 +02:00
DanB
14e3c92cc9
Adding hosts sample ansible inventory for deb_packages
2023-08-09 16:03:29 +02:00
ionutboangiu
06cebec008
Update libraries
2023-08-09 15:30:27 +02:00
ionutboangiu
0447e481ff
Update it workflow to run tests for PR version of the repo
...
Before it was running the tests for the latest commit on the main repo instead
of running them for the PR version of it.
2023-08-09 15:30:27 +02:00
ionutboangiu
fad94ebe5c
Add variable to cgrates role to decide whether to clone the repo
...
Sometimes we want to use the already existing repo without overwriting. Defaults to true (will
clone).
2023-08-09 15:30:27 +02:00