test: Add Debian 9 and 10 to molecule platforms

This commit is contained in:
2020-01-18 13:26:32 +00:00
parent 8f1ed8aa02
commit 72aa06f1ea
10 changed files with 70 additions and 6 deletions

View File

@@ -6,14 +6,18 @@ galaxy_info:
license: MIT
min_ansible_version: 2.0
platforms:
- name: Ubuntu
- name: Debian
versions:
- bionic
- xenial
- stretch
- buster
- name: EL
versions:
- 7
- 8
- name: Ubuntu
versions:
- bionic
- xenial
galaxy_tags:
- adblocking
- adguard

View File

@@ -39,3 +39,5 @@ RUN if [ $(command -v apt-get) ]; then \
xbps-install -y python sudo bash ca-certificates && \
xbps-remove -O; \
fi
RUN if [ ! -e /sbin/init ]; then ln -s /lib/systemd/systemd /sbin/init; fi

View File

@@ -22,6 +22,24 @@ platforms:
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: debian-9
image: jrei/systemd-debian:9
command: /sbin/init
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: debian-10
image: jrei/systemd-debian:10
command: /sbin/init
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: ubuntu-16.04
image: jrei/systemd-ubuntu:16.04
command: /sbin/init

View File

@@ -47,7 +47,7 @@ def test_adguardhome_binary(host):
def test_adguardhome_service(host):
s = host.service('adguardhome')
s = host.service('adguardhome.service')
assert s.is_enabled
assert s.is_running

View File

@@ -39,3 +39,5 @@ RUN if [ $(command -v apt-get) ]; then \
xbps-install -y python sudo bash ca-certificates && \
xbps-remove -O; \
fi
RUN if [ ! -e /sbin/init ]; then ln -s /lib/systemd/systemd /sbin/init; fi

View File

@@ -22,6 +22,24 @@ platforms:
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: debian-9
image: jrei/systemd-debian:9
command: /sbin/init
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: debian-10
image: jrei/systemd-debian:10
command: /sbin/init
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: ubuntu-16.04
image: jrei/systemd-ubuntu:16.04
command: /sbin/init

View File

@@ -37,7 +37,7 @@ def test_adguardhome_binary(host):
def test_adguardhome_service(host):
s = host.service('adguardhome')
s = host.service('adguardhome.service')
assert s.is_enabled
assert s.is_running

View File

@@ -39,3 +39,5 @@ RUN if [ $(command -v apt-get) ]; then \
xbps-install -y python sudo bash ca-certificates && \
xbps-remove -O; \
fi
RUN if [ ! -e /sbin/init ]; then ln -s /lib/systemd/systemd /sbin/init; fi

View File

@@ -22,6 +22,24 @@ platforms:
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: debian-9
image: jrei/systemd-debian:9
command: /sbin/init
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: debian-10
image: jrei/systemd-debian:10
command: /sbin/init
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: ubuntu-16.04
image: jrei/systemd-ubuntu:16.04
command: /sbin/init

View File

@@ -47,7 +47,7 @@ def test_adguardhome_binary(host):
def test_adguardhome_service(host):
s = host.service('adguardhome')
s = host.service('adguardhome.service')
assert s.is_enabled
assert s.is_running