Open remipichon opened 6 years ago
a test case
needs from app
naming convention \<resource type>__\<[non]remote>\<[with|without]context>_\\<trigger type>
making sure dry and do all are working
using a simple imageconfig without push configured nor any context
imageConfig.testdryrun.json Dockerfil.testdryrun From nothing
Assert dry run for testdry all
Same as dry run + push
Assert docker build Dockerfile.dryryn dryrun once
Assert docker push Dockerfile.dryryn dryrun once
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
Assert docker-compose build ${docker-composeintermediate} ssidryrun _once
Assert docker stack deploy ${docker-composeintermediate} ${stackname} ssidryrun _once
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
those tests will need two commits: one to add the VOC/Docker files, one to trigger via context
==> Install git server in image FROM nodedocker same as
config added as before (+repos) context and docker related file added in remote repo
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 contextmaking sure dry and do all are working
using a simple imageconfig without push configured nor any context
dry run do allimageConfig.testdryrun.json Dockerfil.testdryrun From nothing
Assert dry run for testdry all
basic behaviour - dry - do all - non remote - without contextimage basic non remote no contextSame as dry run + push
Assert docker build Dockerfile.dryryn dryrun once
Assert docker push Dockerfile.dryryn dryrun once
stack instance + stack definition + docker composesTODO
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 composeTODO
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 contextto 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 contextthose tests will need two commits: one to add the VOC/Docker files, one to trigger via context
imageTODO
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 nodedockersame asconfig added as before (+repos) context and docker related file added in remote repo
imageTODO
stack instance + stack definition + docker composes
TODO
simple stack instance + docker composes
TODO
all commit actions - dry - commit action - without context