ionutboangiu
4daeb35609
Reduce client connection attempts to test engine status (tests)
...
200 -> 16
Previously, considering the fibonacci back off strategy, if engine failed to
start it would have tried to attempt connections for 2.862799e+33 years.
Now, the amount of attempts is 16, equivalent to around 2 and a half seconds.
Should be more than enough, considering that usually 6-7 attempts are enough.
2024-06-06 11:13:32 +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
454c0552f2
Centralize test flags in utils for shared use across tests
2024-06-06 11:13:32 +02:00
gezimbll
27a9179ab8
revise threshold snooze time to update only after sleep interval
2024-05-07 13:39: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
ionutboangiu
7eb78cb40e
Rename composeURI func to composeMongoURI
...
To reflect that it's used exclusively for MongoDB (for now at least).
Also added a descriptive comment to the function.
2023-12-07 16:57:43 +01:00
ionutboangiu
f23179899c
Revise buildURL function
...
Renamed to composeURI.
Use simple string concatenation to build URI because there is
no need to keep the Parse call as a validation step. Any issue
would be caught when establishing a connection.
2023-12-07 16:57:43 +01:00
ionutboangiu
4eb2b9d5d4
Replace deprecated Publish method with PublishWithContext
2023-10-27 18:51:42 +02:00
gezimbll
09619a8442
adding tests for internal storage
2023-10-16 18:17:11 +03:00
gezimbll
78ef6209da
Adding tests for internal storage
2023-10-16 18:17:11 +03:00
gezimbll
c82596c810
Adding tests for internal storage
2023-10-16 13:34:29 +03:00
ionutboangiu
950c5279a6
Delete gob marshaler test until we find a solution
...
Marshalling a value using GOBMarshaler seems to yield
inconsistent sets of bytes.
2023-10-16 13:31:14 +03:00
NikolasPetriti
49f0fa439c
Add coverage tests for engine
2023-09-15 13:52:49 +02:00
NikolasPetriti
870b6e87ae
Add gofmt
2023-09-01 17:28:31 +02:00
NikolasPetriti
fe2f034a7a
Add coverage tests for config and engine
2023-09-01 17:28:31 +02:00
NikolasPetriti
7050622bc3
Add coverage tests for utils
2023-08-28 12:18:54 +02:00
NikolasPetriti
f7807d26af
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
3e7394de75
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
bcf26daf5a
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
b590767fc2
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
97b65f9718
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
b2ce0ce167
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
5ef01e6f0b
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
af3d585d72
Add coverage tests for engine
2023-08-28 12:18:54 +02:00
NikolasPetriti
81b774f1d5
Revise invalid struct tags for tp models
2023-08-28 12:18:54 +02:00
NikolasPetriti
6779cdf533
Add coverage tests for engine
2023-08-09 13:42:30 +02:00
NikolasPetriti
e90ef030d1
Add coverage tests for engine
2023-08-09 13:42:30 +02:00
NikolasPetriti
16340546c9
Add coverage tests for engine
2023-08-07 17:19:54 +02:00
NikolasPetriti
7b016eef3b
Add coverage tests for engine
2023-08-07 11:42:27 +02:00
NikolasPetriti
4c544f427c
Add coverage tests for models.go and model_helpers.go
2023-08-07 11:42:27 +02:00
NikolasPetriti
9079248d4e
Add coverage tests for model_helpers.go
2023-08-07 11:42:27 +02:00
NikolasPetriti
d284828496
Add coverage tests for model_helpers.go
2023-08-02 16:50:10 +02:00
NikolasPetriti
708302e753
Format all tests
2023-08-02 16:50:10 +02:00
NikolasPetriti
bb4a944135
Add coverage tests for engine
2023-08-02 16:50:10 +02:00
NikolasPetriti
a67caa6dc2
Add coverage tests for action.go
2023-08-02 16:50:10 +02:00
NikolasPetriti
bf6592a428
Add coverage tests for account.go
2023-08-02 16:50:10 +02:00
NikolasPetriti
5ee077df3d
Add coverage tests for engine
2023-08-02 16:50:10 +02:00
NikolasPetriti
bcfd9cb1f9
Add coverage tests for engine
2023-08-02 16:50:10 +02:00
NikolasPetriti
94afae087f
Add coverage tests for engine
2023-08-02 16:50:10 +02:00
NikolasPetriti
302cb2aec8
Add coverage tests for eventcost.go
2023-08-02 16:50:10 +02:00
NikolasPetriti
36cfcfec26
Add coverage tests for engine
2023-07-21 09:02:30 +02:00
NikolasPetriti
a905707f93
Add coverage tests for engine
2023-07-21 09:02:30 +02:00
NikolasPetriti
84cb2ddd1a
Add coverage tests for libeventcost.go
2023-07-21 09:02:30 +02:00
NikolasPetriti
9bef7cdd1f
Add coverage tests for engine
2023-07-21 09:02:30 +02:00
ionutboangiu
392b0c30e0
Fix failing unit tests due to redis dependency
2023-07-18 16:37:06 +02:00
ionutboangiu
8174618f73
Apply gofmt
2023-07-18 16:37:06 +02:00
ionutboangiu
d7c6afb82a
Revert "Revise syntax for the struct tag values pointed out by go vet"
...
This reverts commit 9c16f9da5a .
Fixing struct tag values is causing some tests to fail. An issue has
been opened internally which talks in depth about the issue.
2023-07-18 16:37:06 +02:00
ionutboangiu
49bf8abc53
Fix a couple more go vet errors
2023-07-18 16:37:06 +02:00
ionutboangiu
ae67776d30
Make sure no loop variables are captured by func literals
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