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

Add pytest operator testing and LXD group creation #15

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

DomFleischmann
Copy link
Contributor

@DomFleischmann DomFleischmann commented Aug 23, 2021

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

@DomFleischmann DomFleischmann force-pushed the pytest-operator-testing branch 5 times, most recently from 522ec83 to 6c7ff1d Compare August 23, 2021 11:00
@DomFleischmann DomFleischmann changed the title Add testing with pytest operator Add pytest operator testing and LXD group creation Aug 23, 2021
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
@DomFleischmann DomFleischmann force-pushed the pytest-operator-testing branch from 6c7ff1d to e9bc382 Compare August 23, 2021 11:16
@@ -7,14 +7,27 @@ module.exports =
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
Copy link

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?

Copy link
Contributor

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.

Copy link

@knkski knkski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@johnsca johnsca left a 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

@johnsca johnsca merged commit 2c77735 into main Aug 25, 2021
@addyess addyess deleted the pytest-operator-testing branch February 23, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants