Test your container images with pytest
Dan Čermák
Dan joined SUSE to work on development tools as part of the developer engagement program, after working on embedded devices. He is an active open source contributor being involved in various upstream projects and a package maintainer in downstream Linux distributions, like openSUSE and Fedora. Beside testing and cryptography his passions include automating everything, documentation and software design.
No video of the event yet, sorry!
To ease the pain of testing container images, we've developed the pytest_container
plugin for pytest. The plugin makes it possible to use pytest to perform tests on containers and software inside containers. You don't have to take care of pulling images, building them, or picking ports on the host. You just describe your container setup and pass it to a test function. In return, the plugin gives you a connection to the container. Using the connection, you can verify the container's state using the testinfra python framework. The plugin even cleans up after itself when you're done.
In short, pytest_container
makes it possible to write tests in Python: no need to build your own framework from scratch or worry about the boring container plumbing tasks.
Join this talk to see pytest_container
in action and learn how it can make your life easier!
- Date:
- 2024 June 28 - 16:00
- Duration:
- 15 min
- Room:
- Saal
- Conference:
- openSUSE Conference 2024
- Language:
- Track:
- Cloud, Containers, Virtualization
- Difficulty:
- Easy
- Branding Meetup: Next steps
- Start Time:
- 2024 June 28 15:30
- Room:
- Seminar Room 2
- Uyuni Community Hours
- Start Time:
- 2024 June 28 16:00
- Room:
- Seminar Room 1
- Pluggable CPU schedulers in openSUSE
- Start Time:
- 2024 June 28 16:00
- Room:
- Gallerie