ClusterHQ / powerstrip

Powerstrip: A tool for prototyping Docker extensions
https://clusterhq.com/
Apache License 2.0
302 stars 32 forks source link

Write acceptance tests that actually use Docker #16

Open lukemarsden opened 9 years ago

lukemarsden commented 9 years ago

By bind-mounting the Docker socket into a container, write a Dockerfile which runs Powerstrip and a Powerstrip adapter and tests that using this, you can still run docker CLI commands normally.

In particular, we are interested in testing commands attach and pull, which do funky stuff with the HTTP stream, the implementation of which is not otherwise well covered by tests.

lukemarsden commented 9 years ago

WIP at https://github.com/ClusterHQ/powerstrip/tree/docker-compat-tests

lukemarsden commented 9 years ago

In particular, need to have an acceptance test for e.g. skipping post hooks in a pull command (where JSON blobs are streamed via, we think, Transfer-encoding: chunked).