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
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