313 Commits

Author SHA1 Message Date
Serafim Gerasimov
c3ed27dab6 test(microservices): Integration test for the fanout exchange 2025-10-14 21:06:47 +03:00
Kamil Myśliwiec
d2948d9522 refactor: introduce wildcards attribute, use existing exchange 2025-01-31 08:50:10 +01:00
Kamil Myśliwiec
23e76fd296 test: use unique queue name for rmq 2025-01-30 15:31:02 +01:00
Kamil Myśliwiec
e1a9f5f0f3 test: increase timeout for the wildcard topic exchange test 2025-01-30 14:57:15 +01:00
Kamil Myśliwiec
823fbab75d feat(microservices): add support for topic exchange (rabbitmq) 2025-01-30 13:52:50 +01:00
Kamil Myśliwiec
cf17e4d521 chore: mqtt updates, integration test improvements 2024-11-27 11:04:51 +01:00
Kamil Myśliwiec
d27628aafa chore: resolve conflicts 2024-11-27 09:55:20 +01:00
Kamil Myśliwiec
339be465fe chore: resolve conflicts 2024-11-27 09:49:01 +01:00
Kamil Myśliwiec
f94ef9044f test: ignore floating request promises (done cb) 2024-11-27 08:37:58 +01:00
Kamil Myśliwiec
7d3e5c1a38 build: use strict null checks part 5 2024-11-26 14:39:51 +01:00
Kamil Myśliwiec
236b633a76 style: address integration tests lint errors 2024-11-26 09:39:20 +01:00
Kamil Myśliwiec
bc31b5cff5 test: update tcp config opts type 2024-11-18 13:14:59 +01:00
Kamil Myśliwiec
3267135f2d chore: resolve merge conflicts 2024-11-18 12:45:34 +01:00
Kamil Mysliwiec
774ccbe1b2 Merge pull request #12622 from jmcdo29/feat/async-microservce-config
feat: allow for microservice options to come from the di container
2024-11-18 12:18:57 +01:00
Kamil Myśliwiec
ef24801fcc chore: upgrade deps 2024-11-16 20:00:50 +01:00
Kamil Myśliwiec
f2b6cc0e93 fix: fix minor type issues, broken imports 2024-11-15 11:50:09 +01:00
Kamil Mysliwiec
75fa678e8d Merge pull request #13368 from ssilve1989/refactor/cleanup-grpc-call-handling
refactor(microservices): prevent grpc write promise from throwing
2024-06-03 13:04:40 +02:00
welfuture
66b731d4db chore: fix some typos in comments
Signed-off-by: welfuture <wellfuture@qq.com>
2024-04-20 20:48:16 +08:00
Steven Silvestri
22a9245a1a refactor(microservices): prevent grpc write promise from throwing 2024-03-28 02:08:28 -06:00
Ben Lesh
d27d1818cd chore: fix tests
Just combining the backpressure tests and the math tests. There were issues
with the tests because of port collisions.
2023-11-17 14:46:56 -06:00
Ben Lesh
2e8f5cebf7 fix(microservices): fix backpressure with integration test
Resolves an issue where the code assumed the first value written to the stream
where `write` returned `false` was not written, when in fact it is.

Adds integration test to verify the fix.

Updates unit tests to have the proper behavior in the mock.

NOTE: This fix has been independently verified in our business environment.

NOTEx2: This is totally my (@benlesh) fault. :/

fixes #12768
2023-11-17 11:50:23 -06:00
Jay McDoniel
2f2252264b feat: allow for microservice options to come from the di container
Microservices are now able to be created by getting their options
from within the DI container itself. This has been a long requested
feature of developers and I finally had some time to work through how
we could possibly let this happen.
2023-10-20 17:08:35 -07:00
Kamil Myśliwiec
0f904d2cab chore: update minimum engine version to 16 2023-04-05 13:31:07 +02:00
Kamil Mysliwiec
a8ae4f4389 Merge pull request #10628 from nomaxg/tls
feat(microservice): TCP microservice over TLS
2023-04-05 10:46:48 +02:00
Jake Son
56b0c57729 test: add microservice generic type explicitly 2023-03-11 09:45:21 +09:00
nomaxg
b9c235ae18 feat(microservice): add tcp over tls support
Signed-off-by: nomaxg <noahgolub2@gmail.com>
2022-12-02 16:53:34 -05:00
Kamil Myśliwiec
95e8394b32 test: add inspector e2e tests, add deterministic uuid registry 2022-11-29 09:56:19 +01:00
Kamil Myśliwiec
5b42ab71af test: add paths mapping and watch mode for unit tests 2022-11-09 11:46:08 +01:00
Micael Levi L. Cavalcante
bc80ef6055 style: fix formatting on everything 2022-08-21 14:23:19 -04:00
gil
1cebb6dbb5 fix(microservice): grpc-client serialize error
closes #10104
2022-08-14 00:05:37 +03:00
Kamil Myśliwiec
2b10ff60c6 chore(): resolve conflicts 2022-05-31 11:47:17 +02:00
Tony133
c9e619e74a test(integration): rename app module in test e2e 2022-05-24 21:28:34 +02:00
Kamil Myśliwiec
40e2755c82 feat(microservices): migrate redis transporter to internally use ioredis package 2022-05-17 13:33:21 +02:00
Kamil Myśliwiec
af0e4001ff fix(microservices): multiple rmq client urls issue #9364 2022-04-01 16:51:46 +02:00
Kamil Myśliwiec
43a4770b74 chore(): remove merge conflicts 2022-03-01 13:56:03 +01:00
Kamil Myśliwiec
8ce0cf1bc9 chore(): resolve conflicts, minor changes 2022-03-01 13:55:07 +01:00
Kamil Myśliwiec
722b651228 test(microservices): bump timeouts for mqtt integration tests 2022-02-18 16:58:46 +01:00
Kamil Myśliwiec
e4098e6c39 test(microservices): update broken mqtt integration test (record builder) 2022-02-14 12:42:58 +01:00
Tom Chauveau
23170cf1c8 fix(microservices): generate service method in lower and uppercase
RPC methods in protobuf are commonly declare in PascalCase, but they were generated lowercase
by ClientGrpcProxy.getService method.
Protobuf and gRPC have tools to generate interface and message in Typescript directly from
protobuf. It's a powerful feature that's helping to maintain only one source of truth.
But with that lowercase method generation, developers were forced to define their own interface
which can be painful to maintain.
This commit fix that issue by generating methods both in lowercase and in uppercase.

Solves #9047

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-29 01:15:49 +01:00
Kamil Myśliwiec
d3b627fa00 fix(microservices): rmq should merge both disconnect and connect failed events 2022-01-12 10:23:29 +01:00
Micael Levi (lab)
fd720e899d refactor: remove deprecated apis from 3rd-party deps
Replacie old and deprecated APIs from `rxjs`, `body-parser`
and NodeJS core (read this guide https://nodejs.org/en/docs/guides/buffer-constructor-deprecation).
Do notice that the later only touches test files, thus doesn't affect
production code.
2021-12-24 20:30:33 -04:00
zmj
4621fad49b refactor(): replace indexOf with includes 2021-12-14 20:45:31 +08:00
caucik
e7f1f10423 refactor: update integration imports to reference top level index.ts 2021-11-16 02:47:26 +01:00
Kamil Myśliwiec
62978f887f test(microservices): add e2e tests for record builders 2021-10-01 11:31:56 +02:00
wt
472b545880 test(microservices): add e2e test for #8109
add e2e test for #8109

associate #8109
2021-09-29 13:42:09 +08:00
Kamil Myśliwiec
9d0551ff25 style(): run prettier 2021-08-16 09:30:29 +02:00
Kamil Myśliwiec
3a2cbc087e test(): skip kafka tests 2021-05-17 14:56:54 +02:00
Kamil Myśliwiec
18f66e8299 fix(): fix rxjs breaking changes 2021-05-17 14:04:31 +02:00
Kamil Myśliwiec
00e9421a3b feat(): update to the latest rxjs (wip) 2021-05-14 16:16:34 +02:00
Kamil Myśliwiec
6043520084 chore(): resolve conflicts 2021-05-14 15:36:22 +02:00