Commit Graph

16 Commits

Author SHA1 Message Date
ailchuk
4d5bffebeb fix tests for proxy 2025-04-11 14:04:39 +03:00
ailchuk
6327232d40 small fix to make simulator more stable 2025-04-09 13:15:47 +03:00
ailchuk
b9bdf3072f initial functionality to run proxy server 2025-04-03 10:19:50 +03:00
Sviatoslav Boichuk
5f4d1ad28b Add tests for different events & expected topics to be received from 2025-01-14 16:38:07 +02:00
Sviatoslav Boichuk
138ce78e7f Formatted client simulator with autopep8 2025-01-02 10:10:52 +02:00
Oleksandr Mazur
49555495e8 Tests: core: add timeout values for common clients
Force redis, PSQL, kafka clients to have a strict
timeout value for any requests.

It's done to ensure our tests do not hang for an unknown
period of time in case if something goes wrong.

Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
2024-12-11 16:24:15 +02:00
Oleksandr Mazur
10fd2d765b Testing: initial message queue (infra msg) infrastructure
Add initial infrastructure for sending / receiving messages
using websocket bindings for client sim.
Add initial handle-reboot-simulation test, that both
tests CGW's ability to sink down a request, as well as
test it's behavior whenever simulated device's been rebooted.

Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
2024-12-05 14:52:24 +02:00
Oleksandr Mazur
c17b89f1d2 Utils: Client simulator: fix sim not starting using docker
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
2024-11-26 15:15:35 +02:00
Sviatoslav Boichuk
8e59cd1569 Added metrics checkers to basic tests 2024-11-18 09:59:41 +02:00
Oleksandr Mazur
768c41dd90 Testing: introduce initial automated testing _core_ changes
Implement initial core for automated tests:
 * mostly resuses/extends existing simulator, kafka producer etc;
 * helper scripts added for manual testing
   (single infra/group add/del etc)
 * Tests compose either of simple steps premade into fixtures,
   or combine usage of both fixtures + custom code inside
   test's funcion

Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
2024-11-12 14:20:08 +02:00
Oleksandr Mazur
d70c4d718d Client simulator: use pool of macs with single crt/key
Make client simulator use single cert/key pair with mac
being taken from predefind macs list. This makes it easier
to use simulator, as it doesn't depend upon a big list
of certificates that are expected to match simulated MAC
and so on.

Fixup some python imports to not use relative import,
but rather istruct makefile to pass python path var
that includes relative path.
This is a change required for following commits that
bring automated testing using this simulator.

Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
2024-11-12 13:26:16 +02:00
Sviatoslav Boichuk
dc471c60ab Reworked CGW Queue manager 2024-11-07 12:05:22 +02:00
Oleksandr Mazur
91ca72023d Utils: simulation runner: fix sim not starting
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
2024-07-04 11:01:01 +03:00
Carsten Schafer
2098eb98d5 simulator tweaks 2024-06-24 15:15:17 -04:00
Carsten Schafer
3438c5916d Add helm chart 2024-06-24 15:14:50 -04:00
Paul White
6a0344aa87 cgw: initial commit
Signed-off-by: Paul White <paul@shasta.cloud>
2024-03-17 20:33:16 -07:00