Commit Graph

968 Commits

Author SHA1 Message Date
ionutboangiu
40c5d65af6 Add benchmark for diameter+caps
unusable until sessions is finished
2024-11-04 21:22:58 +01:00
ionutboangiu
66c119dba7 Consider diameter requests when limiting caps
- add possibility to pass custom Error-Message AVP to negative diameter
  answers
- negative answer is now built only when an error occurs
- remove tests that were testing behaviour with max concurrent requests 0
- add integration test specific to this change
2024-11-04 21:22:58 +01:00
ionutboangiu
ad104573e9 Remove concurrent_requests diameter opt
Will be replaced by caps.
2024-11-04 21:22:58 +01:00
ionutboangiu
3e98e37db3 Revise NewRPCClient helper function 2024-10-23 21:11:25 +02:00
ionutboangiu
df3c98e842 Revise agents *uch unit test
- optimized it (2s -> 0.03s) by lowering the cfg cache TTL to 5ms
  instead of 1s, which was enough to get consistent results.
- increase margin of error by 1ms
- in case of failure, retrieve the expiry time and log it along the
current time. Makes troubleshooting easier in the future.
2024-09-25 20:58:51 +02:00
ionutboangiu
a0ba8e352b FSAgent: ensure MaxReconnectInterval is being used
option was added previously but not made use of
2024-09-23 20:28:26 +02:00
ionutboangiu
6ed3c5592d Add reply_timeout field for FS event socket conns 2024-09-23 20:28:26 +02:00
ionutboangiu
449bc5c08a Add active_session_delimiter option for fs_agent
Used for 'show_channels' requests and responses.
2024-09-23 20:28:26 +02:00
ionutboangiu
2f387b5a0e chore: remove unnecessary parentheses
gofmt -r '(a) -> a' -w **/*.go
2024-09-05 20:46:40 +02:00
ionutboangiu
fee2712a23 chore: replace interface{} with any 2024-09-05 20:46:40 +02:00
gezimblliku
04f2c69b05 updated dependencies with the latest versions 2024-08-22 20:39:59 +02:00
ionutboangiu
0f70af84e9 centralize test flags for shared use across tests 2024-08-15 18:17:33 +02:00
ionutboangiu
0dfb3b860d Centralize RPCClient constructor 2024-08-15 18:17:33 +02:00
Gezim Blliku
80249e1074 implemented janusagent & added to services 2024-07-21 19:07:43 +02:00
arberkatellari
bd571376a7 Update kamevapi version 2024-03-08 16:38:50 +01:00
arberkatellari
d698e8db9d Make DNS TLS error log more suggestive 2024-01-06 17:12:02 +01:00
gezimbll
32ed816de7 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package functions 2023-11-01 21:38:27 +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
arberkatellari
770454c007 Renew DlgList, DNSAgent & add SRV/A support 2023-08-28 12:27:53 +02:00
arberkatellari
6eda4303f5 Revise DNS Agent and Service 2023-08-28 12:27:53 +02:00
gezimbll
2e96f02be4 Fix message on agents logs 2023-06-22 10:38:21 +02:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
adi
734776b113 Unified consts of opts 2022-10-03 18:29:24 +03:00
adi
1e51b6d73f Unified constants for subsystem/removed big S 2022-09-25 12:16:25 +02:00
adi
fe3d34639a Fixed tests of cache 2022-09-19 16:39:47 +02:00
ionutboangiu
0653e9b5d7 Apply go fmt 2022-08-24 09:32:23 +03:00
ionutboangiu
4857245aa5 Use copy instead of loop + other staticcheck fixes 2022-07-15 09:28:57 +02:00
ionutboangiu
5437b3a8a2 Repair compilation errors after library updates 2022-07-03 13:08:52 +02:00
ionutboangiu
833810932b Comment integration test that don't compile and begin fixing them 2022-04-28 08:52:03 +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
andronache98
e2901630c9 Removed json files using stordb 2022-03-09 14:14:30 +01:00
porosnicuadrian
c7092cc0df Renamed AteredFields + updated uniqueALteredFields method 2022-03-01 15:51:07 +02:00
porosnicuadrian
75fc37db2c renamed into Filters + uniqueAlteredFields 2022-02-25 14:38:26 +01:00
porosnicuadrian
bf5c694ecd Combined matchedProfile and alteredField for attributes 2022-02-24 17:28:38 +01:00
andronache98
fad736e5a6 Changed Weights from float64 to DynamicWeights for Resources and Chargers 2022-02-13 15:09:53 +02:00
andronache98
24a1531c5b Modified tests using *originID in Event 2022-02-06 09:52:26 +01:00
andronache98
4b1e530ab0 Fixed tests with wrong *originID 2022-02-06 09:52:26 +01:00
andronache98
bb30b65ef5 Fixed tests using originID in event instead of opts 2022-02-06 09:52:26 +01:00
andronache98
f09cf65f9f Fixed *originID being in Event instead of APIOpts 2022-02-06 09:52:26 +01:00
andronache98
50c1a3441f Fixed test 2022-02-06 09:52:26 +01:00
andronache98
2e4b77e4df Commented CGRID where it is not needed 2022-02-06 09:52:26 +01:00
andronache98
ca839daa29 Changed CGRID to *originID and removed it in most places 2022-02-06 09:52:26 +01:00
andronache98
c804a93166 Changed CGRID location from Event to APIOpts 2022-02-06 09:52:26 +01:00
andronache
7ab4167613 Corrected header in multiple files 2021-11-01 13:50:00 +02:00
Trial97
cb809f976e Updated internal datadb 2021-10-28 18:03:43 +03:00
andronache
1e080a7123 RunID is not longer added to event but to APIOpts 2021-10-20 16:54:20 +03:00
ionutboangiu
a4caeb1e38 Fix typo (alocate -> allocate) 2021-10-18 10:36:16 +03:00
Trial97
adc8a9eb71 Added constants for dns agent 2021-10-08 11:12:50 +03:00
Trial97
506c337d02 Updated agent tests 2021-10-08 11:12:50 +03:00