charmkeeperration-tests

📁 seb4stien/charmkeeper 📅 7 days ago
4
总安装量
4
周安装量
#53859
全站排名
安装命令
npx skills add https://github.com/seb4stien/charmkeeper --skill charmkeeperration-tests

Agent 安装分布

opencode 4
gemini-cli 4
claude-code 4
github-copilot 4
codex 4
kimi-cli 4

Skill 文档

Plan:

  • Find the integration tests in the repository (their could be multiple “tests/integration” folders).
  • Ensure each set of integration tests is following the implementation standards.
  • Run the tests to ensure the code work as expected.

Implementation standards

  • Expected versions:

    • jubilant: ~> 1.7
  • Lint produced code with tox -e lint.

Testing

Writing integrations tests

Local testing

The integration tests should be run in a virtual machine named “charmkeeper”.

If the machine doesn’t exist, create it with: scripts/create-charmkeeper-vm.sh.

If not already done, mount the working directory folder in the machine with

multipass mount --type native $PWD charmkeeper:/workdir

Look at CONTRIBUTING.md to see if there are specific instructions to build and test the charm.

Don’t forget to rebuild the charm (and the rock) if you change the code.

Unless there is something specific mentioned, you should be able to run the unit tests with: multipass exec charmkeeper -d /workdir/ -- tox

Then run the integration tests with multipass exec charmkeeper -d /workdir/ -- tox -e integration -- --charm-file=path-to-charm.

Maintain

Configuring renovate

Configure renovate with a charmhub customDatasource like in https://raw.githubusercontent.com/canonical/platform-engineering-charm-template/refs/heads/main/renovate.json to

  • Add a regex customManager to update the revisions
  • Set ignorePath to an empty array to not exclude the tests folders