remipichon / voc

Automatically build and deploy Docker on Swarm from Gitlab8
GNU General Public License v3.0
0 stars 0 forks source link

Test files (docker related and config file) + git cmd (context and commit actions) #37

Open remipichon opened 6 years ago

remipichon commented 6 years ago

test framework

a test case

needs from app

tests

naming convention \<resource type>__\<[non]remote>\<[with|without]context>_\\<trigger type>

basic commit action - dry - do all - without context

making sure dry and do all are working

using a simple imageconfig without push configured nor any context

dry run do all

imageConfig.testdryrun.json Dockerfil.testdryrun From nothing

Assert dry run for testdry all

basic behaviour - dry - do all - non remote - without context

image basic non remote no context

Same as dry run + push

Assert docker build Dockerfile.dryryn dryrun once

Assert docker push Dockerfile.dryryn dryrun once

stack instance + stack definition + docker composes

TODO

Assert docker-compose config $sd.composes sidryrun _once

Assert docker-compose build ${docker-composeintermediate} sidryrun _once

Assert docker stack deploy ${docker-composeintermediate} ${stackname} sidryrun _once

simple stack instance + docker compose

TODO

Assert docker-compose build ${docker-composeintermediate} ssidryrun _once

Assert docker stack deploy ${docker-composeintermediate} ${stackname} ssidryrun _once

trigger via VOC/Docker files - dry - via VOC/Docker updates -non remote - without context

to test triggering instance via updating

Same as previous but add all test files in one commit then edit and commit add only the files for the test VOC/Docker files

image

TODO

stack instance + stack definition + docker composes

TODO

simple stack instance + docker composes

TODO

trigger via context - dry - via context updates - non remote - with context

those tests will need two commits: one to add the VOC/Docker files, one to trigger via context

image

TODO

stack instance + stack definition + docker composes

TODO

simple stack instance + docker composes

TODO

docker-code-remote repo - dry - do all - remote repo - without context + docker-code-remote repo - dry - do all - remote repo - with context

==> Install git server in image FROM nodedocker same as

config added as before (+repos) context and docker related file added in remote repo

image

TODO

stack instance + stack definition + docker composes

TODO

simple stack instance + docker composes

TODO

all commit actions - dry - commit action - without context