praekeltfoundation / seaworthy

Test harness for Docker container images 🌊 🚢
BSD 3-Clause "New" or "Revised" License
29 stars 4 forks source link

Support inspecting files in the container #79

Open JayH5 opened 6 years ago

JayH5 commented 6 years ago

Google's Container Structure Tests support this. There is a get_archive() call on the Container model that could be used: https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container.get_archive

This may be a matter of writing a testtools matcher that can assert things like file contents and metadata when given a stream to a tarball.