21 Commits

Author SHA1 Message Date
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01:00
ionutboangiu
16eb745f00 Centralize test flags in utils for shared use across tests 2024-04-08 13:14:02 +02:00
ionutboangiu
619a1efa50 Revise ers integration tests
They also do not depend on nats server dependency anymore.
2024-03-22 15:12:04 +01:00
ionutboangiu
0aea8ac641 Revert "Move CGREvent from utils to engine"
This reverts commit 02195c47ed.
2024-03-04 09:49:15 +01:00
ionutboangiu
02195c47ed Move CGREvent from utils to engine 2024-02-27 17:16:57 +01:00
ionutboangiu
bac73aa2c6 Migrate to new jetstream API
Updated ees/ers implementation to use the jetstream package which
separates the jetstream context from Core NATS.

Removed the jsOpts fields from the NatsEE struct. We are now using the
jetStreamMaxWait option directly through a timeout context.

Added streamName option for NATS reader since it is now required to be
specified when creating a consumer (it is not inferred based on subject
anymore).

Updated nats ers integration test.

Removed deprecated birpc unit test.

Updated tests to also use the new jetstream package.

Updated tests to start the nats-server using their official driver
instead of using the std go exec package. time.Sleeps are now not
required anymore to wait for the server.

In test configurations for nats readers, made sure that natsStreamName
option is populated. It is now required for consumers to know where to
subscribe.

Fixed potential panic that happened when jetstreamMaxWait option would
not be set.
2023-09-28 20:48:07 +02:00
gezimbll
1b1dd13677 Separating opts for each eventexporter type and fixing tests 2023-06-22 10:36:46 +02:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
ionutboangiu
14dfda53be Implement rpc exporter 2022-01-19 19:55:29 +01:00
ionutboangiu
40eb832060 Fix all compilation errors related to ers after making ees opts of type struct 2021-11-29 20:57:39 +01:00
andronache
bcb564240e Corrected header in multiple files 2021-11-01 13:49:33 +02:00
nickolasdaniel
c82d505222 Testing nats in ees 2021-09-20 19:42:05 +02:00
Trial97
a4a914a3bb Updated build tags 2021-08-26 16:45:37 +02:00
Trial97
cd0964dfea Finished implementing all the exporters 2021-08-18 16:33:28 +02:00
nickolasdaniel
9da84ddac7 Solved integration test error in ees for NATS 2021-07-25 12:08:40 +02:00
nickolasdaniel
0a6932d6ed Verified the data coming from NATS as well as added a test for non JetStream version of NATS 2021-07-19 16:54:08 +02:00
nickolasdaniel
1baa2cc381 Completed NATS ees integration test 2021-07-19 16:54:08 +02:00
Trial97
8ed0a145f9 Updated caps birpc server 2021-07-15 18:41:58 +02:00
nickolasdaniel
5cd74df5f2 Added nats exporter in EEs cfg in order to load the config from path in nats_it_test.go 2021-07-13 13:42:45 +02:00
nickolasdaniel
8826caa135 Removed comments and changed test name from TestNatsER to TestNatsEE 2021-07-13 13:42:45 +02:00
nickolasdaniel
34d93e2dd7 Added integration test for nats in ees 2021-07-09 16:33:41 +02:00