charmkeeperration-tests

- Find the integration tests in the repository (their could be multiple "tests/integration" folders).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "charmkeeperration-tests" with this command: npx skills add seb4stien/charmkeeper/seb4stien-charmkeeper-charmkeeperration-tests

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

Integration test must be implemented with jubilant :

  • See How to migrate from pytest-operator to Jubilant if the charm is currently using pytest-operator.

For each charm in the repository, there should be a tests/ folder like: https://github.com/canonical/platform-engineering-charm-template/tree/main/tests

If the repository contains multiple charms, there should be a tests/integration at the root of the repository. You can find an example here: https://github.com/canonical/haproxy-operator/tree/main/tests

Dependencies

  • The charms used in the integration tests should be deployed using the latest/edge channel (or "track/edge").

  • An explicit revision should be set to deploy the charm.

  • Revisions are defined through constants defined at the beginning of the file.

  • Each constant is preceded with a '# renovate: depName="xxx"' directive to let renovate detect and update the revision.

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

charmkeeper-terraform

No summary provided by upstream source.

Repository SourceNeeds Review
General

charmkeeper-integration-tests

No summary provided by upstream source.

Repository SourceNeeds Review
General

charmkeeper-tests

No summary provided by upstream source.

Repository SourceNeeds Review
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated