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.4.tar.gz (26.7 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.4-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: test_thing-0.3.4.tar.gz
  • Upload date:
  • Size: 26.7 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.4.tar.gz
Algorithm Hash digest
SHA256 9a6ae0f59680f0b6296b4b0213d233dea1d0d980b9b4dede0f1ef89e6c176297
MD5 34dee6a71879727b18166b22bec20bd5
BLAKE2b-256 42f4d72587dcec5ce9f6735912d51d001fcf30d3c6612fd22768febd2cac7b06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: test_thing-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 27.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aa08f0a37e9b58f2e91de2d71b1bdce9a26d6fdfcd0aff7f137b17002ed4ef2d
MD5 ff8d5b83511d9d9236d3c0155680899e
BLAKE2b-256 20a74abb4cab53481a914e973bc4c1fe5ced14a0a9823d70e03b7e8fc01d2ed8

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