Skip to content

Add unit tests for custom charm functionality#138

Merged
dwilding merged 7 commits intocanonical:mainfrom
tonyandrewmeyer:add-unit-tests
Apr 7, 2026
Merged

Add unit tests for custom charm functionality#138
dwilding merged 7 commits intocanonical:mainfrom
tonyandrewmeyer:add-unit-tests

Conversation

@tonyandrewmeyer
Copy link
Copy Markdown
Contributor

This PR adds state transition tests that use the new charmcraft extension autoloading from canonical/operator#2367 to test the charm's custom code on top of the paas-charm base. It also sets up CI to run lint and unit, and combines the old static environment into lint (as per current Charm Tech recommendations).


Manual checks

  • If you changed the Dashboard application or the rock, have you increased the version number in rockcraft.yaml? Remember to use the same version number in README.md. N/A

@dwilding dwilding self-requested a review April 1, 2026 05:36
Comment thread charm/tests/unit/test_charm.py Outdated
Comment thread charm/tests/unit/test_charm.py Outdated
Comment thread charm/tests/unit/test_charm.py
Comment thread charm/requirements.txt
@dwilding
Copy link
Copy Markdown
Collaborator

dwilding commented Apr 1, 2026

@alithethird I think you'll be interested in this too. We may want to port some of the general improvements to the 12-factor profile in Charmcraft.

Co-authored-by: Tony Meyer <tony.meyer@gmail.com>
@dwilding
Copy link
Copy Markdown
Collaborator

dwilding commented Apr 7, 2026

Thanks again Tony!

@dwilding dwilding merged commit 0acb0f7 into canonical:main Apr 7, 2026
6 checks passed
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