Add initial test-integration suites
Uses go-check in order to separate integration tests into suites, and have Setup and TearDown operations (on Suites and Tests) ; and use libcompose to start the external dependencies to test on (like consul, marathon, etcd, some http images, etc..). - Update Godeps to get dependencies needed for the use of libcompose - Setup initial suites and go-check + libcompose mini-framework - Add some hacks related to libcompose, will be fixed later (when fixed upstream) Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
a5a8d6929e
commit
ad60b301b7
17 changed files with 681 additions and 0 deletions
21
integration/resources/compose/consul.yml
Normal file
21
integration/resources/compose/consul.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
consul:
|
||||
image: progrium/consul
|
||||
command: -server -bootstrap -advertise 12.0.0.254 -log-level debug -ui-dir /ui
|
||||
ports:
|
||||
- "8400:8400"
|
||||
- "8500:8500"
|
||||
- "8600:53/udp"
|
||||
expose:
|
||||
- "8300"
|
||||
- "8301"
|
||||
- "8301/udp"
|
||||
- "8302"
|
||||
- "8302/udp"
|
||||
|
||||
registrator:
|
||||
image: gliderlabs/registrator:master
|
||||
command: -internal consulkv://consul:8500/traefik
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock
|
||||
links:
|
||||
- consul
|
20
integration/resources/compose/file.yml
Normal file
20
integration/resources/compose/file.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
nginx1:
|
||||
image: nginx
|
||||
ports:
|
||||
- "8881:80"
|
||||
nginx2:
|
||||
image: nginx
|
||||
ports:
|
||||
- "8882:80"
|
||||
nginx3:
|
||||
image: nginx
|
||||
ports:
|
||||
- "8883:80"
|
||||
nginx4:
|
||||
image: nginx
|
||||
ports:
|
||||
- "8884:80"
|
||||
nginx5:
|
||||
image: nginx
|
||||
ports:
|
||||
- "8885:80"
|
42
integration/resources/compose/marathon.yml
Normal file
42
integration/resources/compose/marathon.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
zk:
|
||||
image: bobrik/zookeeper
|
||||
net: host
|
||||
environment:
|
||||
ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181
|
||||
ZK_ID: 1
|
||||
|
||||
master:
|
||||
image: mesosphere/mesos-master:0.23.0-1.0.ubuntu1404
|
||||
net: host
|
||||
environment:
|
||||
MESOS_ZK: zk://127.0.0.1:2181/mesos
|
||||
MESOS_HOSTNAME: 127.0.0.1
|
||||
MESOS_IP: 127.0.0.1
|
||||
MESOS_QUORUM: 1
|
||||
MESOS_CLUSTER: docker-compose
|
||||
MESOS_WORK_DIR: /var/lib/mesos
|
||||
|
||||
slave:
|
||||
image: mesosphere/mesos-slave:0.23.0-1.0.ubuntu1404
|
||||
net: host
|
||||
pid: host
|
||||
privileged: true
|
||||
environment:
|
||||
MESOS_MASTER: zk://127.0.0.1:2181/mesos
|
||||
MESOS_HOSTNAME: 127.0.0.1
|
||||
MESOS_IP: 127.0.0.1
|
||||
MESOS_CONTAINERIZERS: docker,mesos
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup
|
||||
- /usr/bin/docker:/usr/bin/docker:ro
|
||||
- /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
marathon:
|
||||
image: mesosphere/marathon:v0.9.2
|
||||
net: host
|
||||
environment:
|
||||
MARATHON_MASTER: zk://127.0.0.1:2181/mesos
|
||||
MARATHON_ZK: zk://127.0.0.1:2181/marathon
|
||||
MARATHON_HOSTNAME: 127.0.0.1
|
||||
command: --event_subscriber http_callback
|
Loading…
Add table
Add a link
Reference in a new issue