Commit Graph

21 Commits

Author SHA1 Message Date
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
ionutboangiu
141d293217 Make DefaultOpts a struct and move IgnoreErrors, MaxCost and Paginator fields to APIOpts final 2021-09-10 11:25:57 +02:00
Trial97
be84ed5ada Refactored EventRequest 2021-07-06 20:51:32 +02:00
andronache
503d3fe22c Make flags camel case for ers ees and agents 2021-07-03 16:42:50 +02:00
ionutboangiu
82321e5604 Change templates/attributes types format from snake case to camel case 2021-07-01 16:16:49 +02:00
ionutboangiu
fc42259893 Change possible reader/exporter types format from snake case to camel case 2021-07-01 16:16:49 +02:00
Trial97
d868c0a5f0 Added partial reader 2021-05-19 15:54:14 +02:00
Trial97
6d9585b1ff Added integration tests for sessions routes max cost 2021-02-09 15:16:20 +01:00
Trial97
6fd40f7296 Replaced RSRField with RSRParser 2020-11-20 10:36:54 +01:00
Trial97
e6834e1b78 Updated call tests 2020-05-22 17:00:43 +02:00
adragusin
6629dc6bee Reverted RoundingDecimals 2020-04-07 09:32:01 +02:00
adragusin
179067de5d updated rounding method and RowLength 2020-04-02 16:54:03 +02:00
adragusin
16d25cc6cb Added a new configuration option in ers, row_length 2020-04-02 16:54:03 +02:00
DanB
563cb5f93b [Docs] Initial CDRe documentation 2020-03-12 10:31:48 +01:00
DanB
626abd591a [Docs] Adding ResourceS documentation 2020-02-18 20:15:41 +01:00
DanB
0a5b4d7f0c Docs - updating Diameter and ERs path info 2020-02-12 19:25:52 +01:00
TeoV
9376889b10 Parse RunDelay from EventReader with ParseDurationWithNanosecs fixes #1897 2020-02-05 15:57:58 +01:00
Trial97
ab3fb01e7d Starting adding absolute path to cdre 2020-01-30 10:21:48 +01:00
DanB
33bd07af40 Docs - partial documentation for ERs 2020-01-24 19:00:53 +01:00
DanB
1b1f00da01 Docs - placeholder pages for the rest of the agents 2020-01-21 18:36:09 +01:00
DanB
e949d4c8dc Doc skels for all agents 2020-01-16 19:39:57 +01:00