-
Notifications
You must be signed in to change notification settings - Fork 19
feat: allow use of interceptable mknod in ProviderService
#607
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
base: main
Are you sure you want to change the base?
Conversation
|
Failing integration tests will be fixed by #587 |
pyproject.toml
Outdated
| "craft-providers @ git+https://github.com/canonical/craft-providers.git@work/CRAFT-2568-settable-mknod-intercept", | ||
| #"craft-providers>=2.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to future self: update this once I release a new craft-providers.
mr-cal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see unit tests for the logic, otherwise looks good. Thanks for filling out the docstrings.
| with check: | ||
| mock_provider.assert_called_once_with( | ||
| lxd_project="testcraft", lxd_remote=lxd_remote | ||
| lxd_project="testcraft", lxd_remote=lxd_remote, intercept_mknod=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you exercise the default value and setting ProviderService(intercept_mknod)?
A quick way to do this would be to instantiate a ProviderService like some of the other tests and add something along the lines of @pytest.param("intercept_mknod", [None, True, False])
456fb52 to
9f8c5b4
Compare
9f8c5b4 to
8461153
Compare
Signed-off-by: Alex Lowe <alex.lowe@canonical.com>
tox?Make use of
craft_providers's newintercept_mknodargument toLXDProvider.canonical/craft-providers#717