haproxy/tests/config.yaml
Petr "Stone" Hracek 37a4778475 First set of tests
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
2017-04-04 13:09:58 +02:00

38 lines
1.4 KiB
YAML

document: modularity-testing
version: 1
name: haproxy
modulemd-url: https://raw.githubusercontent.com/container-images/haproxy/master/haproxy.yaml
service:
port: 80
packages:
rpms:
- haproxy
testdependecies:
rpms:
- nc
module:
docker:
start: "docker run -it -p 8077:80 -v $(pwd)/local-haproxy.cfg:/etc/haproxy/haproxy.cfg:Z"
labels:
description: "HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments."
io.k8s.description: "HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments."
source: https://github.com/container-images/haproxy
container: docker.io/modularitycontainers/haproxy
rpm:
start: sed -i 's/bind\*/bind :8077/' $(pwd)/local-haproxy.cfg;
cp $(pwd)/local-haproxy.cfg /etc/haproxy/haproxy.cfg;
semanage port -a -t http_port_t -p tcp 8001;
semanage port -a -t http_port_t -p tcp 8000;
semanage port -a -t http_port_t -p tcp 8077;
sleep 4;
systemctl start haproxy
stop: systemctl stop haproxy
status: systemctl status haproxy
repos:
- http://mirror.vutbr.cz/fedora/releases/25/Everything/x86_64/os/
- https://phracek.fedorapeople.org/haproxy-module-repo/
test:
processrunning:
- 'ls /proc/*/exe -alh | grep haproxy'