Commit Graph

1823 Commits

Author SHA1 Message Date
DanB
a2953d6ca7 Release v0.10.4 2024-09-24 11:30:24 +02:00
arberkatellari
7add01320e Revise balance blockers 2024-09-09 16:43:27 +02:00
ionutboangiu
df7b65833a remove deprecated math/rand.Seed calls
see https://pkg.go.dev/math/rand#Seed
2024-09-05 20:58:34 +02:00
gezimblliku
6c8f53435b fixed go vet warnings 2024-08-16 12:34:25 +02:00
armirveliaj
8edc239bd1 Add new unit tests 2024-07-21 19:05:17 +02:00
armirveliaj
a5033b215a Add test for the mocked goRPC.Cancel API 2024-07-14 14:08:07 +02:00
ionutboangiu
c0da66959b Mock GoRPC Cancel method to handle harmless RPC error
This 'can't find service' error is harmless and occurs due to a
mismatch between the standard net/rpc server and the cgrates/birpc
client. The standard server does not support context cancellation
requests sent by the client.

Fixes #4357
2024-07-08 12:11:11 +02:00
gezimbll
fccda430c9 added aliases for extra_fields 2024-06-07 17:14:17 +02:00
ionutboangiu
e0d020b5d6 Add support for Git 2.45+ iso-strict date format
Git 2.45+ introduced a backward incompatible change in the iso-strict
date format, showing time in the Zulu timezone with "Z" suffix instead
of "+00:00". This commit adds parsing for the new date format before
falling back to the old format.

Revise GetCGRVersion error messages.
Revise GetCGRVersion unit test.
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
56f8549ea4 Ensure EC FieldAsInterface method works correctly
- trim fldPath Increments before retrieving the field
- Rating map can be accessed from Accounting
- ExtraCharges can be accessed from Accounting
- RatingUnit fields that did not represent the id of
another EC struct are now retrievable
- add unit tests
2024-04-11 13:23:23 +02:00
Bas Couwenberg
ef1696d5e1 Pass commit date and hash to -ldflags separately. 2024-02-27 16:25:57 +01:00
ionutboangiu
d861dfa80e Rename prefix to isAbsolute inside HP.AsString() 2023-10-17 17:41:19 +02:00
ionutboangiu
66893d3d76 Handle empty relative path case in HP.AsString()
Return '.' when HierarchyPath is empty and prefix is false.
2023-10-17 17:41:19 +02:00
ionutboangiu
0bc94857ca Update empty xml_root_path sanity check case.
Also added tests for it.

Added comment to the *HierarchyPath.AsString() function,
addressing the issue of not being able to retrieve the
element when the root path is equal to the path that
is being processed.
2023-10-16 13:31:14 +03:00
ionutboangiu
734e44d081 Add tests for HierarchyPath.AsString function 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
NikolasPetriti
d68a0d7e64 Add coverage tests for utils and config 2023-09-06 19:12:15 +03:00
NikolasPetriti
7f9139a544 Add coverage tests for utils and config 2023-09-06 19:12:15 +03:00
arberkatellari
c03b2ae656 Add fatal logs on engine 2023-08-29 16:54:20 +02:00
NikolasPetriti
16c0360ff4 Add coverage tests for utils 2023-08-28 12:18:54 +02:00
DanB
528f36d048 Starting 0.10.4~dev 2023-08-10 10:08:31 +02:00
DanB
2797288111 Release v0.10.3 2023-08-09 17:38:10 +02:00
gezimbll
f18c118cb0 Adding FiltersID field for ExportCdrs api 2023-08-08 17:14:36 +02:00
arberkatellari
85f7198424 Make RandomInteger() return int64 2023-07-21 09:02:55 +02:00
ionutboangiu
1599ed2a5e Improve accuracy of test to assess return of time.Now() 2023-07-18 16:37:06 +02:00
ionutboangiu
2e9653b551 Apply gofmt 2023-07-18 16:37:06 +02:00
NikolasPetriti
7d97e8a99d Add coverage tests for json_codec.go 2023-07-06 13:22:29 +02:00
NikolasPetriti
53e277a57d Add coverage tests for json_codec.go and value_formula.go 2023-07-05 08:33:26 +02:00
DanB
d14bc12e10 Handle CombimedErrNotFound 2023-06-29 14:55:44 +02:00
DanB
3c9f57ce7d Updating CDR *combimed export to support filtering based on originally exported CDR 2023-06-28 12:47:16 +02:00
NikolasPetriti
023cf8f5f2 Added coverage tests for cachecfg.go, datadbcfg.go, erscfg.go, fctemplate.go and rsrparser.go 2023-06-27 11:05:06 +02:00
NikolasPetriti
4c2e81c3a6 Added tests for orderednavigablemap.go, pathitemlist.go and rsrfield.go 2023-06-27 11:05:06 +02:00
NikolasPetriti
65cf7299c8 Added coverage tests for fwvdp.go, objdp.go and removed error variables from source code 2023-06-23 11:55:46 +02:00
NikolasPetriti
86a1fbd531 Coverage tests for fwvdp.go and slicedp.go 2023-06-22 10:39:12 +02:00
NikolasPetriti
40d0cbbca7 Added tests for pathitemlist.go and struct.go 2023-06-21 11:04:43 +02:00
NikolasPetriti
66374bf409 Added tests for struct.go and mapstorage.go, created pathitemlist_test.go file 2023-06-21 11:04:43 +02:00
NikolasPetriti
c7e0432b01 Added coverage tests for mapstorage.go, errors.go and dataprovider.go 2023-06-21 11:04:43 +02:00
NikolasPetriti
da0d7807cb Remove unnecessary error check 2023-06-21 11:04:43 +02:00
ionutboangiu
b7d172f78a Fix misspellings 2023-06-21 11:02:39 +02:00
ionutboangiu
3935a72605 Remove executable bit from .go files 2023-06-16 10:24:13 +02:00
NikolasPetriti
0d1e468fa0 Remove unnecessary error check 2023-06-16 10:23:03 +02:00
NikolasPetriti
75afa538ee Add coverage tests for reflect.go 2023-06-16 10:23:03 +02:00
NikolasPetriti
57a565e459 Added tests for reflect.go 2023-06-16 10:23:03 +02:00
NikolasPetriti
45105cfbac Covered tests for pathitem.go and dataconverter.go 2023-06-16 10:23:03 +02:00
NikolasPetriti
c87644a451 Cover all slice.go tests 2023-06-13 10:26:38 +02:00
NikolasPetriti
d4527b4691 covered testing for map.go 2023-06-13 10:26:38 +02:00
NikolasPetriti
c62eb7bd7a Add tests for concureqs.go 2023-06-13 10:26:38 +02:00
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
ionutboangiu
c83d097e9e Remove duplicate implementation 2023-05-25 08:58:05 +02:00