Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

(MAINT) [WIP] add experimental system test script #54

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

johnmccabe
Copy link
Contributor

@johnmccabe johnmccabe commented Jun 21, 2017

Raising this PR for visibility and comment, been playing with using DinD to run system tests automatically - ideally via Travis.. Using both the official Docker DinD images and some custom rolled images for earlier versions of Docker that have no official support. (I've built these here https://github.com/johnmccabe/missing-dind)

You can try this on your laptop by running:

make system-test

NOTE this is very experimental so has no error handling/assertions etc at this point and is in bash simply for speed to test the idea.

I'm tending towards implementing the tests themselves using Golangs native testing framework, mainly to keep the project as purely Go as possible.

This commit adds an experimental system test script to run lumogon
against multiple docker server versions, this is just a very rough proof
of concept in bash to check that the DIND approach is viable.
This commit caches the test nginx image to disk and loads it locally
rather than having to pull the image from within each DIND container.

This speeds up the execution as you're only pulling in from the network
once.

It also sidesteps the fact that Docker 1.5.0 doesn't work with the Hub
so would fail to pull the image.
@johnmccabe johnmccabe force-pushed the MAINT/master/system-test-experiments branch from cb7d9ce to 82080f0 Compare June 22, 2017 09:24
This is a WIP commit, it doesn't work fully as intended, but making
visible early
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant