-
Notifications
You must be signed in to change notification settings - Fork 4
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
Integration Tests for Docker - Convert tests/bin
using mocks to using CLI, PolykeyAgent conversion
#7
Comments
tests/bin
using mocks to using CLI, PolykeyAgent conversion
lists of tests that were disabled:
|
tests/bin
using mocks to using CLI, PolykeyAgent conversiontests/bin
using mocks to using CLI, PolykeyAgent conversion
tests/bin
using mocks to using CLI, PolykeyAgent conversiontests/bin
using mocks to using CLI, PolykeyAgent conversion
There is a plan to change up how the implementation tests are set up. Currently we filter the tests based on boolean conditions. We're looking at defining each test as an arrow function, then we can define multiple test suites by importing them and setting them up with the This will depend on that. |
Moving to Polykey-CLI. |
The big integration testing epic is in #71. I'm going to move that to here. Since integration testing doesn't actually occur on Polykey the library. |
Linear marked this as stale so I'm reopening. |
Specification
Due to time constraints not all of the tests could be made functional for the docker integration tests. The tests are disabled until we can convert them.
Due to our docker/dind setup we have limitations on what tests could work. This is mainly due to networking constraints. For a client to connect to an agent in the CI tests we require that both the client and agent run as a docker container inside the
dind
. Due to this we can't use any mocking or apolykeyAgent
running inside the test thread.Where we are using a 'PolykeyAgent
we will need to replace it with an agent running in a docker container using a pkXSwitch
function. This means any modification to the agent will be done through a bin command run with apkXSwitch
command as well. Mocking will not be possible and any test using such will have to be disabled for docker tests.A full list of tests to convert will be provided soon.
Additional context
Related MatrixAI/Polykey#391
Related #10
Related MatrixAI/Polykey#407
Tasks
createPolykeyAgent
to spawn an agentThe text was updated successfully, but these errors were encountered: