Commit Graph

117 Commits

Author SHA1 Message Date
ionutboangiu
87044d7c9d Add comments for XmlProvider and xml_root_path opt 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
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
78077ae454 Make sure errors are logged for flatstore reader 2023-07-18 16:37:06 +02:00
ionutboangiu
b7d172f78a Fix misspellings 2023-06-21 11:02:39 +02:00
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
ionutboangiu
15b404e8cf Revise randomly failing tests 2023-03-28 17:59:32 +02:00
ionutboangiu
01556a299f Revise it tests 2023-03-10 14:07:59 +01:00
ionutboangiu
d20fa06201 Allow concurrent processing when reading fwv files 2023-01-20 18:23:17 +01:00
ionutboangiu
7777e46758 Change processing method when reading fwv files 2023-01-20 18:23:17 +01:00
ionutboangiu
641577347c Fix typo 2023-01-16 18:47:17 +01:00
ionutboangiu
637e0f935f Implement fix for fwv single file processing 2023-01-16 18:47:17 +01:00
adi
c9a9857152 Added relevant paratheses 2022-12-02 18:39:29 +02:00
ionutboangiu
1436bac61c Remove unnecessary paranthesis 2022-12-02 14:24:18 +02:00
ionutboangiu
82468c580d Replace deprecated ioutil library, remove redundant statements + small optimizations 2022-12-02 14:24:18 +02:00
adi
1fe0dcbe9a Changed FileName variable for ers 2022-11-20 18:46:36 +01:00
ionutboangiu
90f41f6f22 Update fwv reader 2022-07-22 14:56:39 +02:00
andronache
428cd37b8e Replaced header in multiple places 2021-11-01 13:50:23 +02:00
Trial97
db3bf9f40d Updated build tags 2021-08-30 17:55:51 +03:00
Trial97
a7accbd6b5 Added *routes_maxcost flag. Fixes #2563 2021-02-09 13:39:18 +01:00
Trial97
2fba6b21da Updated Kafka URL parsing 2020-08-17 17:37:52 +02:00
TeoV
28af81a818 Remove print from code 2020-07-09 17:27:11 +03:00
Trial97
8b81b6b8e4 Added *none ERs type. Closes #2201 2020-06-02 15:10:32 +02:00
Trial97
ab4944dc1a Removed config.NavigableMap 2020-05-18 12:43:13 +02:00
Trial97
a1e99e37d5 Updated integration tests 2020-05-07 11:19:03 +02:00
Trial97
2c53180ac8 Fixed agents unit tests 2020-05-07 11:19:03 +02:00
Trial97
9ef1dd05cc Updated AgentRequest 2020-05-07 11:19:03 +02:00
TeoV
3aaf458a2b Add support for *fd flag in agent 2020-04-22 12:38:06 +02:00
adragusin
e06ae9c97a Added a new configuration option in ers, row_length 2020-04-07 15:17:37 +02:00
TeoV
a5a74a9a91 Correctly populate ConcurrentRequest from config in EventReader fixes #1932 2020-02-18 14:24:10 +01:00
TeoV
9376889b10 Parse RunDelay from EventReader with ParseDurationWithNanosecs fixes #1897 2020-02-05 15:57:58 +01:00
TeoV
b85ebe8214 Update EventReader integration tests 2020-02-05 15:57:58 +01:00
adragusin
3eaf3232a1 Renamed ApierV1 to APIerSv1/ ApierV2 to APIerSv2 2020-01-30 14:06:48 +01:00
Trial97
0c58d75571 Updated ers tests 2020-01-30 10:55:23 +01:00
Trial97
0453d5cc52 Updated tests 2020-01-30 10:21:48 +01:00
Trial97
f18525a1db Updated path for cdre 2020-01-30 10:21:48 +01:00
Trial97
ab3fb01e7d Starting adding absolute path to cdre 2020-01-30 10:21:48 +01:00
adragusin
35e5fb2f9d renamed dbType *sql to *mysql 2020-01-29 16:54:54 +01:00
TeoV
52f0e0a86c Merge ContentFields,HeaderFields,TrailerFields into one Files 2020-01-29 14:40:57 +01:00
TeoV
26ea469328 Merge content,header,trailer fields into fields 2020-01-29 14:40:57 +01:00
Trial97
94c29c93d2 Updated CDRExporter 2020-01-28 10:07:34 +01:00
TeoV
923012a785 Remove pathPrfx from fwvDP 2020-01-23 11:02:07 +02:00
TeoV
f74df27ddd Remove pathPrfx from xmlDP 2020-01-23 10:56:30 +02:00
TeoV
c82c1c4866 Remove pathPrfx from sliceDP 2020-01-23 10:47:32 +02:00
TeoV
85ffef5028 Rename from *opensips_flatstore and *kamailio_flatstore to *flatsore 2020-01-22 14:10:35 +02:00
TeoV
0d4e989832 Add test for Flatstore in ERs 2020-01-22 11:06:43 +02:00
TeoV
e7f95a98f3 Add Flastore Support in ERs 2020-01-22 11:06:43 +02:00
Dan Christian Bogos
cc9dab3ae3 Merge pull request #1882 from adragusin/master
Removed directions from templates
2020-01-21 14:25:23 +01:00