Skip to content
Snippets Groups Projects
Commit 3a2e8e86 authored by Stephane Armanet's avatar Stephane Armanet
Browse files

add lab route and vbox molecule test plateforme

parent 3a6efe5a
No related branches found
No related tags found
No related merge requests found
Pipeline #6309 passed
...@@ -18,7 +18,15 @@ verifier: ...@@ -18,7 +18,15 @@ verifier:
lint: lint:
name: flake8 name: flake8
driver: driver:
name: docker name: vagrant
provider:
name: virtualbox
platforms: platforms:
- name: ics-ans-gpn-config-default - name: ics-ans-gpn-config-default
image: registry.esss.lu.se/ics-docker/centos-systemd:7 box: centos/7
memory: 512
cpus: 1
instance_raw_config_args:
- "vbguest.auto_update = false"
groups:
- default_group
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- name: Prepare - name: Prepare
hosts: all hosts: all
gather_facts: false gather_facts: false
become: true
tasks: tasks:
- name: create /etc/samba directory - name: create /etc/samba directory
file: file:
......
...@@ -8,3 +8,13 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( ...@@ -8,3 +8,13 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_samba_interfaces(host): def test_samba_interfaces(host):
file = host.file("/etc/samba/interfaces.conf") file = host.file("/etc/samba/interfaces.conf")
assert file.contains("interfaces = eth0") assert file.contains("interfaces = eth0")
def test_route_interfaces(host):
file = host.file("/etc/sysconfig/network-scripts/route-eth0")
assert file.contains("172.30.0.0")
def test_route_exist(host):
cmd = host.run("/usr/sbin/ip route list")
assert "172.30.0.0" in cmd.stdout
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
version: v0.1.0 version: v0.1.0
- src: git+https://gitlab.esss.lu.se/ics-ansible-galaxy/ics-ans-role-lab-route.git - src: git+https://gitlab.esss.lu.se/ics-ansible-galaxy/ics-ans-role-lab-route.git
version: v0.1.1 version: v0.1.2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment