Commit Graph

125 Commits

Author SHA1 Message Date
ionutboangiu
117fee4e29 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:24 +01:00
ionutboangiu
c4642fa30b prevent data race in file watcher goroutine 2025-02-26 16:17:33 +01:00
ionutboangiu
a832ea9d7c Add test for ERs *fileLineNumber variable 2024-09-26 17:32:21 +02:00
ionutboangiu
c0b665a015 Make go vet pass
The rpcclient constructor could not see the centralized
Encoding flag because it didn't have the necessary build
constraints. Added the constraints in lib_test.go files
where it wasn't alone. In all the other cases, it was
moved to the first file where it was needed.

Moved resources cache tests relying on DBType flag value
to a separate integration test file. Before it was getting
skipped for *internal anyway.
2024-06-06 11:13:32 +02:00
ionutboangiu
41c62c1291 Add flaky build constraint to unstable tests 2024-06-06 11:13:32 +02:00
ionutboangiu
454c0552f2 Centralize test flags in utils for shared use across tests 2024-06-06 11:13:32 +02:00
ionutboangiu
ca52732430 Update kafka test to use the correct topic name 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
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