Skip to main content

A simple modern VM runner

Project description

test.thing

WIP.

test.thing doesn't have a stable API or CLI.

Goals.

  • one-file copypastelib
  • easy to hook up to pytest
  • future-oriented, built on systemd features in the guest (credentials, ssh-over-vsock, etc)
    • might limit usefulness for testing older OSes but we can add workarounds as required
  • works without networking configured in guest
  • supporting the existing features of cockpit-bots

Try it

You can pip install test.thing which will put an executable called tt in your path. This is sort of like the existing cockpit-bots vm-run. If you want to test Cockpit images, you can do something like:

  tt \
      -v \
      -L 9091:127.0.0.1:9090 \
      -s cockpit.socket \
      ~/.cache/cockpit-images/arch-xxx.qcow2

You can also take a look at test/test_example.py and run TEST_IMAGE=/path/to/image.qcow2 pytest. This was originally tested with the examples images from composefs-rs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

test_thing-0.3.2.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_thing-0.3.2-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file test_thing-0.3.2.tar.gz.

File metadata

  • Download URL: test_thing-0.3.2.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for test_thing-0.3.2.tar.gz
Algorithm Hash digest
SHA256 058a643305bb91ffa16ec004faab08f73a64218bf1195283e7e1220396e11fba
MD5 74ec3507486e694e897d66b8d1414a0a
BLAKE2b-256 ab2411144482242799375a0af56e4c2ed6d81e5433ff237c1aa1142cac240614

See more details on using hashes here.

File details

Details for the file test_thing-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: test_thing-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for test_thing-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d5dab10d20db8eb81bc933771ed168b8e6ecac9fa6415096a4df068474787b2
MD5 36853e4a9595afdeb020a36540c06299
BLAKE2b-256 1c69817afa9f4be944477bc80368b745e764b2a633bf417d7b3e996af5d3c5f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page