-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add pytest operator testing and LXD group creation #15
Conversation
522ec83
to
6c7ff1d
Compare
The following tests have been added: - Building a charm with charmcraft and pytest-operator to make sure the environment is setup correctly. - Deploying Ubuntu and Minio with pytest operator instead of the juju cli. These tests are executed with tox. Additionally the LXD user group will be created during setup, this is needed for charmcraft to work correctly
6c7ff1d
to
e9bc382
Compare
@@ -7,14 +7,27 @@ module.exports = | |||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { |
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.
Any idea why there's so many changes for such a simple TS change?
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.
My guess would be the update to actions/core
but the compilation step is a bit opaque, regardless.
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.
LGTM
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'm not a huge fan of the circular dependency this introduces in the testing; ideally the tests in this repo wouldn't depend on pytest-operator since it depends on this and doing so opens up the possibility of mutually dependent PRs, exactly like we have here, where we can't verify that either are actually working until merging one or both with failing tests. That said, I also recognize that we don't want to reinvent the wheel for the tests in this repo and they two components are intended to work together, so it's probably not worth worrying about.
So, slightly reluctant +1
The following tests have been added:
Building a charm with charmcraft and pytest-operator to make sure
the environment is setup correctly.
Deploying Ubuntu and Minio with pytest operator instead of the juju
cli.
These tests are executed with tox.
Additionally the LXD user group will be created during setup, this is
needed for charmcraft to work correctly