Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/initial autotesting #100

Merged
merged 3 commits into from
Nov 15, 2024
Merged

Feat/initial autotesting #100

merged 3 commits into from
Nov 15, 2024

Conversation

Cahb
Copy link
Contributor

@Cahb Cahb commented Nov 11, 2024

commit 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

commit 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.

@Cahb
Copy link
Contributor Author

Cahb commented Nov 11, 2024

FYI: todo:
More complex tests, like make sure that not only expected messages / results appear, but there are no intermediate unexpected messages received from CGW;
Also some more sophisticated scenarios, like command handling (implement core-part of command handling) - simulate reboot, simulate cfg apply fail etc;

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 <[email protected]>
@Cahb Cahb force-pushed the feat/initial_autotesting branch from 6400432 to 4bdf906 Compare November 12, 2024 11:38
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 <[email protected]>
@Cahb Cahb force-pushed the feat/initial_autotesting branch from 4bdf906 to 768c41d Compare November 12, 2024 12:20
@SviatoslavBoichuk SviatoslavBoichuk merged commit a9d2ce3 into next Nov 15, 2024
3 checks passed
@Cahb Cahb deleted the feat/initial_autotesting branch January 6, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants