20 Commits

Author SHA1 Message Date
ionutboangiu
e05be683ae change license from GPLv3 to AGPLv3 2025-10-13 09:57:41 +02:00
ionutboangiu
04f746c634 Implement LoggerService + refactoring (incomplete) 2025-01-14 19:00:37 +01:00
ionutboangiu
4c34d321de 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 isAbsolute is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. Alternatively, if isAbsolute is false, it
will just return . to signal that the path currently
being processed is the one required.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.

Remove config default value for xmlRootPath. The field
will remain commented in config_defaults for reference.

Add tests for HierarchyPath.AsString function.

Add comments for XmlProvider and xmlRootPath opt.

Update XmlProvider String() func based on the comment
which specifies that it should display the already
parsed values out of cache.
2023-10-19 17:19:30 +02:00
NikolasPetriti
8ef305d64c Add coverage tests for utils and config 2023-09-12 18:10:23 +02:00
arberkatellari
f912ab04e8 Improve logger and libindex tests 2023-02-24 16:51:16 +01:00
arberkatellari
748764d4a7 Improve tests for container environments 2023-02-21 18:28:52 +01:00
arberkatellari
acafea967a improving coverage at utils 2022-11-20 18:48:03 +01:00
arberkatellari
f579e05221 Improving coverage at utils 2022-11-18 11:48:24 +01:00
arberkatellari
8abd4d93c4 Improving coverage at utils 2022-11-18 11:48:24 +01:00
adi
a448fb2c7a INtegrated efs in logger/ees + ers changes 2022-07-30 08:19:08 +02:00
adi
bf870b1e2b Failover ees/loggers improved + tests 2022-07-11 17:27:46 +02:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
ionutboangiu
a65f13fc87 Add unit tests for loggers 2021-12-19 17:12:47 +01:00
ionutboangiu
b55dc3d3a8 Fix tests after updating loggers 2021-12-19 17:12:47 +01:00
Trial97
9eaf945375 Updated DNSAgent Option handling 2021-10-05 21:01:26 +02:00
Trial97
b8437f4a7d Updated utils tests 2021-03-26 13:46:25 +01:00
Trial97
5353b95e43 Updated go version and replaced ioutil package 2021-03-18 16:46:55 +01:00
Trial97
65ce36fbe1 Updated NewLogger function 2020-12-08 12:59:44 +01:00
porosnicuadrian
c829c775e2 Integration and unit tests for logger.go and file.go in utils 2020-12-04 18:47:18 +01:00