Skip to content
This repository has been archived by the owner. It is now read-only.

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

Open
wants to merge 6 commits into
base: master
from

Conversation

Projects
None yet
1 participant
@johnmccabe
Copy link
Contributor

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.

johnmccabe added some commits Jun 21, 2017

(MAINT) add experimental system test script
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.
(MAINT) cache test nginx image
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 Jun 22, 2017

johnmccabe added some commits Jun 22, 2017

(MAINT) run in function and attempt to validate
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.
You can’t perform that action at this time.