ionutboangiu
78077ae454
Make sure errors are logged for flatstore reader
2023-07-18 16:37:06 +02:00
ionutboangiu
f2214052b6
Solve struct literal uses unkeyed fields warning
2023-07-18 16:37:06 +02:00
ionutboangiu
c4e820457b
Revise syntax for the struct tag values pointed out by go vet
2023-07-18 16:37:06 +02:00
ionutboangiu
7c1dba3968
Simplify integration_test.sh, skip building and unit tests
2023-07-18 16:37:06 +02:00
ionutboangiu
f315c25554
Update integration_tests workflow to be skipped if duplicate
2023-07-18 16:37:06 +02:00
ionutboangiu
bf4e0d89fa
Add workflow for build and unit tests
2023-07-18 16:37:06 +02:00
ionutboangiu
24b3972fb2
Sort go.mod file
2023-07-18 16:37:06 +02:00
ionutboangiu
2e9653b551
Apply gofmt
2023-07-18 16:37:06 +02:00
ionutboangiu
531c9941fa
Add task to postgres role to manage service state
2023-07-18 16:37:06 +02:00
NikolasPetriti
95b99614d5
Add coverage tests for balance_filter.go and storage_interface.go
2023-07-14 17:09:31 +02:00
NikolasPetriti
62a8601131
Add coverage tests for balances.go and calldesc.go
2023-07-14 11:27:32 +02:00
NikolasPetriti
df9947730c
Add coverage tests for balances.go, resources.go and storage_utils.go
2023-07-13 10:23:31 +02:00
NikolasPetriti
710a8d78be
Add coverage tests for filters.go
2023-07-13 10:23:31 +02:00
ionutboangiu
628df25caa
Set TimeNotBuiltin msgpack option directly without using BasicHandle
...
Prevents a situation where when attempting to decode a string into a nil
interface, the decoded value would be the encoded slice of bytes instead
of the string we need.
2023-07-12 17:06:16 +02:00
ionutboangiu
df3ae97e57
Comment post install postgres scripts in cgrates ansible role
2023-07-12 17:06:16 +02:00
ionutboangiu
79215c824c
Add test for costdetails failed searchreplace scenario
2023-07-12 17:06:16 +02:00
ionutboangiu
7faab6e0ff
Implement postgresql ansible role
2023-07-12 17:06:16 +02:00
ionutboangiu
b6df49fbb6
Bump go version in ansible role
2023-07-12 17:06:16 +02:00
ionutboangiu
765695761a
Add github action workflow for integration tests
2023-07-12 17:06:16 +02:00
ionutboangiu
43dd9e0bdd
Update kafka download link and bump version
2023-07-12 17:06:16 +02:00
NikolasPetriti
94abb7d7d0
Add coverage tests for utils
2023-07-10 17:12:31 +02:00
NikolasPetriti
b5358d1cea
Add coverage tests for config
2023-07-10 14:00:20 +02:00
ionutboangiu
1f315c7493
Make small revision to comment structure
2023-07-10 13:58:21 +02:00
ionutboangiu
d8b747b8a2
Make sure kamailio dependencies are installed in role
2023-07-10 13:58:21 +02:00
ionutboangiu
9cea5f1f60
Make msgpack codec backwards compatible with version before 2017
2023-07-10 13:58:21 +02:00
ionutboangiu
cfd9610e4a
Add integration test for the shared client deadlock issue
2023-07-10 13:58:21 +02:00
NikolasPetriti
af290778ad
Add coverage tests for config
2023-07-06 17:40:13 +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
NikolasPetriti
19666594c8
Add coverage tests for apiercfg.go, smconfig.go, statscfg.go, stordbcfg.gp and supplierscfg.go
2023-07-04 13:20:06 +02:00
NikolasPetriti
55585a34f2
Revise failing test
2023-07-04 13:20:06 +02:00
NikolasPetriti
0a7ab55836
Add coverage tests for suretaxcfg.go, thresholdscfg.go and xmldp.go
2023-07-04 13:20:06 +02:00
ionutboangiu
b5dbb31163
Clean up and refactor after mongo update
...
- Converting directly from a D to an M is deprecated. We are now decoding
directly in a M.
- Used errors.As and errors.Is for proper error comparison and assertion
- Streamlined function parameters and removed redundancies
- Revised sloppy reassignments and added missing error checks
- Shortened and reorganized function structure for improved readability
2023-07-04 13:19:31 +02:00
ionutboangiu
076bb172f1
Remove custom time decoder for MongoDB
...
Remove the custom time decoder used for mongo BSON
datetime values. The custom decoder was only converting these values
into UTC and was not any different from the default time.Time
decoder in the MongoDB driver, which also handles BSON string, int64,
and document values.
2023-07-04 13:19:31 +02:00
ionutboangiu
91fa6675e4
Implement nginx role
2023-07-04 13:19:31 +02:00
ionutboangiu
af1262e3c1
Implement gpg role
2023-07-04 13:19:31 +02:00
ionutboangiu
a7c785d925
Upgrade MongoDB driver to v1.12
...
- Set (but comment) serverAPI options (currently distinct api and
create.size BSON field are deprecated + possible others that are untested)
- Rename and refactor 'TimeDecodeValue1' to 'decodeTimeValue', add
nil case handling
- Implement 'buildURL' function to connect to mongo (can also be
used for mysql and postgres)
- Update function names, variable names, and comments for clarity
- Replace 'bsonx.Regex' with the Regex primitive for v1.12 compatibility
- Use simple concatenation instead of Sprintf
- Declare 'timeType' locally, replace global 'tTime'
- Use 'RegisterTypeDecoder' to replace deprecated 'RegisterDecoder'
- Simplify several functions without altering functionality
- Remove redundant 'storageType' field in 'mongoStorage',
use 'isDataDB' instead
2023-07-04 13:19:31 +02:00
gezimbll
8d770b3364
Updated docs for creating local rpm packages
2023-07-04 12:47:10 +02:00
gezimbll
b148815091
Creating local tarball for rpm builds
2023-07-04 12:47:10 +02:00
NikolasPetriti
c6de766d18
Add coverage tests for erscfg.go and loaderscfg.go
2023-06-29 20:48:01 +02:00
gezimbll
cdab53e2cf
Adding packit create-archive action for rpm builds
2023-06-29 15:54:32 +02:00
DanB
d14bc12e10
Handle CombimedErrNotFound
2023-06-29 14:55:44 +02:00
DanB
1860c301d3
Adding debug for combimed
2023-06-29 12:58:06 +02:00
DanB
84331962a8
Removing debug logs, apply lazy filters in case of *combimed
2023-06-28 15:17:20 +02:00
DanB
d33fe252d2
Adding debug log for filters
2023-06-28 14:16:14 +02:00
DanB
6c007c3bd3
Properly defining filter prefixes for *combimed export
2023-06-28 12:58:23 +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
7042048771
Add coverage tests for fctemplate.go
2023-06-28 10:34:28 +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