Add docker-cli e2e tests

This commit is contained in:
Antoine Legrand 2017-07-28 17:13:52 +02:00
parent f3ac04f799
commit 86f418a288
3 changed files with 68 additions and 4 deletions

View file

@ -9,8 +9,8 @@ local stages_list = [
'docker_base',
'docker_build',
'deploy_preview',
'integration',
'tests',
'integration',
'docker_release',
'deploy_staging',
'teardown',
@ -107,7 +107,7 @@ local jobs = {
'protractor_e2e': integration_test {
initDb:: true,
variables+: {"APP_HOST": "http://localhost:80"},
services+: ["selenium/standalone-chrome:3.4.0"],
services+: [{name: "selenium/standalone-chrome:3.4.0"}],
before_script+: [
"curl -sL https://deb.nodesource.com/setup_8.x | bash -",
"apt-get install -y nodejs",
@ -130,6 +130,26 @@ local jobs = {
allow_failure: true,
},
'docker_e2e': integration_test {
initDb:: true,
image: {name: "docker"},
services+: [{name: "docker:dind"}],
variables+: {
DOCKER_DRIVER: "overlay2",
DOCKER_HOST: "tcp://localhost:2375"
},
before_script: [],
script+: [
"docker login localhost:80 -u devtable -p password",
"docker pull nginx",
"docker tag nginx localhost:80/devtable/nginx",
"docker push localhost:80/devtable/nginx",
"sleep 1",
"docker pull localhost:80/devtable/nginx",
],
allow_failure: true,
},
// Unit-tests with real databases
local db_stage = { stage: stages.tests },
local dbname = 'quay',