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
ionutboangiu
66893d3d76
Handle empty relative path case in HP.AsString()
...
Return '.' when HierarchyPath is empty and prefix is false.
2023-10-17 17:41:19 +02:00
ionutboangiu
5a5c141806
Properly handle cdr verification in fwv er test
2023-10-17 17:41:19 +02:00
ionutboangiu
708742169f
Update XmlProvider String() func
...
The comment specifies that it should display the already parsed values
out of cache.
2023-10-17 17:41:19 +02:00
ionutboangiu
2ff7824aa3
Handle test received value instead of printing
2023-10-17 17:41:19 +02:00
ionutboangiu
32517c6d68
Update rabbitmq role for latest debian/ubuntu compatibility
2023-10-16 18:56:49 +03:00
gezimbll
09619a8442
adding tests for internal storage
2023-10-16 18:17:11 +03:00
gezimbll
78ef6209da
Adding tests for internal storage
2023-10-16 18:17:11 +03:00
gezimbll
c82596c810
Adding tests for internal storage
2023-10-16 13:34:29 +03:00
ionutboangiu
f3e0669c2d
Update github workflows to use correct go version
2023-10-16 13:31:14 +03:00
ionutboangiu
0bc94857ca
Update empty xml_root_path sanity check case.
...
Also added tests for it.
Added comment to the *HierarchyPath.AsString() function,
addressing the issue of not being able to retrieve the
element when the root path is equal to the path that
is being processed.
2023-10-16 13:31:14 +03:00
ionutboangiu
950c5279a6
Delete gob marshaler test until we find a solution
...
Marshalling a value using GOBMarshaler seems to yield
inconsistent sets of bytes.
2023-10-16 13:31:14 +03:00
ionutboangiu
87044d7c9d
Add comments for XmlProvider and xml_root_path opt
2023-10-16 13:31:14 +03:00
ionutboangiu
734e44d081
Add tests for HierarchyPath.AsString function
2023-10-16 13:31:14 +03:00
ionutboangiu
425c2f2e9b
Remove config default value for xml_root_path
...
The field will remain commented in config_defaults for reference.
2023-10-16 13:31:14 +03:00
ionutboangiu
e7b4d565cd
Add reusable func to create/remove dirs for ers
2023-10-16 13:31:14 +03:00
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